20 public abstract class ProfileInspector : MRTKEditor
22 public Component targetComponent;
24 protected override bool DisplayHeader
28 return targetComponent == null;
32 protected override void BeginInspectorStyle()
34 if (targetComponent == null)
36 GUI.color = profileColor;
37 EditorGUILayout.BeginVertical(EditorStyles.helpBox);
38 GUI.color = Color.Lerp(profileColor, Color.red, 0.5f);
39 EditorGUILayout.LabelField(
"(Warning: this section edits the button profile. These changes will affect all objects that use this profile.)", EditorStyles.wordWrappedMiniLabel);
40 GUI.color = defaultColor;
44 protected override void EndInspectorStyle()
46 if (targetComponent == null)
48 EditorGUILayout.EndVertical();