Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | TheAppleBoom |
I want to have drag and drop UI, but when I change the camera zoom level, the mouse position becomes unlinked from where the mouse actually is on screen.
I looked up how to do this and got the answer of:
GetViewport().CanvasTransform.AffineInverse().BasisXform(GetViewport().GetMousePosition())
But it doesn’t seem to be doing anything at all.