Still pretty new to Godot. If I select an object in the 3D view, how can I tell the dimensions of the overall object? I know I can compare it to the grid or other objects, but looking for something more precise that I can use to precisely scale the object to the desired size. This is the same thing as would appear in Blender hitting “N” , Item tab, Dimensions. Searched everywhere but can’t seem to get this info out of the Godot UI.
The function get_aabb will get the bounding box for a single mesh.
If you have several meshes you need to combine them with merge.
In code you can use .get_aabb()
on an object, but apparently you can’t see it anywhere in the editor, weird…
There are plugins for it though (In the reply. I haven’t tested it myself):
I’m sorry, but this does not help with me seeing it in the UI.
@dzehme , with your mesh selected in the viewport, select the icon in the inspector tab. This is a dropdown that will have the size, subdivision, and offset settings.
You could try making one.
You could also probably add some functionality to the inspector, so at the top you add a panel that you can add the info you want via editor scripting, it wouldn’t be floating next to the node in the viewport (you’d need to do the above), but might be easier to implement.
EDIT: Even try setting up a UI layer and some editor scripting to display data in the viewport when selecting an asset.
EDIT 2.0: you can try looking at Debug Draw 3D (4.x) | Godot Asset Library also.