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

Ran in to this problem today. I think you can only use these functions in the OnSceneGUI() function.