# How can I set the Size of a Mesh using code?

**URL:** <https://forums.unrealengine.com/t/how-can-i-set-the-size-of-a-mesh-using-code/282751>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 7, 2014, 5:52pm UTC](https://forums.unrealengine.com/t/how-can-i-set-the-size-of-a-mesh-using-code/282751 "2014-05-07T17:52:26Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [May 9, 2014, 3:30pm UTC](https://forums.unrealengine.com/t/how-can-i-set-the-size-of-a-mesh-using-code/282751/5 "2014-05-09T15:30:10Z")

</div>

#Solution

Make a blueprint of your static mesh actor class

In the editor, go to the components tab

then you can fix everything up very easily

Then you can use C++ to spawn your BP, you can use my templated Spawn BP function to do this!

#Wiki Link

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

#Summary

Manipulating the relationships between components is much easier to do in the editor, especially if you want to visualize what the actual issue is

#Last Step

once you find the solution you could go back to just C++ with greater understanding

Rama

---

_[View the full topic](https://forums.unrealengine.com/t/how-can-i-set-the-size-of-a-mesh-using-code/282751)._
