docs.unity3d.com
Search Results for

    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.

    In This Article
    Back to top
    Copyright © 2024 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)