# Is there a way to get an object size and compare it?

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-get-an-object-size-and-compare-it/383027>\
**Category:** Blueprint\
**Tags:** size, compare, unreal-engine, UE4, Blueprint, question\
**Created:** [January 26, 2017, 2:51pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-an-object-size-and-compare-it/383027 "2017-01-26T14:51:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deygus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/deygus/32/982675_2.png) [@Deygus](https://forums.unrealengine.com/u/Deygus)\
**Post date:** [January 26, 2017, 2:51pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-an-object-size-and-compare-it/383027/1 "2017-01-26T14:51:51Z")

</div>

Anyone know if there’s a way to set up a blueprint to get one cube’s size and compare it with another cube’s size?

So that that function could then be recognized as true to somehow make a shape recognition library out of a series of blocks that are connected such as in an L or an H as an example of that?

So far I see there’s bools, arrays, tarrays, int, and a bounding box node so I am thinking there might be a way if I fiddle around with it enough perhaps.

Any guidance on this is appreciated.

---

<div class="post-metadata">

**Author:** ![HiIAmMoot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HiIAmMoot](https://forums.unrealengine.com/u/HiIAmMoot)\
**Post date:** [January 26, 2017, 8:13pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-an-object-size-and-compare-it/383027/2 "2017-01-26T20:13:51Z")

</div>

You can just get the scale of the cubes. If they’re components you can use Get World Scale, if they’re actors you can use the Get Actor Scale 3D node.

[http://puu.sh/tBq3P/16ea33b212.png](http://puu.sh/tBq3P/16ea33b212.png)

They will output vectors which you can break and compare the floats with eachother to determine which of the 2 are bigger. This is assuming the cubes make use of the same static mesh.

---

<div class="post-metadata">

**Author:** ![Deygus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/deygus/32/982675_2.png) [@Deygus](https://forums.unrealengine.com/u/Deygus)\
**Post date:** [January 26, 2017, 8:45pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-an-object-size-and-compare-it/383027/3 "2017-01-26T20:45:54Z")

</div>

Awesome! That’s exactly what I needed, thanks a ton! 😃
