# Changing the size of a plane using c++?

**URL:** <https://forums.unrealengine.com/t/changing-the-size-of-a-plane-using-c/384722>\
**Category:** World Creation\
**Tags:** Procedural-Generation, unreal-engine, UE4, CPP, question\
**Created:** [February 12, 2017, 5:24pm UTC](https://forums.unrealengine.com/t/changing-the-size-of-a-plane-using-c/384722 "2017-02-12T17:24:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_86bb7543](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_86bb7543](https://forums.unrealengine.com/u/anonymous_user_86bb7543)\
**Post date:** [February 12, 2017, 5:24pm UTC](https://forums.unrealengine.com/t/changing-the-size-of-a-plane-using-c/384722/1 "2017-02-12T17:24:23Z")

</div>

I can easily change the size of an object using blueprints however could somebody show me how to do it dynamically using c++? I’ve looked around and questions like this have been asked however they are all now updated and don’t work.

---

<div class="post-metadata">

**Author:** ![Motanum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Motanum](https://forums.unrealengine.com/u/Motanum)\
**Post date:** [February 13, 2017, 8:24pm UTC](https://forums.unrealengine.com/t/changing-the-size-of-a-plane-using-c/384722/2 "2017-02-13T20:24:09Z")

</div>

I think you just call the SetWorldScale3D() function.

```
UYourMesh.SetWorldScale3D(FVector NewScale);
UYourMesh.SetWorldScale3D(1.0, 1.0, 1.0);

```

Would something like this do? Check the blueprint name, they are the same names, as well as the same inputs.

> **[How can I change the size of an UMeshComponent using C++?](https://forums.unrealengine.com/questions/39683/using-a-c-mesh-variable-in-blueprint.html)**
>
> Hey! I was wondering if I can manipulate the Mesh like I can in Blueprint (adjusting its size, position and rotation like I could with a blueprint mesh component). Just asking, because I really prefer using C++ and am not to keen into learning how to...
