docs.unity.cn
    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)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023