Hello there, having a bit of trouble here.
Would like to know how do you find your tag game object inside your parent. For example I have a prefab that will be instantiate on the fly and my script need to find a few game object inside the prefab parent, I can find the game object with no trouble, my trouble come when there’s multiple prefab being call. It will not put the game object in the proper instantiated prefab. for example 1st prefab instantiated ok with all the tag game object put to it place, but when the second prefab being call it will not put the tag game object from it own parent but it will find the 1st tag gameobject inside the 1st prefab being call.
public GameObject runaway2B;
public GameObject runaway3B;
public GameObject runaway1S;
public GameObject runaway2S;
public GameObject runaway3S;
public GameObject helipad1;
public GameObject helipad2;
public GameObject helipad3;
public GameObject navPointA;
public GameObject navPointB;
public GameObject navPointC;
public GameObject navPointD;
this gameobject is inside the prefab
runaway1B = GameObject.FindWithTag ("runB1");
runaway2B = GameObject.FindWithTag ("runB2");
runaway3B = GameObject.FindWithTag ("runB3");
runaway1S = GameObject.FindWithTag ("runS1");
runaway2S = GameObject.FindWithTag ("runS2");
runaway3S = GameObject.FindWithTag ("runS3");
helipad1 = GameObject.FindWithTag ("heli1");
helipad2 = GameObject.FindWithTag ("heli2");
helipad3 = GameObject.FindWithTag ("heli3");
navPointA = GameObject.FindWithTag ("navA");
navPointB = GameObject.FindWithTag ("navB");
navPointC = GameObject.FindWithTag ("navC");
navPointD = GameObject.FindWithTag ("navD");
I used this to call the gameobject.
I just used "GameObject.FindWithTag ("");"
…is there any other way to do this.