Audio player¶
This Audio player community component allows an object to make a specific sound when triggered. Attach this component to an object in the scene.
This component includes:
Property | Description |
---|---|
Audio | The audio clip to add and play |
Loop | Determines whether to loop the audio clip |
Volume | The volume of the sound. Ranges from 0 to 150%. Default: 100%. |
Pitch | The amount of pitch change caused by slowing/accelerating the audio clip. Ranges from -3 to 3. Default: 1. |
Type | Specifies the sound type:
|
Min Distance | The distance beyond which the sound starts to attenuate. Ranges from 1 to 100. Default: 5. |
Max Distance | The distance at which the sound stops attenuating. Ranges from 1 to 100. Default: 50. |
Volume Rolloff | Determines how fast the sound fades. The higher the value, the closer the audio listener has to be to make the sound audible.
|
DopplerLevel | Determines how much Doppler effect will be applied to the audio source. Ranges from 0 to 5 |
Condition | Determines the trigger of the audio clip:
|
Event name | Specifies the trigger event name for playing the audio clip. For example, it can be entered as registered in the AiGameEventRelay component. This field is only visible for the Condition is set to Event. |