Exemple #1
0
 protected void DrawScriptFieldForScriptableObject <T>() where T : ScriptableObject
 {
     BrightEditorUtility.DrawScriptField((T)target);
 }
Exemple #2
0
 /// <summary>
 /// Draws a button and returns true if it was pressed this frame
 /// </summary>
 public bool DrawButton(string text, float width = 60, float height = 20)
 => BrightEditorUtility.DrawButton(text, width, height);
Exemple #3
0
 /// <summary>
 /// Draws a button and returns true if it was pressed this frame
 /// </summary>
 public bool DrawSimpleButton(string text)
 => BrightEditorUtility.DrawSimpleButton(text);
Exemple #4
0
 /// <summary>
 /// Set the indent level back to 0
 /// </summary>
 public void ResetIndentLevel()
 => BrightEditorUtility.ResetIndentLevel();
Exemple #5
0
 /// <summary>
 /// Draws a label with bold applied.
 /// </summary>
 protected void DrawBoldLabel(string text, params GUILayoutOption[] options)
 {
     BrightEditorUtility.DrawBoldLabel(text, options);
 }
Exemple #6
0
 /// <summary>
 /// Sets the default label width to the given width
 /// </summary>
 public void SetLabelWidth(float labelWidth) => BrightEditorUtility.SetLabelWidth(labelWidth);
Exemple #7
0
 /// <summary>
 /// Decrease the indent level by 1
 /// </summary>
 public void DecreaseIndentLevel()
 => BrightEditorUtility.DecreaseIndentLevel();
Exemple #8
0
 public static void DrawProperty(SerializedProperty property, bool includeChildren = true)
 => BrightEditorUtility.DrawProperty(property, includeChildren);
Exemple #9
0
 public void DrawHelpBox(string message, MessageType messageType = MessageType.None, bool wide = false)
 => BrightEditorUtility.DrawHelpBox(message, messageType, wide);
Exemple #10
0
 /// <inheritdoc cref="BrightEditorUtility.DrawButton"/>
 protected bool DrawButton(string text, params GUILayoutOption[] options)
 => BrightEditorUtility.DrawButton(text, options);
Exemple #11
0
 public static void DrawProperty(SerializedObject serializedObject, string propertyName, bool includeChildren = true)
 => BrightEditorUtility.DrawProperty(serializedObject, propertyName, includeChildren);
Exemple #12
0
 /// <inheritdoc cref="BrightEditorUtility.DrawTextArea"/>
 protected string DrawTextArea(string label, string text, params GUILayoutOption[] options)
 => BrightEditorUtility.DrawTextArea(text, text, options);
Exemple #13
0
 /// <inheritdoc cref="BrightEditorUtility.DrawTextField"/>
 public static string DrawTextField(string label, string text, params GUILayoutOption[] options)
 => BrightEditorUtility.DrawTextField(label, text, options);
Exemple #14
0
 /// <inheritdoc cref="BrightEditorUtility.DrawInt"/>
 public static int DrawInt(string label, int value) => BrightEditorUtility.DrawInt(label, value);
Exemple #15
0
 protected void DrawScriptFieldForMonoBehaviour <T>() where T : MonoBehaviour
 {
     BrightEditorUtility.DrawScriptField((T)target);
 }
Exemple #16
0
 /// <summary>
 /// Allow fields after this to be seen and altered via inspector.
 /// </summary>
 public void EndGreyedOutArea()
 => BrightEditorUtility.EndGreyedOutArea();
Exemple #17
0
 /// <summary>
 /// Allow fields after this to be seen but not altered via inspector.
 /// </summary>
 public void StartGreyedOutArea(bool toggle = true)
 => BrightEditorUtility.StartGreyedOutArea(toggle);
Exemple #18
0
 /// <summary>
 /// Sets the default label width to the given width
 /// </summary>
 public void SetLabelWidth(Rect rect, float rectWidthPercent) => BrightEditorUtility.SetLabelWidth(rect.width * rectWidthPercent);