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