Class ThemeInspector
Inspector for themes, and used by Interactable
Inheritance
ThemeInspector
Assembly: cs.temp.dll.dll
public class ThemeInspector : UnityEditor.Editor
Fields
Declaration
protected SerializedProperty states
Field Value
Type |
Description |
SerializedProperty |
|
Declaration
Field Value
Declaration
protected SerializedProperty themeDefinitions
Field Value
Type |
Description |
SerializedProperty |
|
Declaration
protected State[] themeStates
Field Value
Methods
Declaration
protected virtual void AddThemeDefinition()
ClearHistoryCache(Int32)
Declaration
protected void ClearHistoryCache(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Declaration
protected void DeleteThemeDefinition(uint index)
Parameters
Type |
Name |
Description |
UInt32 |
index |
|
LoadThemeDefinitionHistory(Int32, Type)
Declaration
protected ThemeDefinition? LoadThemeDefinitionHistory(int index, Type newDefinitionClassType)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Type |
newDefinitionClassType |
|
Returns
Declaration
Declaration
public override void OnInspectorGUI()
Declaration
protected bool RenderDeleteButton(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
draw the states property field for assigning states
Set the default state if one does not exist
Declaration
protected bool RenderStates()
Returns
Declaration
public virtual void RenderTheme()
Declaration
public void RenderThemeDefinitions()
RenderValue(SerializedProperty, GUIContent, ThemePropertyTypes)
Render a single property value
Declaration
public static void RenderValue(SerializedProperty item, GUIContent label, ThemePropertyTypes type)
Parameters
SaveThemeDefinitionHistory(Int32, Type)
Declaration
protected void SaveThemeDefinitionHistory(int index, Type definitionClassType)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Type |
definitionClassType |
|