# Finding highest level parent

**URL:** <https://forums.unrealengine.com/t/finding-highest-level-parent/396208>\
**Category:** Blueprint\
**Tags:** parent, child-actors, attach, vr-template, unreal-engine, Blueprint, question\
**Created:** [June 15, 2017, 9:22pm UTC](https://forums.unrealengine.com/t/finding-highest-level-parent/396208 "2017-06-15T21:22:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_7cc8cacf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7cc8cacf](https://forums.unrealengine.com/u/anonymous_user_7cc8cacf)\
**Post date:** [June 15, 2017, 9:22pm UTC](https://forums.unrealengine.com/t/finding-highest-level-parent/396208/1 "2017-06-15T21:22:37Z")

</div>

In the VR template I am attaching multiple actors together. I want to be able to grab any one of them and move the whole group. My idea is to find the highest level or top parent, and attach that to the hand when grabbing any of the attached actors. I’m wondering if there is a specific way to find the highest level parent? I thought my code would set “Check if head parent” to the top parent but it doesn’t seem to work…

 ![190691-highestlevelparent.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/2/5c2f85a3e23f9b6f7cf3751138dba3655d2c9fce.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7cc8cacf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7cc8cacf](https://forums.unrealengine.com/u/anonymous_user_7cc8cacf)\
**Post date:** [June 23, 2017, 1:10pm UTC](https://forums.unrealengine.com/t/finding-highest-level-parent/396208/2 "2017-06-23T13:10:58Z")

</div>

I solved my issue by looping a few nodes and using “Get Attach Parent Actor” and checking if it returns null, if it did it was the highest parent, if not id set the variable to this new parent and lopp again.

---

<div class="post-metadata">

**Author:** ![Razivoid](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Razivoid](https://forums.unrealengine.com/u/Razivoid)\
**Post date:** [February 29, 2024, 4:29pm UTC](https://forums.unrealengine.com/t/finding-highest-level-parent/396208/3 "2024-02-29T16:29:17Z")

</div>

There’s a node in Collab Template called: `GetHierarchyLastParent`:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/f/c2f7b38f4a3555082515017dc8bd29a91884c003.png)

You can recreate in your own common function library:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/7/ad7d598ba221f51b2ea3ad7b3469c5272546b952.png)

Note that you may want to check if the input Actor ref is valid / tweak for robustness.

---

<div class="post-metadata">

**Author:** ![yourboypavs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yourboypavs](https://forums.unrealengine.com/u/yourboypavs)\
**Post date:** [August 25, 2024, 1:00am UTC](https://forums.unrealengine.com/t/finding-highest-level-parent/396208/4 "2024-08-25T01:00:06Z")

</div>

I can’t find this function anywhere. Was it removed?
