docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Property keepSelectedTargetValid

    keepSelectedTargetValid

    Whether to keep selecting an Interactable after initially selecting it even when it is no longer a valid target.

    Declaration
    public bool keepSelectedTargetValid { get; set; }
    Property Value
    Type Description
    bool
    Implements
    IXRSelectInteractor.keepSelectedTargetValid
    Remarks

    Return true to make the XRInteractionManager retain the selection even if the Interactable is not contained within the list of valid targets. Return false to make the Interaction Manager clear the selection if it isn't within the list of valid targets.
    A common use for disabling this is for Ray Interactors used for teleportation to make the teleportation Interactable no longer selected when not currently pointing at it.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)