2D Toolkit Forum

2D Toolkit => Support => Topic started by: pedronveloso on November 22, 2013, 11:17:25 pm

Title: GetBounds not working anymore
Post 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).


Title: Re: GetBounds not working anymore
Post by: unikronsoftware on November 23, 2013, 07:15:48 pm
What do you mean by GetBounds doesn't work?
Title: Re: GetBounds not working anymore
Post by: pedronveloso on November 25, 2013, 03:47:59 pm
My error, sorry. My tk2dSprite reference was null because I was doing something wrong, hence the GetBounds not working.