docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetCameraPosition

    GetCameraPosition(int, uint)

    Get the position of the nth view matrix of a given viewer

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public Point3 GetCameraPosition(int viewer = -1, uint matrixIndex = 0)
    Parameters
    Type Name Description
    int viewer

    Viewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).

    uint matrixIndex

    Index of the view matrix to use.

    Returns
    Type Description
    Point3
    In This Article
    Back to top
    Copyright © 2025 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)