2D Toolkit Forum

2D Toolkit => Support => Topic started by: Dgizusse on February 17, 2012, 04:53:26 pm

Title: Collider gets duplicated on Commit with Unity 3.5
Post by: Dgizusse on February 17, 2012, 04:53:26 pm
Hi,

Since upgrading to Unity3.5, whenever I commit my SpriteCollection, every sprite with a collider that are prefab instances get a second collider.
I've tested with version 1.56 and 1.57beta2.

To reproduce, you can simply load the demo "8 - polygon colliders", create a prefab from a box or spike and then commit the DemoSpriteCollection. The instance in the scene will now have 2 colliders.

Any idea what could cause that and if there's a workaround while waiting for a fix?

Thanks a lot for this great tool, keep up the good work!
Title: Re: Collider gets duplicated on Commit with Unity 3.5
Post by: unikronsoftware on February 18, 2012, 09:29:36 pm
I am looking into this. Will update when I have a fix for it.
Title: Re: Collider gets duplicated on Commit with Unity 3.5
Post by: unikronsoftware on February 20, 2012, 01:58:36 pm
This is fixed now - I think its a Unity bug, but what it seems like is when a collider is added to a prefab its adding it to the prefab instance instead. If you can wait a day or two, I will post a new beta with this fix in.
Title: Re: Collider gets duplicated on Commit with Unity 3.5
Post by: Dgizusse on February 20, 2012, 10:54:37 pm
Good news!
Thanks a lot!