I’m instantiating quite a lot of objects and I want them all to be parented under one GameObject so that that GameObject can access its children easier and to clean up the hierarchy, unfortunately I cant seem to assign any GameObject or transform other than a prefab to a prefab or script in the project panel and I would rather not use GameObject.Find because im instantiating quite a lot of prefabs and it would slow down my game. I tried using a helper class but I found myself in the same predicament trying to acces the helper class or vice versa. Any ideas?
1 Answer
1Figured it out! I can use GameObject.FindWithTag(); for both performance and making it actually work
![1] I ran into the same problem with you. I got a simple class with 2 field, use custom property drawer, and a custom attribute to disable a field if there is no match required-component. Did anyone solved this problem? [1]: https://scontent.fsgn2-2.fna.fbcdn.net/v/t1.0-9/22730511_1187683667999156_5398175392259746795_n.jpg?oh=4b56979a42801aaff4fc2289af6f4360&oe=5A7EC54E
– Meepolisk