Hello Guest

Author Topic: tk2dSprite and adding an box collider at editor time  (Read 3350 times)

mamamia

  • Guest
tk2dSprite and adding an box collider at editor time
« on: December 07, 2012, 07:23:37 pm »
Hi!,

I have found an odd issue when ussing a gameobject with a tk2dsprite an a box collider. When I add the box collider in the editor it is added Ok. I can configure it, etc... When I save the scene and then reload it the collider values I set up previously are gone. They are all set to 0. Is there any way to accomplish this?

Thanks in advance.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2dSprite and adding an box collider at editor time
« Reply #1 on: December 08, 2012, 03:21:33 pm »
In the sprite collection editor, select the sprite, and set the collider type to Unset / User Defined. The default is None, which will make sure there is no manual override on it.

Alternatively, you can set up your collider directly here.

mamamia

  • Guest
Re: tk2dSprite and adding an box collider at editor time
« Reply #2 on: December 10, 2012, 07:02:04 pm »
Thanks a lot. This solved my problem :).