Class UnityUiThemeSounds
Unity-specific implementation of UI theme sounds containing audio clips for various UI interactions. Maps UI events like show, hide, submit, cancel to specific audio player clips for consistent audio feedback.
Implements
Inherited Members
Namespace: Serenity.Ui.Infrastructure.Entities
Assembly: Serenity.UnityUi.Infrastructure.dll
Syntax
public class UnityUiThemeSounds : IUiThemeSounds
Constructors
UnityUiThemeSounds()
Declaration
public UnityUiThemeSounds()
Fields
CancelSound
Declaration
public AudioPlayerClip CancelSound
Field Value
| Type | Description |
|---|---|
| AudioPlayerClip | Sound played when a UI action is canceled. |
ChangeOptionValueSound
Declaration
public AudioPlayerClip ChangeOptionValueSound
Field Value
| Type | Description |
|---|---|
| AudioPlayerClip | Sound played when an option value is changed in the UI. |
ErrorSound
Declaration
public AudioPlayerClip ErrorSound
Field Value
| Type | Description |
|---|---|
| AudioPlayerClip | Sound played when an error occurs in the UI. |
HideSound
Declaration
public AudioPlayerClip HideSound
Field Value
| Type | Description |
|---|---|
| AudioPlayerClip | Sound played when a UI element is hidden. |
SelectOptionSound
Declaration
public AudioPlayerClip SelectOptionSound
Field Value
| Type | Description |
|---|---|
| AudioPlayerClip | Sound played when an option is selected in the UI. |
ShowSound
Declaration
public AudioPlayerClip ShowSound
Field Value
| Type | Description |
|---|---|
| AudioPlayerClip | Sound played when a UI element is shown. |
SubmitSound
Declaration
public AudioPlayerClip SubmitSound
Field Value
| Type | Description |
|---|---|
| AudioPlayerClip | Sound played when a UI action is submitted. |
Methods
ToString()
Returns a formatted string representation of all UI theme sounds.
Useful for debugging and logging theme sound configurations.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | Multi-line string containing all sound definitions |