docs.unity3d.com
    Show / Hide Table of Contents

    Class RecorderController

    Main class to use the Recorder framework via script. Controls recording states like start and stop.

    Inheritance
    System.Object
    RecorderController
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEditor.Recorder
    Syntax
    public class RecorderController

    Constructors

    RecorderController(RecorderControllerSettings)

    A RecorderController requires a RecorderControllerSettings.

    Declaration
    public RecorderController(RecorderControllerSettings settings)
    Parameters
    Type Name Description
    RecorderControllerSettings settings

    The RecorderControllerSettings to be used by this RecorderController.

    Fields

    verbose

    If true, prints debug information into the Console.

    Declaration
    public bool verbose
    Field Value
    Type Description
    System.Boolean

    Properties

    settings

    Current settings used by this RecorderControler.

    Declaration
    public RecorderControllerSettings settings { get; }
    Property Value
    Type Description
    RecorderControllerSettings

    Methods

    IsRecording()

    Use this method to know if all recorders are done recording. A recording stops:

    1. The settings is set to a time (or frame) interval and the end time (or last frame) was reached.
    2. Calling the StopRecording method.
    3. Exiting Playmode.
    Declaration
    public bool IsRecording()
    Returns
    Type Description
    System.Boolean

    True if at least one recording is still active. false otherwise.

    See Also
    SetRecordModeToSingleFrame(Int32)
    SetRecordModeToFrameInterval(Int32, Int32)
    SetRecordModeToTimeInterval(Single, Single)

    StartRecording()

    Start recording. Works only in Playmode.

    Declaration
    public bool StartRecording()
    Returns
    Type Description
    System.Boolean

    StopRecording()

    Stops all active recordings. Most recordings will create the recorded file once stopped. If the settings is using Manual recording mode. then the only way to stop recording is by calling this method or by exiting Playmode.

    Declaration
    public void StopRecording()
    See Also
    SetRecordModeToManual()
    Back to top Copyright © 2015-2018 Unity
    Generated by DocFX