Hi
I am currently trying to work out the width of a object (not scale)
How would I go about doing this?
Hi
I am currently trying to work out the width of a object (not scale)
How would I go about doing this?
Try mesh.bounds.size.x or z (Unity - Scripting API: Mesh.bounds)
Or you can search min x or z, max x or z of your mesh vertices and then get the width with max - min (Unity - Scripting API: Mesh.vertices)
You should use renderer.bounds.size.x or renderer.bounds.size.y to get width and height of the object