Class XROriginEditor
Custom editor for an XROrigin.
Inherited Members
Namespace: Unity.XR.CoreUtils.Editor
Assembly: solution.dll
Syntax
[CustomEditor(typeof(XROrigin), true)]
[CanEditMultipleObjects]
public class XROriginEditor : Editor
Fields
Name | Description |
---|---|
m_Camera | SerializedProperty of the SerializeField backing Camera. |
m_CameraFloorOffsetObject | SerializedProperty of the SerializeField backing CameraFloorOffsetObject. |
m_CameraYOffset | SerializedProperty of the SerializeField backing CameraYOffset. |
m_OriginBaseGameObject | SerializedProperty of the SerializeField backing Origin. |
m_RequestedTrackingOriginMode | SerializedProperty of the SerializeField backing RequestedTrackingOriginMode. |
m_TrackingOriginMode | m_TrackingOriginMode has been deprecated. Use m_RequestedTrackingOriginMode instead. |
Properties
Name | Description |
---|---|
knownSerializedPropertyNames | The SerializeField names of all SerializedProperty fields defined in the Unity.XR.CoreUtils.Editor (including derived types). |
Methods
Name | Description |
---|---|
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. |
DrawCurrentTrackingOriginMode() | Draw the current Tracking Origin Mode while the application is playing. |
DrawDerivedProperties() | This method is automatically called by DrawInspector() to draw the property fields of derived classes that are not explicitly defined in the Unity.XR.CoreUtils.Editor. |
DrawInspector() | This method is automatically called by OnInspectorGUI() to draw the custom inspector. Override this method to customize the inspector as a whole. |
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. |
DrawScript() | Draw the standard read-only Script property. |
GetDerivedSerializedPropertyNames() | Returns a list containing the SerializeField names of all SerializedProperty fields defined in the Unity.XR.CoreUtils.Editor (including derived types). |
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. |
OnEnable() | This function is called when the object becomes enabled and active. |
OnInspectorGUI() | Any inheriting classes should invoke this method. |