Answers for "getting the size of a gameobject"

0

getting the size of a gameobject

//Most common
transform.localScale
//People say this works
//Actual size of mesh , scaled to localScale
objectSize = Vector3.Scale(transform.localScale, GetComponent().mesh.bounds.size);
Posted by: Guest on October-21-2020

Code answers related to "getting the size of a gameobject"

Browse Popular Code Answers by Language