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