- Home /
Global Mouse Position
I'm working on an editor script that involves dragging around elements from different GUILayout areas. When dragging an element, it seems that the mousePosition changes relative to the area the element is in. How can we check for the global mousePosition relative to the editor window?
Edit: I stopped using GUILayout and opted for GUI instead. For some reason, GUILayout controls seem to have their own coordinates when interacting with the mouse.
Your answer
Follow this Question
Related Questions
Set script global variable value priority over editor values 1 Answer
Can i extend or customise editor for all MonoBehaviours? 3 Answers
How can I preserve static object/data between editor and play? 2 Answers
EditorApplication Awake event? 1 Answer
Any way to make Editor scripts available to all projects? 1 Answer