# Change name of the actor in the packaged game

**URL:** <https://forums.unrealengine.com/t/change-name-of-the-actor-in-the-packaged-game/1985677>\
**Category:** World Creation\
**Tags:** unreal-engine, question\
**Created:** [August 21, 2024, 7:34am UTC](https://forums.unrealengine.com/t/change-name-of-the-actor-in-the-packaged-game/1985677 "2024-08-21T07:34:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [August 21, 2024, 7:34am UTC](https://forums.unrealengine.com/t/change-name-of-the-actor-in-the-packaged-game/1985677/1 "2024-08-21T07:34:59Z")

</div>

I have some static mesh actors, and want some arrow to point to one of them, depending on the situation. I use the actor display names for this, and in the debugger and even in the Standalone Game everything works fine. But when I packaged the game, the pointer had stopped to “see” those static mesh actors. After the many checks, I have found that the actors have the names like this:  
 ![2024-08-21_10-19-09](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/3/8038d675bc5799ec99eef9ad6ea292c44a86f68b.png)  
As you can see, the actor display name doesn’t even contain the name I used when renamed the actor in the editor. How to fix this?  
EDIT: I have just checked and “GetObjectName” returns the same string as above.

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [August 22, 2024, 10:49am UTC](https://forums.unrealengine.com/t/change-name-of-the-actor-in-the-packaged-game/1985677/2 "2024-08-22T10:49:55Z")

</div>

Hey @Etyuhibosecyu!

It’s hard to tell what could be going wrong with the context given. To help get the ball rolling, could you share your blueprints/code that you have so far?

Any additional specifics you provide will help in resolving your problem!

---

<div class="post-metadata">

**Author:** ![Etyuhibosecyu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/etyuhibosecyu/32/1044081_2.png) [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Post date:** [August 22, 2024, 11:53am UTC](https://forums.unrealengine.com/t/change-name-of-the-actor-in-the-packaged-game/1985677/3 "2024-08-22T11:53:24Z")

</div>

Hello @Quetzalcodename! Here is the blueprint function that finds the actor locations that the arrow has to point to:

 ![2024-08-22_14-44-23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/e/2/1e229f1e8860e16797a3a89c866cfc7bb77c1eac.png)  
Here is the GetLabelName function:  
 ![2024-08-22_14-51-35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/2/3b29bce995a310d7dd45a73a1deba12676ee6915.png)  
How can this help?

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [August 23, 2024, 10:47am UTC](https://forums.unrealengine.com/t/change-name-of-the-actor-in-the-packaged-game/1985677/4 "2024-08-23T10:47:28Z")

</div>

Hey @Etyuhibosecyu,

It would be better to use a name variable or a tag than an object name as those can be changed. Check our this thread with a similar issue to yours with a solution:

> [@Get Object Name is different in package](https://forums.unrealengine.com/t/get-object-name-is-different-in-package/464090):
>
> 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…

Let me know if this was the information you needed!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 22, 2024, 10:47am UTC](https://forums.unrealengine.com/t/change-name-of-the-actor-in-the-packaged-game/1985677/5 "2024-09-22T10:47:40Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
