Just a small question, how should I call this object in the script?
I got a gameobject in the hierarchy that is called lets say “A”
Now what do I write this Object as?
Something like?..
A.GameObject
GameObject.A
or as, GameObject(“A”)
Just a small question, how should I call this object in the script?
I got a gameobject in the hierarchy that is called lets say “A”
Now what do I write this Object as?
Something like?..
A.GameObject
GameObject.A
or as, GameObject(“A”)
GameObject a;
void Awake()
{
if(GameObject.Find("A"))
a = GameObject.Find("A");
if(a)
print(a.name);
}