If I do something like this…
[CustomEditor(typeof(mycomponent)]
public class MyEditorClass: Editor
{
void OnSceneGUI()
{
Event e = Event.current;
//if the shift key is being held down
if (e.shift)
{
//do stuff
e.use()
}
}
}
ie. Have a custom editor class that does something when shift is held down. All the time shift is held down the gizmos for everything are not drawn. I guess this is because I am using all the events before they are drawn.
Is there some way to tell the gizmos to draw anyway?
Note: I believe I need to use the event every OnSceneGUI(), otherwise the stuff I’m doing in it does not get updated, for instance when I move the mouse.