docs.unity3d.com
    Show / Hide Table of Contents

    Class XRInteractorReticleVisualEditor

    Custom editor for an XRInteractorReticleVisual.

    Inheritance
    Object
    UnityEditor.XR.Interaction.Toolkit.BaseInteractionEditor
    XRInteractorReticleVisualEditor
    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
    UnityEditor.XR.Interaction.Toolkit.BaseInteractionEditor.DrawInspector()
    See Also
    DrawBeforeProperties()
    DrawProperties()
    UnityEditor.XR.Interaction.Toolkit.BaseInteractionEditor.DrawDerivedProperties

    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()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023