Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Alatriste on December 07, 2016, 04:22:03 AM

Title: Sprite size after scaling
Post by: Alatriste on December 07, 2016, 04:22:03 AM
Noob question here: is there a way to know the new size of a sprite (or any gameObject) after scaling it? Many times, specially during prototyping, I create a sprite that later I have to resize or scale. But then, how do I know the new size of the asset?

Thanks!
Title: Re: Sprite size after scaling
Post by: elusiven on December 07, 2016, 05:08:06 AM
You can get a gameobject then use Get Property, and look for transform.
Title: Re: Sprite size after scaling
Post by: Alatriste on December 07, 2016, 05:20:54 AM
Not sure if I understood, but I cannot find anything that returns the new size of the gameObject.
Title: Re: Sprite size after scaling
Post by: djaydino on December 07, 2016, 05:51:52 AM
Hi,
LocalScale maybe?
Title: Re: Sprite size after scaling
Post by: Alatriste on December 08, 2016, 03:50:10 AM
Didn't work either. I found a rudimentary way of doing it... not very professional but as a hack more or less work: I use the image capture tool of Mac to capture a region of the screen. The tool shows in real time the size of the area. :P