Summary
[Editor-Only] GUI utilities used throughout
FlexiMotion.FlexiMotionComponent.- Assembly
- FlexiMotion
.dll - Namespace
- FlexiMotion
.Editor - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["FMEditorGUI"]
class Type type-node
Syntax
public static class FMEditorGUI
Properties
| Name | Value | Summary |
|---|---|---|
| LineHeight | float |
Returns
UnityEditor.EditorGUIUtility.singleLineHeight.static
|
| StandardSpacing | float |
Returns
UnityEditor.EditorGUIUtility.standardVerticalSpacing.static
|
Methods
| Name | Value | Summary |
|---|---|---|
| CompactFloatField |
float |
Draws a float field with the label width set to match the `label` rather than the standard size.
static
|
| DrawPropertyFields |
bool |
Draws each property starting with the `firstProperty`.
static
|
| GetColor |
Color |
Returns a color with its hue based on the `hueSeed`.
static
|
| GetHue |
float |
Returns a pseudo-random value between 0 and 1 based on the `seed`.
static
|
| NextVerticalArea |
void |
If the
UnityEngine.Rect.height is positive, this method moves the UnityEngine.Rect.y by that amount and
adds the UnityEditor.EditorGUIUtility.standardVerticalSpacing.
static
|
| ObjectField |
T |
A generic wrapper around
EditorGUILayout.ObjectField(GUIContent, Object, System.Type, bool).
static
|
| ObjectField |
T |
A generic wrapper around
UnityEditor.EditorGUI.ObjectField(UnityEngine.Rect,UnityEngine.GUIContent,UnityEngine.Object,System.Type,System.Boolean).
static
|
| RepaintAllViews |
void |
Repaints all GUI views using
UnityEditorInternal.InternalEditorUtility.RepaintAllViews.static
|
| RepaintCurrentView |
void |
Repaints the current GUI view using
UnityEditor.HandleUtility.Repaint.static
|
| StealFromLeft |
Rect |
Subtracts the `width` from the left side of the `area` and returns a new
UnityEngine.Rect occupying the
removed section.
static
|
| StealFromRight |
Rect |
Subtracts the `width` from the right side of the `area` and returns a new
UnityEngine.Rect occupying the
removed section.
static
|