Class UnityAudioPlayerClipDefinition
Namespace: Serenity.AudioPlayer.Infrastructure.Settings
Assembly: Serenity.UnityAudioPlayer.Infrastructure.dll
Syntax
public class UnityAudioPlayerClipDefinition : ScriptableObject, IAudioPlayerClipDefinition, IFoundationSettings
Constructors
UnityAudioPlayerClipDefinition()
Declaration
public UnityAudioPlayerClipDefinition()
Fields
AudioClip
Declaration
public AudioClip AudioClip
Field Value
| Type | Description |
|---|---|
| AudioClip | Reference to the audio clip asset. |
AudioClipPath
Declaration
public string AudioClipPath
Field Value
| Type | Description |
|---|---|
| string | Path to the audio clip asset in the project. |
CanBeReplaced
Declaration
public bool CanBeReplaced
Field Value
| Type | Description |
|---|---|
| bool | Whether a sound started from this definition may be reassigned to make room for a higher-priority sound. |
Guid
Declaration
public string Guid
Field Value
| Type | Description |
|---|---|
| string | GUID for this audio clip definition used by editor tools and serialization. |
Id
Declaration
public string Id
Field Value
| Type | Description |
|---|---|
| string | Unique identifier for this audio clip definition. |
Priority
Declaration
public int Priority
Field Value
| Type | Description |
|---|---|
| int | Serenity priority of the clip. Higher value = more important. Existing assets that predate this field deserialize to the field initializer below, keeping behavior safe. |
PriorityPolicy
Declaration
public AudioPriorityPolicy PriorityPolicy
Field Value
| Type | Description |
|---|---|
| AudioPriorityPolicy | Policy used when the pool is full and this clip is requested. Defaults to IgnoreIfNoSourceAvailable so existing clips keep the original behavior. |