Answer the question
In order to leave comments, you need to log in
How to find an object on the stage in Unity using a script?
Hello!
I need help. I need a function that will find an object on the stage by certain parameters (for example, the name).
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
If by name then GameObject.Find();
There is also a search among child objects, or you can search by the GameObject.FindWithTag tag
In any case, as mentioned above, read the
docs https://docs.unity3d.com/ScriptReference/GameObjec...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question