Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: oneki on November 05, 2016, 07:25:00 AM
-
Heyo.
I'm trying to set location of Rect Transform to where I click/touch.
Problem is when I click in lower left corner it puts the object in the center, instead of that lower left corner. As I click around the screen the object follows a rectangle, it's just offset by the 0.5 of the screen?
Any idea how to fix that? Have been scratching my head over this for a while now.
http://imgur.com/a/51rM4
-
http://imgur.com/a/CNwpx
On the right is Scene view showing the position of object, when I click in the center in the game view.
Canvas is set to screen space - camera. Changing it to world space doesn't really change the behaviour, just brings in the object closer to camera (makes it look bigger).
-
Finally solved it!
Problem was in using Rect set local position instead of Rect set anchor position.
http://imgur.com/a/tXzLb