Timeline for How to dynamically construct a reference to a game object by name
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 16, 2018 at 18:09 | vote | accept | mheavers | ||
| Jul 14, 2018 at 1:57 | answer | added | Pheonix2105 | timeline score: 0 | |
| Jul 14, 2018 at 1:53 | comment | added | DMGregory♦ | Would it be an option to simply store references to the gameObjects in an array or list? Then you can just increment your index into the collection, no searching involved at all. With a little more info about how these menu options are created/provided, we can demonstrate how to set up such a structure. | |
| Jul 14, 2018 at 1:16 | comment | added | Almo♦ | GameObject.Find is pretty well not recommended in Unity unless you're really desperate Try tagging them, and use GameObject.FindWithTag. docs.unity3d.com/ScriptReference/GameObject.FindWithTag.html | |
| Jul 14, 2018 at 1:09 | history | asked | mheavers | CC BY-SA 4.0 |