Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

Used to play a randomized short sound effect. Useful for foley Foley effects like dropping items, etc.

A good approach for using this component is to create ready-made Prefabs that define different sounds and can be attached to Props. The SDK has some pre-defined SFX for common cases (dropping an item, etc.).

Clips

An array of audio clips to choose a sound effect from.

Audio Source

Will be automatically added to Game Object if not set.

Volume

Volume to play the clip.

Play On Awake

Whether to play the clip on Awake.