docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Recorder

    Base class for all Recorders. To create a new Recorder, extend GenericRecorder<T>.

    Inheritance
    object
    Object
    ScriptableObject
    Recorder
    GenericRecorder<T>
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEditor.Recorder
    Assembly: Unity.Recorder.Editor.dll
    Syntax
    public abstract class Recorder : ScriptableObject

    Fields

    m_Inputs

    The list of inputs to the Recorder, representing the sources of the captured data.

    Declaration
    protected List<RecorderInput> m_Inputs
    Field Value
    Type Description
    List<RecorderInput>

    Properties

    RecordedFramesCount

    Indicates the number of frames of the current recording session.

    Declaration
    protected int RecordedFramesCount { get; }
    Property Value
    Type Description
    int

    Recording

    Tests if there is a recording session currently running.

    Declaration
    public bool Recording { get; protected set; }
    Property Value
    Type Description
    bool

    True if a recording session is currently active, False otherwise.

    Methods

    BeginRecording(RecordingSession)

    Starts a new recording session. Callback is invoked once when the recording session starts.

    Declaration
    protected virtual bool BeginRecording(RecordingSession session)
    Parameters
    Type Name Description
    RecordingSession session

    The newly created recording session.

    Returns
    Type Description
    bool

    True if recording can start, False otherwise.

    Exceptions
    Type Condition
    Exception

    Throws if there is already a recording session running.

    ConsoleLogMessage(string, LogType)

    Declaration
    protected void ConsoleLogMessage(string message, LogType logType)
    Parameters
    Type Name Description
    string message
    LogType logType

    EndRecording(RecordingSession)

    Ends the current recording session. Callback is invoked when the recording session ends.

    Declaration
    protected virtual void EndRecording(RecordingSession session)
    Parameters
    Type Name Description
    RecordingSession session

    The current recording session.

    PrepareNewFrame(RecordingSession)

    Prepares a frame before recording it. Callback is invoked for every frame during the recording session, before RecordFrame.

    Declaration
    protected virtual void PrepareNewFrame(RecordingSession ctx)
    Parameters
    Type Name Description
    RecordingSession ctx

    The current recording session.

    RecordFrame(RecordingSession)

    Records a single frame. Callback is invoked for every frame during the recording session.

    Declaration
    protected abstract void RecordFrame(RecordingSession ctx)
    Parameters
    Type Name Description
    RecordingSession ctx

    The current recording session.

    Reset()

    Declaration
    protected virtual void Reset()

    SessionCreated(RecordingSession)

    Declaration
    protected virtual void SessionCreated(RecordingSession session)
    Parameters
    Type Name Description
    RecordingSession session

    SkipFrame(RecordingSession)

    Tests if a frame should be skipped before trying to record it. Callback is invoked for every frame during the recording session.

    Declaration
    protected virtual bool SkipFrame(RecordingSession ctx)
    Parameters
    Type Name Description
    RecordingSession ctx

    The current recording session.

    Returns
    Type Description
    bool

    True if the frame should be skipped, False otherwise.

    Remarks

    If this function returns True, RecordFrame will not be invoked.

    SkipSubFrame(RecordingSession)

    Tests if a sub frame should be skipped before trying to record it. Callback is invoked for every frame during the recording session.

    Declaration
    protected virtual bool SkipSubFrame(RecordingSession ctx)
    Parameters
    Type Name Description
    RecordingSession ctx

    The current recording session.

    Returns
    Type Description
    bool

    True if the sub frame should be skipped, False otherwise.

    Remarks

    If this function returns True, RecordFrame will not be invoked.

    In This Article
    Back to top
    Copyright © 2024 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)