2D Toolkit Forum

2D Toolkit => Support => Topic started by: mamamia on December 07, 2012, 07:23:37 pm

Title: tk2dSprite and adding an box collider at editor time
Post by: mamamia 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.
Title: Re: tk2dSprite and adding an box collider at editor time
Post by: unikronsoftware 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.
Title: Re: tk2dSprite and adding an box collider at editor time
Post by: mamamia on December 10, 2012, 07:02:04 pm
Thanks a lot. This solved my problem :).