docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FromMatrix

    FromMatrix(float4x4)

    Returns the Transform equivalent of a float4x4 matrix.

    Declaration
    public static LocalTransform FromMatrix(float4x4 matrix)
    Parameters
    Type Name Description
    float4x4 matrix

    The orthogonal matrix to convert.

    Returns
    Type Description
    LocalTransform

    The Transform.

    Remarks

    If the input matrix contains non-uniform scale, the largest value will be used. Any shear in the input matrix will be ignored.

    See Also
    FromMatrixSafe(float4x4)
    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)