trait AudioSourceTrait

Trait AudioSourceTrait

Methods

audio(string $audioId = null)

Adds another audio layer.

Details

static AudioSourceTrait|AudioSource audio(string $audioId = null)

Adds another audio layer.

Parameters

Name Type Description
$audioId string The public ID of the new audio layer.

Return Value

AudioSourceTrait|AudioSource