文档

Unity Engine

Unity Engine

Stop()

Exits audio recording mode. After this audio output will be audible again.
阅读时间1 分钟最后更新于 5 天前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AudioModule
public static bool Stop()

Returns

Type

Description

boolReturns
true
if the engine was recording when this method is called. Returns
false
if the engine wasn't recording, in which case Unity logs an error.

Remarks

This returns audio rendering to the audio thread, which AudioRenderer.Start moves onto the main thread.