示例#1
0
        private void OnEnable()
        {
            Undo.undoRedoPerformed += OnUndoRedo;
            LoadPrefs();
            painter = (GFoliagePainter)target;
            InitFilterClasses();
            Tools.hidden = true;

            foreach (SceneView sv in SceneView.sceneViews)
            {
                sv.wantsMouseEnterLeaveWindow = true;
            }
        }
示例#2
0
        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;
            }
        }