docs.unity.cn
    Show / Hide Table of Contents

    Method FromRotation

    FromRotation(quaternion)

    Returns a Transform initialized with the given rotation. Position will be 0,0,0, and scale will be 1.

    Declaration
    public static LocalTransform FromRotation(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 Thursday, August 10, 2023