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 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 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 const string ShowEventReceiversPrefKey = "InteractableInspectorProfiles_ShowEvents_Receivers"
Field Value
Declaration
protected const string ShowEventsPrefKey = "InteractableInspectorProfiles_ShowEvents"
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 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 static Theme CreateThemeAsset(string themeName = null)
Parameters
Type |
Name |
Description |
String |
themeName |
|
Returns
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
public static States GetDefaultInteractableStatesFile()
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 RenderBaseInspector()
Declaration
public virtual void RenderCustomInspector()
Declaration
protected void RenderGeneralSettings()
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
Get a list of Mixed Reality Input Actions from the input actions profile.
Declaration
public static bool TryGetInputActions(out string[] descriptionsArray)
Parameters
Type |
Name |
Description |
String[] |
descriptionsArray |
|
Returns
Try to get a list of speech commands from the MRTK/Input/SpeechCommands profile
Declaration
public static bool TryGetMixedRealitySpeechCommands(out SpeechCommands[] commands)
Parameters
Type |
Name |
Description |
SpeechCommands[] |
commands |
|
Returns
Look for speech commands in the MRTK Speech Command profile
Adds a blank value at index zero so the developer can turn the feature off.
Declaration
public static bool TryGetSpeechKeywords(out string[] keywords)
Parameters
Type |
Name |
Description |
String[] |
keywords |
|
Returns