docs.unity3d.com
    Show / Hide Table of Contents

    XR Interactor Line Visual

    Interactor helper object aligns a LineRenderer with the Interactor.

    XRInteractorLineVisual component

    Property Description
    Line Width Controls the width of the line.
    Width Curve Controls the relative width of the line from start to end.
    Valid Color Gradient Controls the color of the line as a gradient from start to end to indicate a valid state.
    Invalid Color Gradient Controls the color of the line as a gradient from start to end to indicate an invalid state.
    Blocked Color Gradient Controls the color of the line as a gradient from start to end to indicate a state where the interactor has a valid target but selection is blocked.
    Treat Selection As Valid State Forces the use of valid state visuals while the interactor is selecting an interactable, whether or not the interactor has any valid targets.
    Override Line Length A boolean value that controls which source Unity uses to determine the length of the line.
    Set to true to use the Line Length set by this behavior.
    Set to false to have the length of the line determined by the Interactor.
    Line Length Controls the length of the line when overriding (the above checkbox must be enabled for this to be used).
    Stop Line At First Raycast Hit Controls whether this behavior always cuts the line short at the first ray cast hit, even when invalid.
    The line will always be cut short by this behavior when pointing at a valid target. If you wish this line to pass through valid targets, they must be placed on a different layer.
    - true means to do the same even when pointing at an invalid target.
    - false means the line will continue to the configured line length.
    Stop Line At Selection Controls whether the line will stop at the attach point of the closest interactable selected by the interactor, if there is one.
    Smooth Movement Controls whether the rendered segments will be delayed from and smoothly follow the target segments.
    Snap Endpoint if Available Enables the ray visuals to snap the end point the line when the ray hits a XRInteractableSnapVolume.
    Reticle Stores the reticle that appears at the end of the line when it is valid.
    Blocked Reticle Stores the reticle that appears at the end of the line when the interactor has a valid target but it selection is blocked.
    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