# How to get actor compopnent size?

**URL:** <https://forums.unrealengine.com/t/how-to-get-actor-compopnent-size/1837930>\
**Category:** Getting Started & Setup\
**Tags:** unreal-engine, CPP, Blueprint, question\
**Created:** [May 3, 2024, 11:23am UTC](https://forums.unrealengine.com/t/how-to-get-actor-compopnent-size/1837930 "2024-05-03T11:23:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [May 3, 2024, 12:07pm UTC](https://forums.unrealengine.com/t/how-to-get-actor-compopnent-size/1837930/2 "2024-05-03T12:07:11Z")

</div>

I found this:

![](https://d3kjluh73b9h9o.cloudfront.net/optimized/4X/f/2/6/f26e1113135e8b8297f86e4347653b3d87b7545e_2_690x388.jpeg)https://www.youtube.com/embed/4rrgldPmtE8?feature=oembed&wmode=opaque

And this:

```auto
FVector Size = StaticMesh->Bounds.GetBox().GetSize();
FVector BoxExtent = StaticMesh->Bounds.BoxExtent;
FVector Origin = StaticMesh->Bounds.Origin;

```

And this:

`UKismetSystemLibrary::GetComponentBounds(const USceneComponent* Component, FVector& Origin, FVector& BoxExtent, float& SphereRadius);`

However, it seems that the box may be much larger than the component especially if it is rotated it seems that it can give erroneous measurements.

> [@Get Random Point In Bounding Box Problem If Rotated](https://forums.unrealengine.com/t/get-random-point-in-bounding-box-problem-if-rotated/1559921/2):
>
> It’s a pain in the bum, basically slight_smile The bounds calculation is correct, so we need to calculate via a box the doesn’t rotate with the actor, and then correct. I have two components, one that always corrects to zero rotation when I move the actor [image] We need to find the points in the unrotated box, and do a couple of transforms to get the rotated box It works. The random point node gives you world coordinates, not much use here. So we have to make them local, rotat…

Another simpler way to measure the component is welcome. It’s just a cube.  
I need length, height and width. That’s all.

Thank you so much!!

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-get-actor-compopnent-size/1837930)._
