Table of Contents

Class UIHelpers

Namespace
Coherence.Toolkit
Assembly
Coherence.Editor.dll
public static class UIHelpers
Inheritance
UIHelpers

Fields

BarLeftColor

public static Color BarLeftColor

Field Value

Color

BarRightColor

public static Color BarRightColor

Field Value

Color

Methods

DrawCenteredLabel(string, params GUILayoutOption[])

public static void DrawCenteredLabel(string labelText, params GUILayoutOption[] options)

Parameters

labelText string
options GUILayoutOption[]

DrawIcon(string, float)

public static void DrawIcon(string typeName, float size)

Parameters

typeName string
size float

GetIcon(string)

public static Texture GetIcon(string typeName)

Parameters

typeName string

Returns

Texture

GetLODColor(float, int, bool)

public static Color GetLODColor(float level, int maxLevel, bool active)

Parameters

level float
maxLevel int
active bool

Returns

Color

GetMaxSizeOfLabels(GUISkin, List<string>)

public static Vector2 GetMaxSizeOfLabels(GUISkin skin, List<string> labels)

Parameters

skin GUISkin
labels List<string>

Returns

Vector2

GetSchemaTypeByDisplayOrder()

public static SchemaType[] GetSchemaTypeByDisplayOrder()

Returns

SchemaType[]

HSVLerp(Color, Color, float)

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