docs.unity3d.com
    Show / Hide Table of Contents

    Class XRRayInteractorEditor

    Custom editor for an XRRayInteractor.

    Inheritance
    Object
    BaseInteractionEditor
    XRBaseInteractorEditor
    XRBaseControllerInteractorEditor
    XRRayInteractorEditor
    Inherited Members
    XRBaseControllerInteractorEditor.m_SelectActionTrigger
    XRBaseControllerInteractorEditor.m_HideControllerOnSelect
    XRBaseControllerInteractorEditor.m_PlayAudioClipOnSelectEntered
    XRBaseControllerInteractorEditor.m_AudioClipForOnSelectEntered
    XRBaseControllerInteractorEditor.m_PlayAudioClipOnSelectExited
    XRBaseControllerInteractorEditor.m_AudioClipForOnSelectExited
    XRBaseControllerInteractorEditor.m_PlayAudioClipOnSelectCanceled
    XRBaseControllerInteractorEditor.m_AudioClipForOnSelectCanceled
    XRBaseControllerInteractorEditor.m_PlayAudioClipOnHoverEntered
    XRBaseControllerInteractorEditor.m_AudioClipForOnHoverEntered
    XRBaseControllerInteractorEditor.m_PlayAudioClipOnHoverExited
    XRBaseControllerInteractorEditor.m_AudioClipForOnHoverExited
    XRBaseControllerInteractorEditor.m_PlayAudioClipOnHoverCanceled
    XRBaseControllerInteractorEditor.m_AudioClipForOnHoverCanceled
    XRBaseControllerInteractorEditor.m_PlayHapticsOnSelectEntered
    XRBaseControllerInteractorEditor.m_HapticSelectEnterIntensity
    XRBaseControllerInteractorEditor.m_HapticSelectEnterDuration
    XRBaseControllerInteractorEditor.m_PlayHapticsOnHoverEntered
    XRBaseControllerInteractorEditor.m_HapticHoverEnterIntensity
    XRBaseControllerInteractorEditor.m_HapticHoverEnterDuration
    XRBaseControllerInteractorEditor.m_PlayHapticsOnSelectExited
    XRBaseControllerInteractorEditor.m_HapticSelectExitIntensity
    XRBaseControllerInteractorEditor.m_HapticSelectExitDuration
    XRBaseControllerInteractorEditor.m_PlayHapticsOnSelectCanceled
    XRBaseControllerInteractorEditor.m_HapticSelectCancelIntensity
    XRBaseControllerInteractorEditor.m_HapticSelectCancelDuration
    XRBaseControllerInteractorEditor.m_PlayHapticsOnHoverExited
    XRBaseControllerInteractorEditor.m_HapticHoverExitIntensity
    XRBaseControllerInteractorEditor.m_HapticHoverExitDuration
    XRBaseControllerInteractorEditor.m_PlayHapticsOnHoverCanceled
    XRBaseControllerInteractorEditor.m_HapticHoverCancelIntensity
    XRBaseControllerInteractorEditor.m_HapticHoverCancelDuration
    XRBaseControllerInteractorEditor.DrawBeforeProperties()
    XRBaseControllerInteractorEditor.DrawEvents()
    XRBaseControllerInteractorEditor.VerifyControllerPresent()
    XRBaseControllerInteractorEditor.DrawSelectActionTrigger()
    XRBaseControllerInteractorEditor.DrawAudioEvents()
    XRBaseControllerInteractorEditor.DrawAudioEventsNested()
    XRBaseControllerInteractorEditor.DrawHapticEvents()
    XRBaseControllerInteractorEditor.DrawHapticEventsNested()
    XRBaseInteractorEditor.m_InteractionManager
    XRBaseInteractorEditor.m_InteractionLayerMask
    XRBaseInteractorEditor.m_AttachTransform
    XRBaseInteractorEditor.m_StartingSelectedInteractable
    XRBaseInteractorEditor.m_HoverEntered
    XRBaseInteractorEditor.m_HoverExited
    XRBaseInteractorEditor.m_SelectEntered
    XRBaseInteractorEditor.m_SelectExited
    XRBaseInteractorEditor.m_OnHoverEntered
    XRBaseInteractorEditor.m_OnHoverExited
    XRBaseInteractorEditor.m_OnSelectEntered
    XRBaseInteractorEditor.m_OnSelectExited
    XRBaseInteractorEditor.m_OnHoverEnteredCalls
    XRBaseInteractorEditor.m_OnHoverExitedCalls
    XRBaseInteractorEditor.m_OnSelectEnteredCalls
    XRBaseInteractorEditor.m_OnSelectExitedCalls
    XRBaseInteractorEditor.DrawInspector()
    XRBaseInteractorEditor.DrawCoreConfiguration()
    XRBaseInteractorEditor.DrawInteractionManagement()
    XRBaseInteractorEditor.DrawInteractorEvents()
    XRBaseInteractorEditor.DrawInteractorEventsNested()
    XRBaseInteractorEditor.IsDeprecatedEventsInUse()
    XRBaseInteractorEditor.MigrateEvents(SerializedObject)
    XRBaseInteractorEditor.MigrateEvents(Object[])
    BaseInteractionEditor.knownSerializedPropertyNames
    BaseInteractionEditor.OnInspectorGUI()
    BaseInteractionEditor.InitializeKnownSerializedPropertyNames()
    BaseInteractionEditor.GetDerivedSerializedPropertyNames()
    BaseInteractionEditor.DrawScript()
    Namespace: UnityEditor.XR.Interaction.Toolkit
    Syntax
    public class XRRayInteractorEditor : XRBaseControllerInteractorEditor

    Fields

    m_Acceleration

    of the backing acceleration.

    Declaration
    protected SerializedProperty m_Acceleration
    Field Value
    Type Description
    SerializedProperty

    m_AdditionalFlightTime

    of the backing additionalFlightTime.

    Declaration
    protected SerializedProperty m_AdditionalFlightTime
    Field Value
    Type Description
    SerializedProperty

    m_AdditionalGroundHeight

    of the backing additionalGroundHeight.

    Declaration
    protected SerializedProperty m_AdditionalGroundHeight
    Field Value
    Type Description
    SerializedProperty

    m_AllowAnchorControl

    of the backing allowAnchorControl.

    Declaration
    protected SerializedProperty m_AllowAnchorControl
    Field Value
    Type Description
    SerializedProperty

    m_AnchorRotateReferenceFrame

    of the backing anchorRotateReferenceFrame.

    Declaration
    protected SerializedProperty m_AnchorRotateReferenceFrame
    Field Value
    Type Description
    SerializedProperty

    m_BlendVisualLinePoints

    of the backing blendVisualLinePoints.

    Declaration
    protected SerializedProperty m_BlendVisualLinePoints
    Field Value
    Type Description
    SerializedProperty

    m_ControlPointDistance

    of the backing controlPointDistance.

    Declaration
    protected SerializedProperty m_ControlPointDistance
    Field Value
    Type Description
    SerializedProperty

    m_ControlPointHeight

    of the backing controlPointHeight.

    Declaration
    protected SerializedProperty m_ControlPointHeight
    Field Value
    Type Description
    SerializedProperty

    m_EnableUIInteraction

    of the backing enableUIInteraction.

    Declaration
    protected SerializedProperty m_EnableUIInteraction
    Field Value
    Type Description
    SerializedProperty

    m_EndPointDistance

    of the backing endPointDistance.

    Declaration
    protected SerializedProperty m_EndPointDistance
    Field Value
    Type Description
    SerializedProperty

    m_EndPointHeight

    of the backing endPointHeight.

    Declaration
    protected SerializedProperty m_EndPointHeight
    Field Value
    Type Description
    SerializedProperty

    m_HitClosestOnly

    of the backing hitClosestOnly.

    Declaration
    protected SerializedProperty m_HitClosestOnly
    Field Value
    Type Description
    SerializedProperty

    m_HitDetectionType

    of the backing hitDetectionType.

    Declaration
    protected SerializedProperty m_HitDetectionType
    Field Value
    Type Description
    SerializedProperty

    m_HoverTimeToSelect

    of the backing hoverTimeToSelect.

    Declaration
    protected SerializedProperty m_HoverTimeToSelect
    Field Value
    Type Description
    SerializedProperty

    m_HoverToSelect

    of the backing hoverToSelect.

    Declaration
    protected SerializedProperty m_HoverToSelect
    Field Value
    Type Description
    SerializedProperty

    m_KeepSelectedTargetValid

    of the backing keepSelectedTargetValid.

    Declaration
    protected SerializedProperty m_KeepSelectedTargetValid
    Field Value
    Type Description
    SerializedProperty

    m_LineType

    of the backing lineType.

    Declaration
    protected SerializedProperty m_LineType
    Field Value
    Type Description
    SerializedProperty

    m_MaxRaycastDistance

    of the backing maxRaycastDistance.

    Declaration
    protected SerializedProperty m_MaxRaycastDistance
    Field Value
    Type Description
    SerializedProperty

    m_RaycastMask

    of the backing raycastMask.

    Declaration
    protected SerializedProperty m_RaycastMask
    Field Value
    Type Description
    SerializedProperty

    m_RaycastTriggerInteraction

    of the backing raycastTriggerInteraction.

    Declaration
    protected SerializedProperty m_RaycastTriggerInteraction
    Field Value
    Type Description
    SerializedProperty

    m_ReferenceFrame

    of the backing referenceFrame.

    Declaration
    protected SerializedProperty m_ReferenceFrame
    Field Value
    Type Description
    SerializedProperty

    m_RotateSpeed

    of the backing rotateSpeed.

    Declaration
    protected SerializedProperty m_RotateSpeed
    Field Value
    Type Description
    SerializedProperty

    m_SampleFrequency

    of the backing sampleFrequency.

    Declaration
    protected SerializedProperty m_SampleFrequency
    Field Value
    Type Description
    SerializedProperty

    m_SphereCastRadius

    of the backing sphereCastRadius.

    Declaration
    protected SerializedProperty m_SphereCastRadius
    Field Value
    Type Description
    SerializedProperty

    m_TranslateSpeed

    of the backing translateSpeed.

    Declaration
    protected SerializedProperty m_TranslateSpeed
    Field Value
    Type Description
    SerializedProperty

    m_UseForceGrab

    of the backing useForceGrab.

    Declaration
    protected SerializedProperty m_UseForceGrab
    Field Value
    Type Description
    SerializedProperty

    m_Velocity

    of the backing velocity.

    Declaration
    protected SerializedProperty m_Velocity
    Field Value
    Type Description
    SerializedProperty

    Methods

    DrawDerivedProperties()

    This method is automatically called by DrawInspector() to draw the property fields of derived classes that are not explicitly defined in the .

    Declaration
    protected override void DrawDerivedProperties()
    Overrides
    BaseInteractionEditor.DrawDerivedProperties()
    Remarks

    This method is used to allow users to add a to a derived behavior and have it automatically appear in the Inspector while still having the custom Editor apply to that derived class.
    When a derived class adds a , it will no longer automatically be drawn by this method. This is to allow users to customize where the property is drawn in the Inspector window. The derived class does not need to explicitly add the if the user is fine with the default location of where it will be drawn.

    See Also
    InitializeKnownSerializedPropertyNames()

    DrawInteractionConfiguration()

    Draw the property fields related to interaction configuration.

    Declaration
    protected virtual void DrawInteractionConfiguration()

    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 override void DrawProperties()
    Overrides
    XRBaseControllerInteractorEditor.DrawProperties()

    DrawRaycastConfiguration()

    Draw the Raycast Configuration foldout.

    Declaration
    protected virtual void DrawRaycastConfiguration()
    See Also
    DrawRaycastConfigurationNested()

    DrawRaycastConfigurationNested()

    Draw the nested contents of the Raycast Configuration foldout.

    Declaration
    protected virtual void DrawRaycastConfigurationNested()
    See Also
    DrawRaycastConfiguration()

    DrawSelectionConfiguration()

    Draw the Selection Configuration foldout.

    Declaration
    protected virtual void DrawSelectionConfiguration()
    See Also
    DrawSelectionConfigurationNested()

    DrawSelectionConfigurationNested()

    Draw the nested contents of the Selection Configuration foldout.

    Declaration
    protected virtual void DrawSelectionConfigurationNested()
    See Also
    DrawSelectionConfiguration()

    OnEnable()

    This function is called when the object becomes enabled and active.

    Declaration
    protected override void OnEnable()
    Overrides
    XRBaseControllerInteractorEditor.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