logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class RecipeAudioClipDto

    Recipe description of a single AudioPlayer clip definition. Maps to a UnityAudioPlayerClipDefinition asset.

    Inheritance
    object
    RecipeAudioClipDto
    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 RecipeAudioClipDto

    Constructors

    RecipeAudioClipDto()

    Declaration
    public RecipeAudioClipDto()

    Fields

    canBeReplaced

    Declaration
    public bool canBeReplaced
    Field Value
    Type Description
    bool

    Whether a sound from this clip may be reassigned to free a source. Defaults to true.

    id

    Declaration
    public string id
    Field Value
    Type Description
    string

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

    output

    Declaration
    public string output
    Field Value
    Type Description
    string

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

    priority

    Declaration
    public int priority
    Field Value
    Type Description
    int

    Serenity priority; higher = more important. Defaults to 50.

    priorityPolicy

    Declaration
    public string priorityPolicy
    Field Value
    Type Description
    string

    Pool-full policy, as an AudioPriorityPolicy name (IgnoreIfNoSourceAvailable, ReplaceLowerPriority, ReplaceLowerOrEqualPriority, AlwaysReplace). Empty leaves the asset default.

    source

    Declaration
    public string source
    Field Value
    Type Description
    string

    Project path to an existing AudioClip asset (e.g. Assets/Game/Media/jump.wav). Required.

    In this article
    © 2026 Serenity. All Rights Reserved