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