generatorInstance
A handle to the currently playing Generator, if it can be controlled by scripting.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.AudioModule
public ProcessorInstance generatorInstance { get; }
Remarks
You can use ControlContext.builtIn to script and issue commands to the Generator. Since the AudioSource owns the Generator, you can check for the existence using ControlContext.Exists.