docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Property hasSelection

    hasSelection

    (Read Only) Indicates whether this Interactor is currently selecting an Interactable.

    Declaration
    bool hasSelection { get; }
    Property Value
    Type Description
    bool
    Remarks

    In other words, returns whether interactablesSelected contains any Interactables.

    interactablesSelected.Count > 0
    See Also
    interactablesSelected
    isSelected
    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)