docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FromPosition

    FromPosition(float3)

    Returns a Transform initialized with the given position. Rotation will be identity, and scale will be 1.

    Declaration
    public static LocalTransform FromPosition(float3 position)
    Parameters
    Type Name Description
    float3 position

    The position.

    Returns
    Type Description
    LocalTransform

    The Transform.

    FromPosition(float, float, float)

    Returns a Transform initialized with the given position. Rotation will be identity, and scale will be 1.

    Declaration
    public static LocalTransform FromPosition(float x, float y, float z)
    Parameters
    Type Name Description
    float x

    The x coordinate of the position.

    float y

    The y coordinate of the position.

    float z

    The z coordinate of the position.

    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)