maybe one of you could help me out.
I need a way to store the transform data of a marker when clicking on a parent game object in a global variable.
Unfortunately I could not find a solution for this yet.
There are several ways to find a component in a GameObject (using "strings") or to count the number of children.
There is also the possibility to address a child directly via the index.
But I could not generate a solution for my problem because I don't know the index when I click on it.
The structure of the game objects usually looks like this :
Child (Action or Condition)
Unfortunately it is not always guaranteed that the marker is on a certain index position.
It would be optimal if I could search all children of a game object -> then find the marker -> and then store the transform component in a global variable.
Maybe you have a hint for me how I can solve this.
Thanks a lot
Customer support service by UserEcho