# Get Object Name is different in package

**URL:** <https://forums.unrealengine.com/t/get-object-name-is-different-in-package/464090>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [April 22, 2020, 3:15pm UTC](https://forums.unrealengine.com/t/get-object-name-is-different-in-package/464090 "2020-04-22T15:15:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdrianTabacaru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AdrianTabacaru](https://forums.unrealengine.com/u/AdrianTabacaru)\
**Post date:** [April 22, 2020, 3:15pm UTC](https://forums.unrealengine.com/t/get-object-name-is-different-in-package/464090/1 "2020-04-22T15:15:29Z")

</div>

Hello everyone!  
I’ve been flipping this upside down for a while and it still puzzles me.  
I’m using a LineTrace for objects that is checking what actor it hits. In this case, it hits the HandBP from the UVRF 2019 iNFINITE-CZ tutorial. It spawns two actors, HandBP0 and HandBP1.

Using the Switch on String module for checking the Out hit component, everything is good while in the editor. The hit result is “HandBP\_C\_0” and “HandBP\_C\_1”.

The problem is when I package this, the HandBP actors have a different name in the build: “HandBP\_C\_2147482533” for the left hand and “HandBP\_C\_2417482528” for the right hand…and these names are changing from time to time for no particular reason by decrementing the numbers.

My question:  
Is there another way to check what hand the LineTrace hits? other than Get Object Name?  
Or is there a way to set the HandBP name to something unique?

Thank you, Adrian

 ![300285-linetrace-hit-result.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/c/19c1079f7ced9872d4d66e359d638ad5332126ff.png)

![300286-ingamehitresult.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/a/65ae3385a7ab93cba7b0189aa3d5753f43f3418a.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [April 22, 2020, 4:24pm UTC](https://forums.unrealengine.com/t/get-object-name-is-different-in-package/464090/2 "2020-04-22T16:24:47Z")

</div>

Use tags, give objects identifiers, look into interface communication, cast, use enumerators. Pick your poison. You cannot rely on the names.

---

<div class="post-metadata">

**Author:** ![AdrianTabacaru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AdrianTabacaru](https://forums.unrealengine.com/u/AdrianTabacaru)\
**Post date:** [April 22, 2020, 5:04pm UTC](https://forums.unrealengine.com/t/get-object-name-is-different-in-package/464090/3 "2020-04-22T17:04:25Z")

</div>

I will try all of this. Thank you!

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [April 22, 2020, 5:25pm UTC](https://forums.unrealengine.com/t/get-object-name-is-different-in-package/464090/4 "2020-04-22T17:25:12Z")

</div>

If you have only 2 hands (who knows ¯\_(ツ)\_/¯ ), it might be enough to give one of them a tag and:

 ![300305-annotation-2020-04-22-182007.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/8/db8839f38ee250fcecc2ff0c43341c6cf422bcc0.png)

---

<div class="post-metadata">

**Author:** ![AdrianTabacaru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AdrianTabacaru](https://forums.unrealengine.com/u/AdrianTabacaru)\
**Post date:** [April 22, 2020, 6:11pm UTC](https://forums.unrealengine.com/t/get-object-name-is-different-in-package/464090/5 "2020-04-22T18:11:29Z")

</div>

Great!  
I will try it and let you know!  
Thank you!

---

<div class="post-metadata">

**Author:** ![AdrianTabacaru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AdrianTabacaru](https://forums.unrealengine.com/u/AdrianTabacaru)\
**Post date:** [April 22, 2020, 8:17pm UTC](https://forums.unrealengine.com/t/get-object-name-is-different-in-package/464090/6 "2020-04-22T20:17:05Z")

</div>

Alrighty! It works!  
I will post here the solution:  
After trying to add the tag “IsLeftHand” to HandBP, the tag was replicated also to the right hand. (Don’t know why).  
Anyway, the workaround, probably not the best thou, was to add two sphere collisions to my pawn left and right hands and add there the tags “IsLeftHand”, “IsRightHand” for each sphere collision.  
After that, I was switching the LineTrace Type Query to Pawn and now the Tags are passed.

 ![300290-1pawn.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/7/b07c69abd895b5441b05af6851b7949d8d630c64.png)

 ![300321-2linetrace-with-tag.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/3/1f34ff90edbad533fc60af4af732ddd77d747039.png)

Thank you soo much Everynone for helping me with this.
