triggerSoundEventSource
此内容尚不支持你的语言。
triggerSoundEventSource(
world,entity):Promise<SoundEventHandle|null>
Defined in: audio/SoundEventSource.ts:25
Play one source intent, independently of other triggers in the same frame. While the definition loads, at most 256 intents per source wait in FIFO order. Returns null when unavailable, cancelled, overflowing, or the definition fails; otherwise the handle exposes event/global admission and clip-load results.
Parameters
Section titled “Parameters”entity
Section titled “entity”number
Returns
Section titled “Returns”Promise<SoundEventHandle | null>