docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method CanHoverSnap

    CanHoverSnap(IXRInteractable)

    Determines whether the specified IXRInteractable object can hover snap.

    Declaration
    protected virtual bool CanHoverSnap(IXRInteractable interactable)
    Parameters
    Type Name Description
    IXRInteractable interactable

    The IXRInteractable object to check for hover snap capability.

    Returns
    Type Description
    bool

    Returns true if hover socket snapping is enabled and the interactable has no selection or is selecting; otherwise, false.

    Remarks

    This method checks whether hover socket snapping is allowed and whether the specified interactable has no current selection or is in the process of selecting.

    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)