How to rename object after spawn via blueprint?

Okay, so I’m gonna answer this in excruciating detail since no one seems willing to come up with solutions:

To change an actor’s editor name:

  • Create a new Editor Utility Blueprint. Make sure that you have the Editor Utilities plugin enabled.
  • Create an Actor variable as well as any variables for the info you want (alternative you can also just pass the string if you want the Actor itself to determine its name). Make sure the variables are Instance Editable and Expose on Spawn.
  • OnBeginPlay in the EditorUtility, call SetActorLabel with reference to your actor variable. Of course, add validity/sanity checks as needed.
  • (Optional) Call Destroy Actor after SetActorLabel because these actors will now populate your editor, which is equally annoying.
  • In the original blueprint of the Actor whose name you want to change, add a part OnBeginPlay that spawns the EditorUtility Actor feeding in the variables and references you exposed.