Esempio n. 1
0
        protected virtual void OnSceneGUI()
        {
            if (m_splineBaseEditor == null)
            {
                m_splineBaseEditor = SplineBaseEditorImpl.Instance;
                m_splineBaseEditor.Enable(Selection.objects, Selection.activeObject);
            }

            if (EditorWindow.focusedWindow == SceneView.lastActiveSceneView)
            {
                if (Event.current.rawType == EventType.MouseUp || Event.current.type == EventType.MouseDown)
                {
                    m_splineBaseEditor.SyncCtrlPoints();
                }
            }
            else
            {
                m_splineBaseEditor.SyncCtrlPoints();
            }

            ControlPoint point = (ControlPoint)target;

            if (Selection.activeObject == point.gameObject)
            {
                m_splineBaseEditor.SceneGUI();
            }
        }
        protected virtual void OnSceneGUI()
        {
            if (m_splineBaseEditor == null)
            {
                m_splineBaseEditor = SplineBaseEditorImpl.Instance;
                m_splineBaseEditor.Enable(Selection.objects, Selection.activeObject);
            }
            JunctionBase junction = (JunctionBase)target;

            if (Selection.activeObject == junction.gameObject)
            {
                m_splineBaseEditor.SceneGUI();
            }
        }