Hello Guest

Author Topic: Collider gets duplicated on Commit with Unity 3.5  (Read 6747 times)

Dgizusse

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 21
    • View Profile
Collider gets duplicated on Commit with Unity 3.5
« 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!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Collider gets duplicated on Commit with Unity 3.5
« Reply #1 on: February 18, 2012, 09:29:36 pm »
I am looking into this. Will update when I have a fix for it.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Collider gets duplicated on Commit with Unity 3.5
« Reply #2 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.

Dgizusse

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Collider gets duplicated on Commit with Unity 3.5
« Reply #3 on: February 20, 2012, 10:54:37 pm »
Good news!
Thanks a lot!