Class XRInteractorReticleVisualEditor
Custom editor for an XRInteractorReticleVisual.
Inheritance
Namespace: UnityEditor.XR.Interaction.Toolkit
Syntax
[CustomEditor(typeof(XRInteractorReticleVisual), true)]
[CanEditMultipleObjects]
public class XRInteractorReticleVisualEditor : BaseInteractionEditor
Fields
m_AlignPrefabWithSurfaceNormal
SerializedProperty of the SerializeField backing alignPrefabWithSurfaceNormal.
Declaration
protected SerializedProperty m_AlignPrefabWithSurfaceNormal
Field Value
Type | Description |
---|---|
SerializedProperty |
m_DrawWhileSelecting
SerializedProperty of the SerializeField backing drawWhileSelecting.
Declaration
protected SerializedProperty m_DrawWhileSelecting
Field Value
Type | Description |
---|---|
SerializedProperty |
m_EndpointSmoothingTime
SerializedProperty of the SerializeField backing endpointSmoothingTime.
Declaration
protected SerializedProperty m_EndpointSmoothingTime
Field Value
Type | Description |
---|---|
SerializedProperty |
m_MaxRaycastDistance
SerializedProperty of the SerializeField backing maxRaycastDistance.
Declaration
protected SerializedProperty m_MaxRaycastDistance
Field Value
Type | Description |
---|---|
SerializedProperty |
m_PrefabScalingFactor
SerializedProperty of the SerializeField backing prefabScalingFactor.
Declaration
protected SerializedProperty m_PrefabScalingFactor
Field Value
Type | Description |
---|---|
SerializedProperty |
m_RaycastMask
SerializedProperty of the SerializeField backing raycastMask.
Declaration
protected SerializedProperty m_RaycastMask
Field Value
Type | Description |
---|---|
SerializedProperty |
m_ReticlePrefab
SerializedProperty of the SerializeField backing reticlePrefab.
Declaration
protected SerializedProperty m_ReticlePrefab
Field Value
Type | Description |
---|---|
SerializedProperty |
m_UndoDistanceScaling
SerializedProperty of the SerializeField backing undoDistanceScaling.
Declaration
protected SerializedProperty m_UndoDistanceScaling
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()
DrawInspector()
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()
DrawReticle()
Draw property fields related to the reticle.
Declaration
protected virtual void DrawReticle()
OnEnable()
See MonoBehaviour.
Declaration
protected virtual void OnEnable()