docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FromMatrixSafe

    FromMatrixSafe(float4x4)

    Returns the Transform equivalent of a float4x4 matrix. Throws and exception if the matrix contains nonuniform scale or shear.

    Declaration
    public static LocalTransform FromMatrixSafe(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, this will throw an exception. If the input matrix contains shear, this will throw an exception.

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