AudioManager
1.3.0
A simple way for programmers to manage and control their 2D game’s background music and sound effects
|
Structure and properties for a sound effect More...
Properties | |
string | Name [get] |
Gets or sets the name of the sound effect. More... | |
float | Length [get] |
Gets the length of the sound effect in seconds. More... | |
float | PlaybackPosition [get] |
Gets the playback position in seconds. More... | |
AudioSource | Source [get, set] |
Gets or sets the source of the sound effect. More... | |
float | OriginalVolume [get, set] |
Gets or sets the original volume of the sound effect. More... | |
float | Duration [get, set] |
Gets or sets the duration for the sound effect to play in seconds. More... | |
float | Time [get, set] |
Gets or sets the time left or remaining for the sound effect to play in seconds. More... | |
float | NormalisedTime [get] |
Gets the normalised time left for the sound effect to play. More... | |
Action | Callback [get, set] |
Gets or sets the callback that would fire when the sound effect finishes playing. More... | |
bool | Singleton [get, set] |
Gets or sets a value indicating whether this Papae.UnitySDK.Managers.SoundEffect is a singleton. More... | |
Structure and properties for a sound effect
|
getset |
Gets or sets the callback that would fire when the sound effect finishes playing.
The callback.
|
getset |
Gets or sets the duration for the sound effect to play in seconds.
The duration.
|
get |
Gets the length of the sound effect in seconds.
The length.
|
get |
Gets or sets the name of the sound effect.
The name.
|
get |
Gets the normalised time left for the sound effect to play.
The normalised time.
|
getset |
Gets or sets the original volume of the sound effect.
The original volume.
|
get |
Gets the playback position in seconds.
The playback position.
|
getset |
Gets or sets a value indicating whether this Papae.UnitySDK.Managers.SoundEffect is a singleton.
Meaning that only one instance of the sound effect is ever allowed to be active.
true
if repeat; otherwise, false
.
|
getset |
Gets or sets the source of the sound effect.
The source.
|
getset |
Gets or sets the time left or remaining for the sound effect to play in seconds.
The duration.