Search Unity

How to persistently display a custom editor handle?

Discussion in 'Editor & General Support' started by Edvard-D, May 24, 2020.

  1. Edvard-D

    Edvard-D

    Joined:
    Jun 14, 2012
    Posts:
    129
    I'm trying to figure out how I can display a handle without the object having to be created first. My use case is I have a prefab with nested prefabs. The nested prefabs have custom editors that draw handles. I found that you can register a custom function to "SceneView.duringSceneGui" (previously called "onSceneGUIDelegate") to have the display of the handle be persistent. The problem is that this still only displays the handle if the nested object has been selected. There doesn't seem to be any way to get it to display right when an instance of the prefab is created.

    Any thoughts on how to go about this or what I might be doing wrong?