Adding tags to actors permanently placed in the editor

All my actors are placed in the editor. No dynamically placed objects. I want to add tags to them at runtime. Most of the actors have a base class.


My code, which runs in the construction script of the base class, is in the image.
Does the object name of every actor in the scene remain the same, or will it change on every time the game is run?

not super sure but i think it will stay the same.
unless it’s on a sublevel and you load it using streaming levels.
i would consider calling the parent constructor. (right click on the construct node, “Add call to parent”) specially on the child classes.

I use level streaming, and all my game characters are placed in sublevels. What do you mean by saying “unless it’s on a sublelevel and you load it using streraming levels”? Do you mean that if that is the case, the tags will differ?

i’m implying that. though to be honest i don’t have certainty.
why don’t you try it and see it for yourself? seems like a simple enough test. and would be the most real way to get a sure answer. either that or look in the code.

Finally, I decided to use the position as the tag value, as my game characters are pre-placed in the game; this works well. I Tested it over months, and it works perfectly.