How can I get the dimensions of a 3D Cube Mesh (height, width, depth) within GDScript?
Ex: My cube has 10 x 0.25 x 1.5
10 x 0.25 x 1.5
How can I get these values?
You can retrieve its size (and set it if needed) using $MeshInstance.mesh.size (if the node is called MeshInstance). Other primitive meshes’ properties may have different names, check the inspector for possible values.
$MeshInstance.mesh.size