Hi
I’m creating a galaxy map with randomly placed stars and planets, and I want to set different planets to different colors. I create the planets using a factory, and I can’t figure out how to access the instance afterwards.
How do I use set_constant on a GO created by a factory?
The factory returns the hashed id but in order to set_constant on a component I need to specify the path to the component in the GO.
Combining the hash and a string id of the component does not work.
I could send a message to the GO and have a script on it that sets the constant, but it seems wasteful to send messages when I have a local reference already.
Or what is the intended way of handling interactions like this?