docs.unity.cn
    Show / Hide Table of Contents

    Method WithRotation

    WithRotation(quaternion)

    Gets an identical transform with a new rotation value.

    Declaration
    public LocalTransform WithRotation(quaternion rotation)
    Parameters
    Type Name Description
    quaternion rotation

    The rotation.

    Returns
    Type Description
    LocalTransform

    The transform.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023