Question: Im working on a 2 D game and i need to get the self size of my sprite, below is my code where do i

Im working on a 2D game and i need to get the self size of my sprite, below is my code where do i go from here.
// get self size from the sprite
// bounds.extents is the half width/height of the sprite in world units
GetComponent
SpriteRenderer.sprite.bounds.extents

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!