public static AudioSequence PlayWithDelay(string request, float delay, params IEditModule[] edits)
public static AudioSequence PlayWithDelay(string request, float delay, float? volume = 1f, float? pitch = 1f, params IEditModule[] edits)
string request |
The key for the group to be played. |
---|---|
float delay |
The delay before the clip plays. |
params IEditModule[] edits |
An array of edits to apply to the clip. Is defines as params, so the elements do not needs to be in an array when defined. |
string request |
The key for the group to be played. |
---|---|
float delay |
The delay before the clip plays. |
float volume |
The volume to set the clip to. |
float pitch |
The pitch to set the clip to. |
params IEditModule[] edits |
An array of edits to apply to the clip. Is defines as params, so the elements do not needs to be in an array when defined. |
AudioSequence
The audio sequence that the clip is being played on.
Sets up an AudioSequence
to play with all the options provided and plays it when ready with a start delay defined through the parameters. Returning the AudioSequence
its playing from for you to use should you need the reference.