Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Kein

Pages: [1]
1
Support / Bounds and Size analogues to SpriteRenderer?
« on: July 12, 2017, 08:22:02 pm »
I'm looking for something that will return the same or similar values as SpriteRenderer's:
.sprite.rect.size;
.sprite.pixelsPerUnit;

I can get bounds with GetBounds and even though it returns different format I can wok with it through hoops. But what about PPU data?

My goal is to calculate height of a [current]sprite in displayed pixels. I did some search but nothing really came up.

Pages: [1]