Hello *,
I have a problem with a child of a prefab.
I’m instantiating this prefab:
targetInAir = Instantiate(TargetPrefab, Abschusskoordinaten[0].position, Abschusskoordinaten[0].rotation);
TargetPref has a child called “DistCrds”. This Child is an empty GameObject (only Transform) and has no script attached. While TargetPref is instatntiated I need to set the X, Y and Z position of “DistCrds”.
Please can you tell me how to do this? I have tried several things like “GameObject.GetComponentInChildren” but nothing worked.
Thank you,
Ulrich