docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetViewerStats

    GetViewerStats(int)

    Returns the number of rendered occurrences and triangles. (Warning: this function does not handle isolate nor invertVisibility viewer property)

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public GetViewerStatsReturn GetViewerStats(int viewer = -1)
    Parameters
    Type Name Description
    int viewer

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

    Returns
    Type Description
    GetViewerStatsReturn
    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)