Eonirr

Untitled

Mar 9th, 2026
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. Mesh mesh = GetComponent<MeshFilter>().mesh;
  2. Vector3 size = mesh.bounds.size;
  3.  
  4. float width = size.x * transform.localScale.x;
  5. float height = size.z * transform.localScale.z;
Advertisement
Add Comment
Please, Sign In to add comment