Class UIHelpers
- Namespace
- Coherence.Toolkit
- Assembly
- Coherence.Editor.dll
public static class UIHelpers
- Inheritance
-
UIHelpers
Fields
public static Color BarLeftColor
Field Value
- Color
public static Color BarRightColor
Field Value
- Color
Methods
public static void DrawCenteredLabel(string labelText, params GUILayoutOption[] options)
Parameters
labelText
string
options
GUILayoutOption[]
public static void DrawIcon(string typeName, float size)
Parameters
typeName
string
size
float
public static Texture GetIcon(string typeName)
Parameters
typeName
string
Returns
- Texture
public static Color GetLODColor(float level, int maxLevel, bool active)
Parameters
level
float
maxLevel
int
active
bool
Returns
- Color
public static Vector2 GetMaxSizeOfLabels(GUISkin skin, List<string> labels)
Parameters
skin
GUISkin
labels
List<string>
Returns
- Vector2
public static SchemaType[] GetSchemaTypeByDisplayOrder()
Returns
- SchemaType[]
public static Color HSVLerp(Color from, Color to, float amount)
Parameters
from
Color
to
Color
amount
float
Returns
- Color
LinkLabel(GUIContent, GUIStyle, params GUILayoutOption[])
public static bool LinkLabel(GUIContent label, GUIStyle style, params GUILayoutOption[] options)
Parameters
label
GUIContent
style
GUIStyle
options
GUILayoutOption[]
Returns
- bool