generator
The default IAudioGenerator to play next.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.AudioModule
public IAudioGenerator generator { get; set; }
Remarks
When you call AudioSource.Play, the AudioSource will instantiate a Generator from the CreateRuntime function and render samples from it as the audio system mixes. The instantiated Generator instance will be assigned to AudioSource.generatorInstance for runtime scripting control while it is playing.