docs.unity.cn
    Show / Hide Table of Contents

    Method Rotate

    Rotate(quaternion)

    Rotates this Transform by the specified quaternion.

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

    The rotation quaternion of unit length.

    Returns
    Type Description
    LocalTransform

    A new, rotated Transform.

    Remarks

    Note that this doesn't modify the original transform. Rather it returns a new one.

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