Hi, is there any way to access a newly created object directly during runtime? Without having to use GameObject.Find to troll through every active object? Or if I want to make a reference between a new object and another object that is currently inactive? Here is my case:
I have a game with three characters you can cycle among at any time. The currently chosen character is active while the other two are inactive. There are multiple scenes in the game, one for each area explored, and these three character objects are the only objects that persist through all of the different scenes.
Each scene has a separate camera object that is instantiated upon the loading of the scene, which must have a reference to each character. I would like to avoid using the .Find function to find these character objects by name, because of how slow I’ve heard it is. But on top of that, two of the character objects are always inactive, which makes .Find not even an option.
Any ideas on how I can dynamically make these connections?