How can i set the display name of a spawned object?

You can’t set an object’s display name by code because they are not used in gameplay code. Objects in game are identified by ID, not display names thus there’s no function to set an Actor’s display name in game code.