docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ExtractTrs

    ExtractTrs(Matrix4x4, ref Vector3, ref Quaternion, ref Vector3)

    Extracts the local position, rotation and scale from the given Matrix4x4.

    Declaration
    public static void ExtractTrs(Matrix4x4 transform, ref Vector3 localPosition, ref Quaternion localRotation, ref Vector3 localScale)
    Parameters
    Type Name Description
    Matrix4x4 transform
    Vector3 localPosition
    Quaternion localRotation
    Vector3 localScale
    In This Article
    Back to top
    Copyright © 2023 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)