文档

Unity Engine

Unity Engine

generatorInstance

A handle to the currently playing Generator, if it can be controlled by scripting.
阅读时间1 分钟最后更新于 1 个月前

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.