Simple Audio Manager
1.0.1
|
It is a track that can be played. More...
Public Member Functions | |
Track (AudioSystem audioSystem, AudioSource audioSource, AudioOption option, Transform followTarget, AudioClip clip) | |
This method used Audio System. If need use AudioSystem.CreateTrack(); More... | |
void | Play (AudioOption option) |
Play sound the specified option. More... | |
void | Play () |
Play sound. More... | |
void | Pause () |
Pause sound. More... | |
void | Stop () |
Stop sound. More... | |
AudioSystem | GetBindAudioSystem () |
Gets the binding AudioSystem. More... | |
virtual bool | IsDestroyAndUpdate () |
This method use AudioSystem. More... | |
Properties | |
float | volume [get, set] |
Gets or sets the volume. More... | |
AudioOption | option [get, set] |
Gets or sets the option. More... | |
AudioClip | clip [get, set] |
Gets or sets the audio clip. More... | |
AudioSource | audioSource [get, set] |
Gets or sets the audioSource. More... | |
Transform | transform [get] |
Gets the AudioSource transform. More... | |
bool | isPause [get, set] |
Is pause track. More... | |
bool | isStop [get] |
Is stop track. More... | |
bool | isPlay [get] |
Is play track. More... | |
bool | isNull [get] |
is clip null More... | |
Events | |
Action< Track > | complete |
Complete play track. More... | |
It is a track that can be played.
System.ArgumentException | Is thrown when an argument passed to a method is invalid. |
Track.Track | ( | AudioSystem | audioSystem, |
AudioSource | audioSource, | ||
AudioOption | option, | ||
Transform | followTarget, | ||
AudioClip | clip | ||
) |
This method used Audio System. If need use AudioSystem.CreateTrack();
AudioSystem Track.GetBindAudioSystem | ( | ) |
Gets the binding AudioSystem.
|
virtual |
This method use AudioSystem.
void Track.Pause | ( | ) |
Pause sound.
void Track.Play | ( | AudioOption | option) |
Play sound the specified option.
option | Play option. |
void Track.Play | ( | ) |
Play sound.
void Track.Stop | ( | ) |
Stop sound.
|
getset |
Gets or sets the audioSource.
The AudioSource.
|
getset |
Gets or sets the audio clip.
The clip.
|
get |
is clip null
true
if clip is null; otherwise, false
.
|
getset |
Is pause track.
true
if is play; otherwise, false
.
|
get |
Is play track.
true
if is play; otherwise, false
.
|
get |
Is stop track.
true
if is play; otherwise, false
.
|
getset |
Gets or sets the option.
The option.
System.ArgumentException | Is thrown when an argument passed to a method is invalid. |
|
get |
Gets the AudioSource transform.
The transform of AudioSource.
|
getset |
Gets or sets the volume.
The volume.
Action<Track> Track.complete |
Complete play track.