- Home /
Question by
$$anonymous$$ · Nov 18, 2015 at 02:30 PM ·
transformpositioncanvas
Canvas button transfrom position not correct
Hi, I got some issues today. My button's position is not correct. It is one of the canvas' child
Camera Orthographic size is 9.4. I am making 2D game. The right down corner is (16.7, -9.4). The button.transform.position should be (15.0, -7.9), but now it's return wrong position with(20.8, -10.9).
The rectTransform.anchoredPosition is correct, and it looks right, the only problem is it's transform.position isn't correct.
Any help will be appreciated!
e2cb782b-d935-4547-b5be-f8da59e9e324.jpg
(78.5 kB)
127a492d-f8ae-4179-8352-ec2029001ac0.jpg
(95.4 kB)
Comment
Two questions... 1 ) Where do you get the (15.0, -7.9) from? 2) $$anonymous$$ight it be a position vs localPosition thing?