I am setting the X mouse position to 100 but get different number when retrieving mouse position
depending on what function i get a different number
- from Viewport = 97.122314
- from Platform = 103.0
How do I get the same result? am I setting the mouse position wrong or getting the mouse position wrong or is it a bug?
Ignore the extra functions
Auran131
(Auran13)
2
i havent checked but it probably depends on your viewport scale, there is a node to get viewport scale as well
Got viewport widget geometry and did local to viewport which gave me pretty close to 100.
result = 100.00000027 - probably due to floating point rounding error
So I just truncated it since its close enough for the scenario I need it for.
1 Like