9using System.Collections;
10using System.Collections.Generic;
16 [CanEditMultipleObjects]
17 [CustomEditor(typeof(TransitionBehaviour), editorForChildClasses:
true, isFallback =
true)]
26 private void drawIndentedTransitionState(SerializedProperty prop) {
27 EditorGUI.indentLevel++;
29 if (prop.objectReferenceValue ==
null) {
30 GUI.contentColor =
new Color(0.7f, 0.7f, 0.7f, 1);
33 EditorGUILayout.PropertyField(prop);
34 EditorGUI.indentLevel--;
35 GUI.contentColor =
Color.white;
37 EditorGUILayout.Space();
41 base.OnInspectorGUI();
43 if (
targets.Length == 1 && Application.isPlaying) {
44 if (GUILayout.Button(
"Execute Transition")) {
void specifyCustomDrawer(string propertyName, Action< SerializedProperty > propertyDrawer)
Specify a callback to be used to draw a specific named property. Should be called in OnEnable.
override void OnInspectorGUI()