private void OnEnable() { Undo.undoRedoPerformed += OnUndoRedo; LoadPrefs(); painter = (GFoliagePainter)target; InitFilterClasses(); Tools.hidden = true; foreach (SceneView sv in SceneView.sceneViews) { sv.wantsMouseEnterLeaveWindow = true; } }
private void OnEnable() { GCommon.RegisterBeginRender(OnBeginRender); GCommon.RegisterBeginRenderSRP(OnBeginRenderSRP); Undo.undoRedoPerformed += OnUndoRedo; SceneView.duringSceneGui += DuringSceneGUI; LoadPrefs(); painter = (GFoliagePainter)target; Tools.hidden = true; foreach (SceneView sv in SceneView.sceneViews) { sv.wantsMouseEnterLeaveWindow = true; } }