How to get actor compopnent size?

I found this:

And this:

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.

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!!

1 Like