Hello everyone, I was testing recently added prefabs feature and did not figure out how to get the coordinates of child objects in them, here are the screenshots:
First action works perfectly: Green box changes its position to the position of a “Player” prefab.
In the second case, the box is placed at the coordinate of the red square as if the prefab was at 0:0 coordinates:
So prefab functions use coordinates of a prefab layout instead of coordinates of the scene the prefab is placed on.
How can I get the coordinates of a child object on the scene?