Click or drag to resize

ExtensionMethodsPlayScheduled Method

Plays an array of AudioSources at a certain time.

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: (
public static void PlayScheduled(
	this AudioSource[] audioSources,
	double timeToPlay


Type: AudioSource
The array of audio sources that will be paused.
Type: SystemDouble
Time in seconds on the absolute time-line that AudioSettings.dspTime refers to for when the AudioSources should start playing.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also