# GetComponentScale on UStaticMeshComponent returns default scale

**URL:** <https://forums.unrealengine.com/t/getcomponentscale-on-ustaticmeshcomponent-returns-default-scale/474993>\
**Category:** C++\
**Tags:** unreal-engine, scale, CPP, question\
**Created:** [November 25, 2020, 8:35pm UTC](https://forums.unrealengine.com/t/getcomponentscale-on-ustaticmeshcomponent-returns-default-scale/474993 "2020-11-25T20:35:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmikhaile](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmikhaile](https://forums.unrealengine.com/u/gmikhaile)\
**Post date:** [November 25, 2020, 8:35pm UTC](https://forums.unrealengine.com/t/getcomponentscale-on-ustaticmeshcomponent-returns-default-scale/474993/1 "2020-11-25T20:35:27Z")

</div>

Trying to `GetComponentScale` from a `UStaticMeshComponent` after I set `SetWorldScale3D(FVector(30, 30, 1));`

```
MazeBase = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("MazaBase"));
MazeBase->SetWorldScale3D(FVector(30, 30, 1));
FVector Scale = MazeBase->GetComponentScale();

```

`GetComponentScale` returns `Scale == {1, 1, 1}` ??

What do I do wrong?

---

<div class="post-metadata">

**Author:** ![gmikhaile](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gmikhaile](https://forums.unrealengine.com/u/gmikhaile)\
**Post date:** [March 8, 2021, 4:42pm UTC](https://forums.unrealengine.com/t/getcomponentscale-on-ustaticmeshcomponent-returns-default-scale/474993/2 "2021-03-08T16:42:42Z")

</div>

Well I was calling the wrong method  
`MazeBase->K2_GetComponentScale()` - this one is right
