docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method OnLink

    OnLink(XRGrabInteractable)

    Called by Unity when the given Interactable links to this grab transformer. Use this to do any code initialization for the given Interactable.

    Declaration
    public virtual void OnLink(XRGrabInteractable grabInteractable)
    Parameters
    Type Name Description
    XRGrabInteractable grabInteractable

    The XR Grab Interactable being linked to this transformer.

    Implements
    IXRGrabTransformer.OnLink(XRGrabInteractable)
    See Also
    OnUnlink(XRGrabInteractable)
    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)