Class BaseInteractionEditor
Base class for custom editors in the XR Interaction Toolkit.
Namespace: UnityEditor.XR.Interaction.Toolkit
Syntax
public abstract class BaseInteractionEditor : Editor
Properties
knownSerializedPropertyNames
The
Declaration
protected string[] knownSerializedPropertyNames { get; set; }
Property Value
Type | Description |
---|---|
String[] |
See Also
Methods
DrawDerivedProperties()
This method is automatically called by DrawInspector() to
draw the property fields of derived classes that are not explicitly defined in the
Declaration
protected virtual void DrawDerivedProperties()
Remarks
This method is used to allow users to add a
When a derived
See Also
DrawInspector()
This method is automatically called by OnInspectorGUI() to draw the custom inspector. Override this method to customize the inspector as a whole.
Declaration
protected abstract void DrawInspector()
DrawScript()
Draw the standard read-only Script property.
Declaration
protected virtual void DrawScript()
GetDerivedSerializedPropertyNames()
Returns a list containing the
Declaration
protected virtual List<string> GetDerivedSerializedPropertyNames()
Returns
Type | Description |
---|---|
List<String> | Returns a list of strings with property names. |
InitializeKnownSerializedPropertyNames()
This method is automatically called by OnInspectorGUI() to initialize knownSerializedPropertyNames if necessary. This is used together with DrawDerivedProperties() to draw all unknown serialized fields from derived classes.
Declaration
protected virtual void InitializeKnownSerializedPropertyNames()
See Also
OnInspectorGUI()
Declaration
public override void OnInspectorGUI()