文档

Unity Engine

Unity Engine

generator

The default IAudioGenerator to play next.
阅读时间1 分钟最后更新于 1 个月前

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.