Transform Position Are Different Each Other
Hey guy, I have a problem here. So, I'm working in my 2D game, and let's say I have two game object. But, the position of the game object doesn't match. For example, I set the first game object transform.position to 10f, 10f, 10f
and I did the same thing with the second game object, the position is 10f, 10f, 10f
. But, the game object are not in the same place. Please help me, I really need to make the position match each other.
And well, I use the canvas too for making the game responsive. Is it the case why this is happening?
Answer by tormentoarmagedoom · Oct 06, 2018 at 06:28 PM
Good day.
This is because the position you see in the inspector is the local position, relative to its parent object. You have two objects from different parents.
Bye!
Your answer
Follow this Question
Related Questions
multiple buttons to open world canvases in vr 0 Answers
How can I check if there is no free space in the Text component? 1 Answer
Moving UI buttons with code 0 Answers
how to make many canvas in one scene {unity 5.2},how to make many canvas in one scene 0 Answers
How to hide x number of button while the button its doing something.. 0 Answers