Class InteractableInspector
Inheritance
InteractableInspector
Assembly: cs.temp.dll.dll
public class InteractableInspector : UnityEditor.Editor
Fields
Declaration
protected SerializedProperty actionId
Field Value
Type |
Description |
SerializedProperty |
|
Declaration
protected GUIStyle boxStyle
Field Value
Type |
Description |
GUIStyle |
|
Declaration
protected SerializedProperty canDeselect
Field Value
Type |
Description |
SerializedProperty |
|
Declaration
protected SerializedProperty canSelect
Field Value
Type |
Description |
SerializedProperty |
|
Declaration
protected SerializedProperty dimensionIndex
Field Value
Type |
Description |
SerializedProperty |
|
Declaration
protected SerializedProperty dimensions
Field Value
Type |
Description |
SerializedProperty |
|
Declaration
Field Value
Declaration
protected SerializedProperty enabledProperty
Field Value
Type |
Description |
SerializedProperty |
|
Declaration
protected List<InteractableEvent> eventList
Field Value
Declaration
protected InteractableTypesContainer eventOptions
Field Value
Declaration
protected bool hasProfileLayout
Field Value
Declaration
protected string[] inputActionOptions
Field Value
Declaration
protected Interactable instance
Field Value
Declaration
protected SerializedProperty isGlobal
Field Value
Type |
Description |
SerializedProperty |
|
Declaration
protected SerializedProperty profileList
Field Value
Type |
Description |
SerializedProperty |
|
Declaration
protected static bool ProfilesSetup
Field Value
Declaration
protected string[] shaderOptions
Field Value
Declaration
protected static bool showEvents
Field Value
Declaration
protected const string ShowEventsPrefKey = "InteractableInspectorProfiles_ShowEvents"
Field Value
Declaration
protected static bool showProfiles
Field Value
Declaration
protected const string ShowProfilesPrefKey = "InteractableInspectorProfiles"
Field Value
Declaration
protected string[] speechKeywordOptions
Field Value
Declaration
protected SerializedProperty startDimensionIndex
Field Value
Type |
Description |
SerializedProperty |
|
Declaration
protected SerializedProperty statesProperty
Field Value
Type |
Description |
SerializedProperty |
|
Declaration
protected InteractableTypesContainer themeOptions
Field Value
Declaration
protected SerializedProperty voiceCommands
Field Value
Type |
Description |
SerializedProperty |
|
Methods
Declaration
protected void AddEvent(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Declaration
protected void AddProfile(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Declaration
protected virtual void AddThemeProperty(SerializedProperty profileItem, SerializedProperty themeItem)
Parameters
Type |
Name |
Description |
SerializedProperty |
profileItem |
|
SerializedProperty |
themeItem |
|
Declaration
protected void ChangeEvent(int[] indexArray, SerializedProperty prop = null)
Parameters
Type |
Name |
Description |
Int32[] |
indexArray |
|
SerializedProperty |
prop |
|
Declaration
protected virtual SerializedObject ChangeThemeProperty(int index, SerializedObject themeObj, SerializedProperty target, bool isNew = false)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
SerializedObject |
themeObj |
|
SerializedProperty |
target |
|
Boolean |
isNew |
|
Returns
Type |
Description |
SerializedObject |
|
Declaration
protected void CreateTheme(SerializedProperty profileItem, SerializedProperty themeItem)
Parameters
Type |
Name |
Description |
SerializedProperty |
profileItem |
|
SerializedProperty |
themeItem |
|
DrawDropDownProperty(Rect, SerializedProperty, String[], GUIContent)
Draws a popup UI with PropertyField type features.
Displays prefab pending updates
Declaration
protected void DrawDropDownProperty(Rect position, SerializedProperty prop, string[] options, GUIContent label)
Parameters
Type |
Name |
Description |
Rect |
position |
|
SerializedProperty |
prop |
|
String[] |
options |
|
GUIContent |
label |
|
Declaration
protected string[] GetEventList()
Returns
Declaration
protected virtual State[] GetStates()
Returns
Declaration
protected virtual void OnEnable()
Declaration
public override sealed void OnInspectorGUI()
Declaration
protected void RemoveEvent(int index, SerializedProperty prop = null)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
SerializedProperty |
prop |
|
Declaration
protected void RemoveProfile(int index, SerializedProperty prop = null)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
SerializedProperty |
prop |
|
Declaration
protected virtual void RemoveThemeProperty(int[] arr)
Parameters
Type |
Name |
Description |
Int32[] |
arr |
|
Declaration
protected virtual void RenderBaseInspector()
Declaration
public virtual void RenderCustomInspector()
Declaration
protected void RenderGeneralSettings()
Declaration
protected void SetupEventOptions()
Declaration
protected void SetupThemeOptions()
Get the index of the speech keyword array item based on its name, pop-up field helper
Skips the first item in the array (internal added blank value to turn feature off)
and returns a 0 if no match is found for the blank value
Declaration
protected int SpeechKeywordLookup(string option, string[] options)
Parameters
Returns