CreateManualControlContext(in AudioFormat)
Create a new ControlContext with additional functionality you can drive manually.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.Audio
- Assembly: UnityEngine.AudioModule
CreateManualControlContext(AudioFormat)
public static ControlContext.Manual CreateManualControlContext(in AudioFormat format)
Parameters
The initial AudioFormat the returned ControlContext.Manual will run in.
Returns
Type | Description |
|---|---|
| Manual | A ControlContext.Manual you own and control, that must later be disposed. |
Remarks
This context is completely separate from ControlContext.builtIn and shares no data, lifetime or callbacks. It's an error to mix and match ProcessorInstances from different ControlContexts. You must manually destroy this instance.