docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TakeScreenshot

    TakeScreenshot(string, int)

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public void TakeScreenshot(string fileName, int viewer)
    Parameters
    Type Name Description
    string fileName

    Path where to save the screenshot

    int viewer
    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)