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.
.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.