docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetAttachTransform

    GetAttachTransform(IXRInteractable)

    Gets the Transform that is used as the attachment point for a given Interactable.

    Declaration
    Transform GetAttachTransform(IXRInteractable interactable)
    Parameters
    Type Name Description
    IXRInteractable interactable

    The specific Interactable as context to get the attachment point for.

    Returns
    Type Description
    Transform

    Returns the attachment point Transform.

    Remarks

    This should typically return the Transform of a child GameObject or the transform itself.

    See Also
    GetAttachTransform(IXRInteractor)
    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)