Example #1
0
    public override void OnInspectorGUI()
    {
//        if (_cameraPath.enableUndo) Undo.RecordObject(_cameraPath, "Modified Camera Path");
        CameraPathEditorInspectorGUI.OnInspectorGUI();

        if (GUI.changed)
        {
            UpdateGui();
        }
    }
Example #2
0
    private void OnEnable()
    {
        if (target != null)
        {
            _cameraPath = (CameraPath)target;
            _animator   = _cameraPath.GetComponent <CameraPathAnimator>();
        }

        CameraPathEditorSceneGUI._cameraPath = _cameraPath;
        CameraPathEditorSceneGUI._animator   = _animator;

        CameraPathEditorInspectorGUI._cameraPath = _cameraPath;
        CameraPathEditorInspectorGUI._animator   = _animator;
        CameraPathEditorInspectorGUI.Setup();
    }
Example #3
0
    private void OnEnable()
    {
        if (target != null)
        {
            _cameraPath = (CameraPath)target;
            _animator   = _cameraPath.GetComponent <CameraPathAnimator>();
        }

        CameraPathEditorSceneGUI._cameraPath  = _cameraPath;
        CameraPathEditorSceneGUI._animator    = _animator;
        CameraPathEditorSceneGUI.colouredText = new GUIStyle();
        CameraPathEditorSceneGUI.colouredText.normal.textColor = _cameraPath.textColour;

        CameraPathEditorInspectorGUI._cameraPath = _cameraPath;
        CameraPathEditorInspectorGUI._animator   = _animator;
        CameraPathEditorInspectorGUI.Setup();
    }
Example #4
0
 private void CleanUp()
 {
     CameraPathEditorInspectorGUI.CleanUp();
 }