# How to get the bounds of a static mesh in construction script

**URL:** <https://forums.unrealengine.com/t/how-to-get-the-bounds-of-a-static-mesh-in-construction-script/736585>\
**Category:** Programming & Scripting\
**Tags:** size, unreal-engine, bounds, construction-script, question\
**Created:** [December 26, 2022, 11:10pm UTC](https://forums.unrealengine.com/t/how-to-get-the-bounds-of-a-static-mesh-in-construction-script/736585 "2022-12-26T23:10:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteviPevi\_TheOne](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SteviPevi\_TheOne](https://forums.unrealengine.com/u/SteviPevi_TheOne)\
**Post date:** [December 26, 2022, 11:10pm UTC](https://forums.unrealengine.com/t/how-to-get-the-bounds-of-a-static-mesh-in-construction-script/736585/1 "2022-12-26T23:10:26Z")

</div>

Hey,  
I need to get the bounds of a static mesh in construction script. The problem is, it comes from an exposed variable.  
If I set the static mesh directly in the blueprint by default, I can get the bounds, but when I set it through an exposed variable in editor, I get no bounds.

Is there a way to get the bounds?

---

<div class="post-metadata">

**Author:** ![RecourseDesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/recoursedesign/32/1194503_2.png) [@RecourseDesign](https://forums.unrealengine.com/u/RecourseDesign)\
**Post date:** [December 26, 2022, 11:45pm UTC](https://forums.unrealengine.com/t/how-to-get-the-bounds-of-a-static-mesh-in-construction-script/736585/2 "2022-12-26T23:45:17Z")

</div>

Hi SteviPevi\_TheOne,

You could make a function in your blueprint and mark it as “Editor Callable” which makes it a button - so you’d set the mesh in editor, then click the button to set the bounds…
