1 de mai de 2017

How to get the size (Wrold size) of a GameObject in 2D

SpriteRenderer renderer = GetComponent ();
print(renderer.bounds.size);

Nenhum comentário: