-
Notifications
You must be signed in to change notification settings - Fork 11
Audio Interaction
Audio interactions allow sound to be played from an object when a user interacts with it.
Audio interactions are added in the same way as other interactions, either by searching for "audio interaction" when adding a component, or by finding it in the list of scripts.
Once the interaction has been added, the user must define an audio clip to play. The file for the clip must be within the project files. The audio clip can be added in two ways. Clicking on the box next to 'Audio Clip' will bring up a menu of all audio clips currently available. Alternatively, an audio clip can be dragged in from the project tab.
The interaction creates a default audio source to play the clip. Users can choose to define their own audio source by adding it to the field in the same way as the audio clip. Unity's documentation on audio sources can be found here.