Table of Contents

Class ContentUtils

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

Methods

BeginBackgroundColorGroup(Color)

public static void BeginBackgroundColorGroup(Color color)

Parameters

color Color

BeginColorGroup(Color)

public static void BeginColorGroup(Color color)

Parameters

color Color

DrawButton(string, string)

public static bool DrawButton(string prefix, string text)

Parameters

prefix string
text string

Returns

bool

DrawButton(string, string, GUIStyle)

public static bool DrawButton(string prefix, string text, GUIStyle guiStyle)

Parameters

prefix string
text string
guiStyle GUIStyle

Returns

bool

DrawButton(GUIContent, GUIContent)

public static bool DrawButton(GUIContent prefix, GUIContent text)

Parameters

prefix GUIContent
text GUIContent

Returns

bool

DrawButton(GUIContent, GUIContent, GUIStyle)

public static bool DrawButton(GUIContent prefix, GUIContent text, GUIStyle guiStyle)

Parameters

prefix GUIContent
text GUIContent
guiStyle GUIStyle

Returns

bool

DrawCloneModeMessage(bool)

public static void DrawCloneModeMessage(bool allowEditsInPlayMode = false)

Parameters

allowEditsInPlayMode bool

DrawFoldout(bool, GUIContent, GUIContent)

public static bool DrawFoldout(bool foldout, GUIContent title, GUIContent body)

Parameters

foldout bool
title GUIContent
body GUIContent

Returns

bool

DrawSearchField(string, params GUILayoutOption[])

public static string DrawSearchField(string searchString, params GUILayoutOption[] options)

Parameters

searchString string
options GUILayoutOption[]

Returns

string

DrawSection(SerializedProperty, GUIContent)

public static void DrawSection(SerializedProperty serializedProperty, GUIContent content)

Parameters

serializedProperty SerializedProperty
content GUIContent

DrawSelectableLabel(string)

public static void DrawSelectableLabel(string text)

Parameters

text string

DrawSelectableLabel(string, string)

public static void DrawSelectableLabel(string prefix, string text)

Parameters

prefix string
text string

DrawSelectableLabel(string, string, GUIStyle)

public static void DrawSelectableLabel(string prefix, string text, GUIStyle guiStyle)

Parameters

prefix string
text string
guiStyle GUIStyle

DrawSelectableLabel(string, string, GUIStyle, GUIStyle)

public static void DrawSelectableLabel(string prefix, string text, GUIStyle prefixStyle, GUIStyle guiStyle)

Parameters

prefix string
text string
prefixStyle GUIStyle
guiStyle GUIStyle

DrawSelectableLabel(string, GUIStyle, bool)

public static void DrawSelectableLabel(string text, GUIStyle guiStyle, bool honorIndent = false)

Parameters

text string
guiStyle GUIStyle
honorIndent bool

DrawSelectableLabel(GUIContent, GUIContent)

public static void DrawSelectableLabel(GUIContent prefix, GUIContent content)

Parameters

prefix GUIContent
content GUIContent

DrawSelectableLabel(GUIContent, GUIContent, GUIStyle)

public static void DrawSelectableLabel(GUIContent prefix, GUIContent content, GUIStyle guiStyle)

Parameters

prefix GUIContent
content GUIContent
guiStyle GUIStyle

DrawSelectableLabel(GUIContent, GUIContent, GUIStyle, GUIStyle)

public static void DrawSelectableLabel(GUIContent prefix, GUIContent content, GUIStyle guiStyle, GUIStyle prefixStyle)

Parameters

prefix GUIContent
content GUIContent
guiStyle GUIStyle
prefixStyle GUIStyle

DrawSelectableLabel(GUIContent, GUIStyle, bool)

public static void DrawSelectableLabel(GUIContent content, GUIStyle guiStyle, bool honorIndent = false)

Parameters

content GUIContent
guiStyle GUIStyle
honorIndent bool

EndBackgroundColorGroup()

public static void EndBackgroundColorGroup()

EndColorGroup()

public static void EndColorGroup()

GetContent(Descriptor, CoherenceSync)

public static GUIContent GetContent(Descriptor descriptor, CoherenceSync sync)

Parameters

descriptor Descriptor
sync CoherenceSync

Returns

GUIContent

GetContent(Component, Descriptor)

public static GUIContent GetContent(Component component, Descriptor descriptor)

Parameters

component Component
descriptor Descriptor

Returns

GUIContent

GetIcon(GameObject)

public static GUIContent GetIcon(GameObject gameObject)

Parameters

gameObject GameObject

Returns

GUIContent

GetInterpolationContent(InterpolationSettings)

public static GUIContent GetInterpolationContent(InterpolationSettings settings)

Parameters

settings InterpolationSettings

Returns

GUIContent

GetInterpolationContent(Binding)

public static GUIContent GetInterpolationContent(Binding binding)

Parameters

binding Binding

Returns

GUIContent

GetInvalidContent(Descriptor, string)

public static GUIContent GetInvalidContent(Descriptor descriptor, string reason)

Parameters

descriptor Descriptor
reason string

Returns

GUIContent

GetTabRect(Rect, int, int, out GUIStyle)

public static Rect GetTabRect(Rect rect, int tabIndex, int tabCount, out GUIStyle tabStyle)

Parameters

rect Rect
tabIndex int
tabCount int
tabStyle GUIStyle

Returns

Rect

IsCompatible(Descriptor, CoherenceSync)

public static bool IsCompatible(Descriptor descriptor, CoherenceSync sync)

Parameters

descriptor Descriptor
sync CoherenceSync

Returns

bool

TryGetSchemaButtonTypeContent(SchemaType, out GUIContent)

public static bool TryGetSchemaButtonTypeContent(SchemaType t, out GUIContent content)

Parameters

t SchemaType
content GUIContent

Returns

bool

TryGetSchemaTypeContent(SchemaType, out GUIContent)

public static bool TryGetSchemaTypeContent(SchemaType t, out GUIContent content)

Parameters

t SchemaType
content GUIContent

Returns

bool