Search Unity

Sprite's displayed height in pixels only with Bounds units?

Discussion in 'Scripting' started by KeinZantezuken, Jul 17, 2017.

  1. KeinZantezuken

    KeinZantezuken

    Joined:
    Mar 28, 2017
    Posts:
    53
    So I need to get sprite's displayed (processed/final) height in pixels, but the project uses tk2dSprite therefore as I can see I only have access to `.Bounds()` and `.UntrimmedBounds()`. There is no `.sprite.rect` or `.sprite.pixelsPerUnit`

    Any ideas how to calculate the needed height only having that?