Moved GameObject under Canvas (Parent), transform.position vector coordinates mismatch
Hello!
I recently moved my gameobjects into a Screen Space - Camera Canvas.
Previously, my gameobjects were using transform.position = new Vector3 (x,y,z) function.
However, after moving my game objects, the coordinates used do not match with the coordinates on the canvas.
Is there a solution or a function I'm supposed to reset gameobject's coordinates to match with it's parent(canvas)? this is so that the gameobject would move relative to its anchor preset?
Thanks in advance!
Your answer
![](https://koobas.hobune.stream/wayback/20220612082453im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How To Duplicate Canvas To Follow Player 0 Answers
Unity 2017.1 p4 - Unity Screen-space camera canvas - Graphics Raycaster fails 1 Answer
Need some help programming basic AI movement 0 Answers
Updated with UI text element not correct (same frame) 0 Answers
Vectors side determing by a line. Please help me out !!!! 0 Answers