# How to measure static mesh height or width in units?

**URL:** <https://forums.unrealengine.com/t/how-to-measure-static-mesh-height-or-width-in-units/281055>\
**Category:** Asset Creation\
**Tags:** units, unreal-engine, staticmesh, Blueprint, question\
**Created:** [April 19, 2014, 11:32am UTC](https://forums.unrealengine.com/t/how-to-measure-static-mesh-height-or-width-in-units/281055 "2014-04-19T11:32:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![OccultArt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OccultArt](https://forums.unrealengine.com/u/OccultArt)\
**Post date:** [April 19, 2014, 11:32am UTC](https://forums.unrealengine.com/t/how-to-measure-static-mesh-height-or-width-in-units/281055/1 "2014-04-19T11:32:16Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![OccultArt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OccultArt](https://forums.unrealengine.com/u/OccultArt)\
**Post date:** [April 20, 2014, 2:28pm UTC](https://forums.unrealengine.com/t/how-to-measure-static-mesh-height-or-width-in-units/281055/2 "2014-04-20T14:28:35Z")

</div>

Is there no function to measure an object in units (width/height/depth)?

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [April 20, 2014, 4:14pm UTC](https://forums.unrealengine.com/t/how-to-measure-static-mesh-height-or-width-in-units/281055/3 "2014-04-20T16:14:25Z")

</div>

They are called Bounds in APIs

There Get Actor Bounds for whole actor

> **[AActor::GetActorBounds](https://docs.unrealengine.com/5.1/en-US/API/Runtime/Engine/GameFramework/AActor/GetActorBounds/)**
>
> Returns the bounding box of all components that make up this Actor (excluding ChildActorComponents).

There

and Get Component Bounds for single component

> **[UKismetSystemLibrary::GetComponentBounds](https://docs.unrealengine.com/5.1/en-US/API/Runtime/Engine/Kismet/UKismetSystemLibrary/GetComponentBounds/)**
>
> Get bounds

---

<div class="post-metadata">

**Author:** ![OccultArt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OccultArt](https://forums.unrealengine.com/u/OccultArt)\
**Post date:** [April 20, 2014, 4:56pm UTC](https://forums.unrealengine.com/t/how-to-measure-static-mesh-height-or-width-in-units/281055/4 "2014-04-20T16:56:29Z")

</div>

Thanks! It worked.

---

<div class="post-metadata">

**Author:** ![PadaVinson\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PadaVinson\_1](https://forums.unrealengine.com/u/PadaVinson_1)\
**Post date:** [May 16, 2014, 5:30am UTC](https://forums.unrealengine.com/t/how-to-measure-static-mesh-height-or-width-in-units/281055/5 "2014-05-16T05:30:59Z")

</div>

I’m getting 404 errors on the links ☹

---

<div class="post-metadata">

**Author:** ![Zielak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zielak](https://forums.unrealengine.com/u/Zielak)\
**Post date:** [May 16, 2014, 6:21am UTC](https://forums.unrealengine.com/t/how-to-measure-static-mesh-height-or-width-in-units/281055/6 "2014-05-16T06:21:15Z")

</div>

You could search for those functions 🙂 Here’re the links:

[https://docs.unrealengine.com/latest/INT/API/RuntimeModules/Engine/GameFramework/AActor/GetActorBounds/index.html](https://docs.unrealengine.com/latest/INT/API/RuntimeModules/Engine/GameFramework/AActor/GetActorBounds/index.html)

[https://docs.unrealengine.com/latest/INT/API/RuntimeModules/Engine/Kismet/UKismetSystemLibrary/GetComponentBounds/index.html](https://docs.unrealengine.com/latest/INT/API/RuntimeModules/Engine/Kismet/UKismetSystemLibrary/GetComponentBounds/index.html)

---

<div class="post-metadata">

**Author:** ![janimationd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@janimationd](https://forums.unrealengine.com/u/janimationd)\
**Post date:** [February 3, 2017, 12:40am UTC](https://forums.unrealengine.com/t/how-to-measure-static-mesh-height-or-width-in-units/281055/7 "2017-02-03T00:40:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![florianbepunkt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@florianbepunkt](https://forums.unrealengine.com/u/florianbepunkt)\
**Post date:** [April 3, 2017, 2:25pm UTC](https://forums.unrealengine.com/t/how-to-measure-static-mesh-height-or-width-in-units/281055/8 "2017-04-03T14:25:26Z")

</div>

Is there a way to compensate for this? So that the I get correct side length regardless of the mesh’s rotation?

---

<div class="post-metadata">

**Author:** ![mspoku](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mspoku](https://forums.unrealengine.com/u/mspoku)\
**Post date:** [August 4, 2017, 6:42am UTC](https://forums.unrealengine.com/t/how-to-measure-static-mesh-height-or-width-in-units/281055/9 "2017-08-04T06:42:16Z")

</div>

You could perhaps save the dimensions of the bounding box BEFORE it is rotated. Then you’ll have access to it always.

---

<div class="post-metadata">

**Author:** ![Javad\_Rezaii](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/javad_rezaii/32/948244_2.png) [@Javad\_Rezaii](https://forums.unrealengine.com/u/Javad_Rezaii)\
**Post date:** [September 20, 2023, 4:12pm UTC](https://forums.unrealengine.com/t/how-to-measure-static-mesh-height-or-width-in-units/281055/10 "2023-09-20T16:12:24Z")

</div>

In Unreal 5.3 get component bounds and get actor bounds only give us the location of actor. not its size.
