Class XRRigEditor
Custom editor for an XRRig.
Inherited Members
Namespace: UnityEditor.XR.Interaction.Toolkit
Syntax
public class XRRigEditor : BaseInteractionEditor
Fields
m_CameraFloorOffsetObject
Declaration
protected SerializedProperty m_CameraFloorOffsetObject
Field Value
Type | Description |
---|---|
SerializedProperty |
m_CameraGameObject
Declaration
protected SerializedProperty m_CameraGameObject
Field Value
Type | Description |
---|---|
SerializedProperty |
m_CameraYOffset
Declaration
protected SerializedProperty m_CameraYOffset
Field Value
Type | Description |
---|---|
SerializedProperty |
m_RequestedTrackingOriginMode
Declaration
protected SerializedProperty m_RequestedTrackingOriginMode
Field Value
Type | Description |
---|---|
SerializedProperty |
m_RigBaseGameObject
Declaration
protected SerializedProperty m_RigBaseGameObject
Field Value
Type | Description |
---|---|
SerializedProperty |
m_TrackingOriginMode
Declaration
protected SerializedProperty m_TrackingOriginMode
Field Value
Type | Description |
---|---|
SerializedProperty |
Methods
DrawBeforeProperties()
This method is automatically called by DrawInspector() to draw the section of the custom inspector before DrawProperties(). By default, this draws the read-only Script property.
Declaration
protected virtual void DrawBeforeProperties()
DrawCurrentTrackingOriginMode()
Draw the current Tracking Origin Mode while the application is playing.
Declaration
protected void DrawCurrentTrackingOriginMode()
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 override void DrawInspector()
Overrides
See Also
DrawProperties()
This method is automatically called by DrawInspector() to draw the property fields. Override this method to customize the properties shown in the Inspector. This is typically the method overridden when a derived behavior adds additional serialized properties that should be displayed in the Inspector.
Declaration
protected virtual void DrawProperties()
GetDerivedSerializedPropertyNames()
Returns a list containing the
Declaration
protected override List<string> GetDerivedSerializedPropertyNames()
Returns
Type | Description |
---|---|
List<String> | Returns a list of strings with property names. |
Overrides
OnEnable()
This function is called when the object becomes enabled and active.
Declaration
protected virtual void OnEnable()