- Home /
EditorWindow & Handles Position/FreeMove/...
Hi everybody,
Is there any way to use these functions in the OnGUI() of an EditorWindow?
Currently I use without any problem Handles.Label, it works like a charm but Handles.PositionHandle and Handles.FreeMoveHandle throw a NullReferenceException:
DoPlanarHandle() for Position
FreeMove.Do() for FreeMove
Answer by 3j- · Jan 09, 2016 at 05:03 PM
Ran in to this problem today. I think you can only use these functions in the OnSceneGUI() function.
Your answer
Follow this Question
Related Questions
Using PositionHandle inside an EditorWindow 2 Answers
Handling NullReferenceException in EditorWindow OnGUI() 0 Answers
Draw Gizmos and Handles in the scene from an EditorWindow 1 Answer
Code executes more than once when key press event is triggered in OnGui in Custom Editor Window 3 Answers
Huge Performance difference between docked and undocked EditorWindow 0 Answers