How do you measure the exact dimensions (height/width/depth) of a static mesh in units? I do not want to get the relative scale of the object, that is a value that defaults to (1,1,1). I want to retrieve the exact height of the static mesh in a blueprint in units. (Comparable to the measure function in 3DSMAX).
Is there no function to measure an object in units (width/height/depth)?
Thanks! It worked.
They are called Bounds in APIs
There Get Actor Bounds for whole actor
There
and Get Component Bounds for single component
I’m getting 404 errors on the links
You could search for those functions Here’re the links:
It should be noted that these are Axis Aligned Bounding boxes. What this means, is if you have a mesh that is a box with side lengths X=3, Y=4, Z=5, then the AA bounds will ONLY be <3,4,5> when your box mesh has no rotation. As soon as you start to turn it then the AA bounds will start to change.
Is there a way to compensate for this? So that the I get correct side length regardless of the mesh’s rotation?
You could perhaps save the dimensions of the bounding box BEFORE it is rotated. Then you’ll have access to it always.
In Unreal 5.3 get component bounds and get actor bounds only give us the location of actor. not its size.