ClockStone Audio Toolkit for Unity - Documentation |
AudioObject..::..PlayNow Method |
AudioObject Class See Also Send Feedback |
Plays the specified audio.
Namespace: (Default Namespace)
Assembly: AudioToolkit (in AudioToolkit.dll) Version: 8.0.0.0 (8.0.0.0)
Syntax
C# |
---|
public void PlayNow( string audioID, float delay = 0f, float volume = 1f, float startTime = 0f ) |
Parameters
- audioID
- Type: System..::..String
The audioID to be played.
- delay (Optional)
- Type: System..::..Single
Start playing after this amount of seconds [Default = 0].
- volume (Optional)
- Type: System..::..Single
The volume [Default = 0].
- startTime (Optional)
- Type: System..::..Single
The start time [Default = 0].
Remarks
Does not stop the secondary audio source (if playing). See SwitchAudioSources()()()().