is there a way to get a reference to asset by name and use it in the game? for example i wanna find a static mesh named candy and use it in the game
you could put a tag on the actor and search for that, or give the class an instance editable name variable.
find actors by the class, then query the name variable.
you could also have the actors report themselves. like some event happens and puts out a name, the actors you want to find are bound to the event, and the instance which matches the name can report itself to whoever is concerned.
1 Like