2D Toolkit Forum
2D Toolkit => Support => Topic started by: pedronveloso on November 22, 2013, 11:17:25 pm
-
I recently switched to Physics2D and I noticed Collider2D doesn't offer a Bounds method. Likewise, now tk2dBaseSprite.GetBounds() doesn't work either.
The purpose of using Bounds was to get the center of the sprite, is there a workaround this? (I'm already using attach point so don't suggest that plz).
-
What do you mean by GetBounds doesn't work?
-
My error, sorry. My tk2dSprite reference was null because I was doing something wrong, hence the GetBounds not working.