docs.unity3d.com
    目次を表示する/隠す

    Class RecorderSettings

    Main base class for a Recorder settings. Each Recorder needs to have its corresponding settings properly configured.

    Inheritance
    Object
    RecorderSettings
    AnimationRecorderSettings
    BaseFCRecorderSettings
    ImageRecorderSettings
    MovieRecorderSettings
    Namespace: UnityEditor.Recorder
    Syntax
    public abstract class RecorderSettings : ScriptableObject

    Constructors

    RecorderSettings()

    The constructor of the class.

    Declaration
    protected RecorderSettings()

    Properties

    CapFrameRate

    Specifies whether or not to limit the frame rate when it is above the target frame rate.

    Declaration
    public bool CapFrameRate { get; set; }
    Property Value
    Type Description
    Boolean

    Enabled

    Indicates if this Recorder is active when starting the recording. If false, the Recorder is ignored and generates no output.

    Declaration
    public bool Enabled { get; set; }
    Property Value
    Type Description
    Boolean

    EndFrame

    The end frame of the recording.

    Declaration
    public int EndFrame { get; set; }
    Property Value
    Type Description
    Int32

    EndTime

    The end time of the recording.

    Declaration
    public float EndTime { get; set; }
    Property Value
    Type Description
    Single

    Extension

    Stores the file extension used by this Recorder (without the dot).

    Declaration
    protected abstract string Extension { get; }
    Property Value
    Type Description
    String

    FileNameGenerator

    The object that resolves wildcards into a final path for output files.

    Declaration
    public FileNameGenerator FileNameGenerator { get; }
    Property Value
    Type Description
    FileNameGenerator

    FrameRate

    The number of recorded frames per second. In constant frame rate mode, this represent a target value, while in variable frame rate mode, this represents a maximum value.

    Declaration
    public float FrameRate { get; set; }
    Property Value
    Type Description
    Single
    See Also
    FrameRatePlayback

    FrameRatePlayback

    The type of frame rate to use in the recording: constant or variable.

    Declaration
    public FrameRatePlayback FrameRatePlayback { get; set; }
    Property Value
    Type Description
    FrameRatePlayback

    InputsSettings

    Stores the list of Input settings required by this Recorder.

    Declaration
    public abstract IEnumerable<RecorderInputSettings> InputsSettings { get; }
    Property Value
    Type Description
    IEnumerable<RecorderInputSettings>

    IsPlatformSupported

    Indicates if the current platform is supported (True) or not (False).

    Declaration
    public virtual bool IsPlatformSupported { get; }
    Property Value
    Type Description
    Boolean

    OutputFile

    Stores the path this Recorder will use to generate the output file. It can be either an absolute or a relative path. The file extension is automatically added. Wildcards such as DefaultWildcard.Time are supported. DefaultWildcard

    Declaration
    public string OutputFile { get; set; }
    Property Value
    Type Description
    String

    RecordMode

    The mode that defines the way to manage the starting point and duration of the recording: either manually or within a specific time or frame interval.

    Declaration
    public RecordMode RecordMode { get; set; }
    Property Value
    Type Description
    RecordMode

    StartFrame

    The start frame of the recording.

    Declaration
    public int StartFrame { get; set; }
    Property Value
    Type Description
    Int32

    StartTime

    The start time of the recording.

    Declaration
    public float StartTime { get; set; }
    Property Value
    Type Description
    Single

    Take

    Stores the current Take number. Automatically incremented after each recording session.

    Declaration
    public int Take { get; set; }
    Property Value
    Type Description
    Int32

    Methods

    HasErrors()

    Declaration
    protected virtual bool HasErrors()
    Returns
    Type Description
    Boolean

    IsAccumulationSupported()

    Indicates whether the current Recorder supports Accumulation recording or not.

    Declaration
    public virtual bool IsAccumulationSupported()
    Returns
    Type Description
    Boolean

    OnAfterDuplicate()

    Override this method if any post treatment needs to be done after this Recorder is duplicated in the Recorder Window.

    Declaration
    public virtual void OnAfterDuplicate()

    ValidityCheck(List<String>)

    Tests if the Recorder is correctly configured.

    Declaration
    protected virtual bool ValidityCheck(List<string> errors)
    Parameters
    Type Name Description
    List<String> errors

    List of errors encountered.

    Returns
    Type Description
    Boolean

    True if there are no errors, False otherwise.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)