playMaker

Author Topic: Sprite size after scaling  (Read 1712 times)

Alatriste

  • Full Member
  • ***
  • Posts: 193
Sprite size after scaling
« 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!

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Re: Sprite size after scaling
« Reply #1 on: December 07, 2016, 05:08:06 AM »
You can get a gameobject then use Get Property, and look for transform.

Alatriste

  • Full Member
  • ***
  • Posts: 193
Re: Sprite size after scaling
« Reply #2 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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Sprite size after scaling
« Reply #3 on: December 07, 2016, 05:51:52 AM »
Hi,
LocalScale maybe?

Alatriste

  • Full Member
  • ***
  • Posts: 193
Re: Sprite size after scaling
« Reply #4 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