docs.unity3d.com
    Show / Hide Table of Contents

    Class XRInteractorLineVisualEditor

    Custom editor for an XRInteractorLineVisual.

    Inheritance
    Object
    BaseInteractionEditor
    XRInteractorLineVisualEditor
    Inherited Members
    BaseInteractionEditor.knownSerializedPropertyNames
    BaseInteractionEditor.OnInspectorGUI()
    BaseInteractionEditor.InitializeKnownSerializedPropertyNames()
    BaseInteractionEditor.GetDerivedSerializedPropertyNames()
    BaseInteractionEditor.DrawDerivedProperties()
    BaseInteractionEditor.DrawScript()
    Namespace: UnityEditor.XR.Interaction.Toolkit
    Syntax
    public class XRInteractorLineVisualEditor : BaseInteractionEditor

    Fields

    m_FollowTightness

    of the backing followTightness.

    Declaration
    protected SerializedProperty m_FollowTightness
    Field Value
    Type Description
    SerializedProperty

    m_InvalidColorGradient

    of the backing invalidColorGradient.

    Declaration
    protected SerializedProperty m_InvalidColorGradient
    Field Value
    Type Description
    SerializedProperty

    m_LineLength

    of the backing lineLength.

    Declaration
    protected SerializedProperty m_LineLength
    Field Value
    Type Description
    SerializedProperty

    m_LineWidth

    of the backing lineWidth.

    Declaration
    protected SerializedProperty m_LineWidth
    Field Value
    Type Description
    SerializedProperty

    m_OverrideInteractorLineLength

    of the backing overrideInteractorLineLength.

    Declaration
    protected SerializedProperty m_OverrideInteractorLineLength
    Field Value
    Type Description
    SerializedProperty

    m_Reticle

    of the backing reticle.

    Declaration
    protected SerializedProperty m_Reticle
    Field Value
    Type Description
    SerializedProperty

    m_SmoothMovement

    of the backing smoothMovement.

    Declaration
    protected SerializedProperty m_SmoothMovement
    Field Value
    Type Description
    SerializedProperty

    m_SnapThresholdDistance

    of the backing snapThresholdDistance.

    Declaration
    protected SerializedProperty m_SnapThresholdDistance
    Field Value
    Type Description
    SerializedProperty

    m_StopLineAtFirstRaycastHit

    of the backing stopLineAtFirstRaycastHit.

    Declaration
    protected SerializedProperty m_StopLineAtFirstRaycastHit
    Field Value
    Type Description
    SerializedProperty

    m_ValidColorGradient

    of the backing validColorGradient.

    Declaration
    protected SerializedProperty m_ValidColorGradient
    Field Value
    Type Description
    SerializedProperty

    m_WidthCurve

    of the backing widthCurve.

    Declaration
    protected SerializedProperty m_WidthCurve
    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()

    DrawColorConfiguration()

    Draw property fields related to color gradients.

    Declaration
    protected virtual void DrawColorConfiguration()

    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
    BaseInteractionEditor.DrawInspector()
    See Also
    DrawBeforeProperties()
    DrawProperties()
    DrawDerivedProperties()

    DrawLengthConfiguration()

    Draw property fields related to the line length.

    Declaration
    protected virtual void DrawLengthConfiguration()

    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()

    DrawSmoothMovement()

    Draw property fields related to smooth movement.

    Declaration
    protected virtual void DrawSmoothMovement()

    DrawWidthConfiguration()

    Draw property fields related to the line width.

    Declaration
    protected virtual void DrawWidthConfiguration()

    OnEnable()

    See .

    Declaration
    protected virtual void OnEnable()
    Back to top
    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