docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetViewMatrix

    GetViewMatrix(int)

    Returns the camera view matrix.

    Declaration
    public Matrix4x4 GetViewMatrix(int viewIndex = 0)
    Parameters
    Type Name Description
    int viewIndex

    View index in case of stereo rendering. By default viewIndex is set to 0.

    Returns
    Type Description
    Matrix4x4

    The camera view matrix.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)