Unity UI idiotic coordinates
this line of code is called when I click on a button, it just moves an element.
elementTransform.position = new Vector3(0, 350, 0);
The inspector after clicking the button :
(forgive the awful pink hue, I set it to know I'm editing in play mode)
Why ? The only correct value is Z and that's probably because I'm working in 2D.
capture.png
(7.3 kB)
Comment
Your answer
Follow this Question
Related Questions
Weird Invisible Mouse Cursor Glitch [Help] 0 Answers
Can't select button in ScrollArea when moving from ScrollBar to button with mouse button pressed 1 Answer
UI Input Field - text not wrapping 2 Answers
sort hierarchy under same parent using code 1 Answer
Canvas behaves differently on PC fullscreen and WebGL fullscreen 0 Answers