docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method StartRecording

    StartRecording(string, int, EncoderSettings)

    record viewer in a file

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public void StartRecording(string filePath, int viewer, EncoderSettings encoderSettings = null)
    Parameters
    Type Name Description
    string filePath

    File in which video while be saved

    int viewer

    Viewer to use for recording video

    EncoderSettings encoderSettings

    Settings used for the encoder

    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)