logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class RecipeMusicTrackDto

    Recipe description of a single music track definition. Maps to a UnityMusicTrackDefinition asset.

    Inheritance
    object
    RecipeMusicTrackDto
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.ProjectRecipe.Infrastructure.Editor.Model
    Assembly: Serenity.UnityProjectRecipe.Infrastructure.Editor.dll
    Syntax
    public class RecipeMusicTrackDto

    Constructors

    RecipeMusicTrackDto()

    Declaration
    public RecipeMusicTrackDto()

    Fields

    artist

    Declaration
    public string artist
    Field Value
    Type Description
    string

    Artist / composer name.

    beatUnit

    Declaration
    public int beatUnit
    Field Value
    Type Description
    int

    Time-signature denominator (Bars mode). Defaults to 4.

    beatsPerBar

    Declaration
    public int beatsPerBar
    Field Value
    Type Description
    int

    Time-signature numerator (Bars mode). Defaults to 4.

    bpm

    Declaration
    public float bpm
    Field Value
    Type Description
    float

    Tempo in BPM (Bars mode). Defaults to 120.

    endBar

    Declaration
    public int endBar
    Field Value
    Type Description
    int

    1-indexed loop-out bar, exclusive (Bars mode). Defaults to 2.

    endTimeSeconds

    Declaration
    public float endTimeSeconds
    Field Value
    Type Description
    float

    Loop-out point in seconds (Time mode); 0 means loop the whole clip.

    id

    Declaration
    public string id
    Field Value
    Type Description
    string

    Stable logical identifier (becomes the asset's Id). Required.

    loopInputMode

    Declaration
    public string loopInputMode
    Field Value
    Type Description
    string

    Loop authoring mode, as a MusicLoopInputMode name (Time or Bars). Empty leaves the default.

    output

    Declaration
    public string output
    Field Value
    Type Description
    string

    Output path relative to outputRoot, ending in .asset. Required.

    source

    Declaration
    public string source
    Field Value
    Type Description
    string

    Project path to an existing AudioClip asset. Required.

    startBar

    Declaration
    public int startBar
    Field Value
    Type Description
    int

    1-indexed loop-return bar (Bars mode). Defaults to 1.

    startFromLoopPoint

    Declaration
    public bool startFromLoopPoint
    Field Value
    Type Description
    bool

    Whether first playback begins at the loop-return point, skipping the intro.

    startTimeSeconds

    Declaration
    public float startTimeSeconds
    Field Value
    Type Description
    float

    Loop-return point in seconds (Time mode).

    tailFadeOutCurve

    Declaration
    public string tailFadeOutCurve
    Field Value
    Type Description
    string

    Tail fade-out curve shape, as a MusicFadeCurve name (Linear, Exponential, Logarithmic, SCurve, Custom). Empty leaves the default. Custom falls back to the asset's default curve, since custom curves cannot be expressed in the recipe.

    tailFadeOutDuration

    Declaration
    public float tailFadeOutDuration
    Field Value
    Type Description
    float

    Tail fade-out duration in seconds; 0 cuts the tail at the loop point.

    tailPreservingLoop

    Declaration
    public bool tailPreservingLoop
    Field Value
    Type Description
    bool

    Whether the track loops with a tail-preserving (dual-source) seam.

    title

    Declaration
    public string title
    Field Value
    Type Description
    string

    Display title of the track.

    In this article
    © 2026 Serenity. All Rights Reserved