Search Unity

Resolved Paint handles in SceneView from Custom Editor Window

Discussion in 'Editor & General Support' started by Hermkerm, Dec 1, 2021.

  1. Hermkerm

    Hermkerm

    Joined:
    Feb 15, 2018
    Posts:
    4
    Hello,

    I'm trying to draw handles in the sceneView when a custom editor window is open
    (by calling handle draw methods from the custom editor window script).
    Using "Handles.SetCamera()" to set the camera to the camera of the last active sceneview orients the
    handles correctly, but still draws them inside the custom editor window instead the sceneView.

    Thanks
     
  2. Hermkerm

    Hermkerm

    Joined:
    Feb 15, 2018
    Posts:
    4
    Solved by hooking handle draws to SceneView.beforeSceneGui event.