docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method TranslateAttachTransform

    TranslateAttachTransform(Transform, Transform, float)

    Translates the Attach Transform for this interactor. This can be useful to move a held object closer or further away from the interactor.

    Declaration
    protected virtual void TranslateAttachTransform(Transform rayOrigin, Transform attach, float directionAmount)
    Parameters
    Type Name Description
    Transform rayOrigin

    The starting position and direction of any ray casts.

    Transform attach

    The Attach Transform of the interactor.

    float directionAmount

    The translation amount.

    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)