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
  
    - colorColor
  BeginColorGroup(Color)
  
  
  
  
  
    public static void BeginColorGroup(Color color)
   
  Parameters
  
    - colorColor
  DrawButton(string, string)
  
  
  
  
  
    public static bool DrawButton(string prefix, string text)
   
  Parameters
  
    - prefixstring
- textstring
Returns
  
    - bool
  DrawButton(string, string, GUIStyle)
  
  
  
  
  
    public static bool DrawButton(string prefix, string text, GUIStyle guiStyle)
   
  Parameters
  
    - prefixstring
- textstring
- guiStyleGUIStyle
Returns
  
    - bool
  DrawButton(GUIContent, GUIContent)
  
  
  
  
  
    public static bool DrawButton(GUIContent prefix, GUIContent text)
   
  Parameters
  
    - prefixGUIContent
- textGUIContent
Returns
  
    - bool
  DrawButton(GUIContent, GUIContent, GUIStyle)
  
  
  
  
  
    public static bool DrawButton(GUIContent prefix, GUIContent text, GUIStyle guiStyle)
   
  Parameters
  
    - prefixGUIContent
- textGUIContent
- guiStyleGUIStyle
Returns
  
    - bool
  DrawCloneModeMessage(bool)
  
  
  
  
  
    public static void DrawCloneModeMessage(bool allowEditsInPlayMode = false)
   
  Parameters
  
    - allowEditsInPlayModebool
  DrawFoldout(bool, GUIContent, GUIContent)
  
  
  
  
  
    public static bool DrawFoldout(bool foldout, GUIContent title, GUIContent body)
   
  Parameters
  
    - foldoutbool
- titleGUIContent
- bodyGUIContent
Returns
  
    - bool
  DrawSearchField(string, params GUILayoutOption[])
  
  
  
  
  
    public static string DrawSearchField(string searchString, params GUILayoutOption[] options)
   
  Parameters
  
    - searchStringstring
- optionsGUILayoutOption[]
Returns
  
    - string
  DrawSection(SerializedProperty, GUIContent)
  
  
  
  
  
    public static void DrawSection(SerializedProperty serializedProperty, GUIContent content)
   
  Parameters
  
    - serializedPropertySerializedProperty
- contentGUIContent
  DrawSelectableLabel(string)
  
  
  
  
  
    public static void DrawSelectableLabel(string text)
   
  Parameters
  
    - textstring
  DrawSelectableLabel(string, string)
  
  
  
  
  
    public static void DrawSelectableLabel(string prefix, string text)
   
  Parameters
  
    - prefixstring
- textstring
  DrawSelectableLabel(string, string, GUIStyle)
  
  
  
  
  
    public static void DrawSelectableLabel(string prefix, string text, GUIStyle guiStyle)
   
  Parameters
  
    - prefixstring
- textstring
- guiStyleGUIStyle
  DrawSelectableLabel(string, string, GUIStyle, GUIStyle)
  
  
  
  
  
    public static void DrawSelectableLabel(string prefix, string text, GUIStyle prefixStyle, GUIStyle guiStyle)
   
  Parameters
  
    - prefixstring
- textstring
- prefixStyleGUIStyle
- guiStyleGUIStyle
  DrawSelectableLabel(string, GUIStyle, bool)
  
  
  
  
  
    public static void DrawSelectableLabel(string text, GUIStyle guiStyle, bool honorIndent = false)
   
  Parameters
  
    - textstring
- guiStyleGUIStyle
- honorIndentbool
  DrawSelectableLabel(GUIContent, GUIContent)
  
  
  
  
  
    public static void DrawSelectableLabel(GUIContent prefix, GUIContent content)
   
  Parameters
  
    - prefixGUIContent
- contentGUIContent
  DrawSelectableLabel(GUIContent, GUIContent, GUIStyle)
  
  
  
  
  
    public static void DrawSelectableLabel(GUIContent prefix, GUIContent content, GUIStyle guiStyle)
   
  Parameters
  
    - prefixGUIContent
- contentGUIContent
- guiStyleGUIStyle
  DrawSelectableLabel(GUIContent, GUIContent, GUIStyle, GUIStyle)
  
  
  
  
  
    public static void DrawSelectableLabel(GUIContent prefix, GUIContent content, GUIStyle guiStyle, GUIStyle prefixStyle)
   
  Parameters
  
    - prefixGUIContent
- contentGUIContent
- guiStyleGUIStyle
- prefixStyleGUIStyle
  DrawSelectableLabel(GUIContent, GUIStyle, bool)
  
  
  
  
  
    public static void DrawSelectableLabel(GUIContent content, GUIStyle guiStyle, bool honorIndent = false)
   
  Parameters
  
    - contentGUIContent
- guiStyleGUIStyle
- honorIndentbool
  EndBackgroundColorGroup()
  
  
  
  
  
    public static void EndBackgroundColorGroup()
   
  
  
  EndColorGroup()
  
  
  
  
  
    public static void EndColorGroup()
   
  
  
  GetContent(Descriptor, CoherenceSync)
  
  
  
  
  
    public static GUIContent GetContent(Descriptor descriptor, CoherenceSync sync)
   
  Parameters
  
    - descriptorDescriptor
- syncCoherenceSync
Returns
  
    - GUIContent
  GetContent(Component, Descriptor)
  
  
  
  
  
    public static GUIContent GetContent(Component component, Descriptor descriptor)
   
  Parameters
  
    - componentComponent
- descriptorDescriptor
Returns
  
    - GUIContent
  GetIcon(GameObject)
  
  
  
  
  
    public static GUIContent GetIcon(GameObject gameObject)
   
  Parameters
  
    - gameObjectGameObject
Returns
  
    - GUIContent
  GetInterpolationContent(InterpolationSettings)
  
  
  
  
  
    public static GUIContent GetInterpolationContent(InterpolationSettings settings)
   
  Parameters
  
    - settingsInterpolationSettings
Returns
  
    - GUIContent
  GetInterpolationContent(Binding)
  
  
  
  
  
    public static GUIContent GetInterpolationContent(Binding binding)
   
  Parameters
  
    - bindingBinding
Returns
  
    - GUIContent
  GetInvalidContent(Descriptor, string)
  
  
  
  
  
    public static GUIContent GetInvalidContent(Descriptor descriptor, string reason)
   
  Parameters
  
    - descriptorDescriptor
- reasonstring
Returns
  
    - GUIContent
  GetTabRect(Rect, int, int, out GUIStyle)
  
  
  
  
  
    public static Rect GetTabRect(Rect rect, int tabIndex, int tabCount, out GUIStyle tabStyle)
   
  Parameters
  
    - rectRect
- tabIndexint
- tabCountint
- tabStyleGUIStyle
Returns
  
    - Rect
  IsCompatible(Descriptor, CoherenceSync)
  
  
  
  
  
    public static bool IsCompatible(Descriptor descriptor, CoherenceSync sync)
   
  Parameters
  
    - descriptorDescriptor
- syncCoherenceSync
Returns
  
    - bool
  TryGetSchemaButtonTypeContent(SchemaType, out GUIContent)
  
  
  
  
  
    public static bool TryGetSchemaButtonTypeContent(SchemaType t, out GUIContent content)
   
  Parameters
  
    - tSchemaType
- contentGUIContent
Returns
  
    - bool
  TryGetSchemaTypeContent(SchemaType, out GUIContent)
  
  
  
  
  
    public static bool TryGetSchemaTypeContent(SchemaType t, out GUIContent content)
   
  Parameters
  
    - tSchemaType
- contentGUIContent
Returns
  
    - bool