public override void OnInspectorGUI() { // if (_cameraPath.enableUndo) Undo.RecordObject(_cameraPath, "Modified Camera Path"); CameraPathEditorInspectorGUI.OnInspectorGUI(); if (GUI.changed) { UpdateGui(); } }
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(); }
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(); }
private void CleanUp() { CameraPathEditorInspectorGUI.CleanUp(); }