Change name of the actor in the packaged game

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

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!

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


Here is the GetLabelName function:

How can this help?

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:

Let me know if this was the information you needed!

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