InAudio Documentation

Advanced Audio Plugin for Unity

User Tools

Site Tools


examples:playusingeventhook

Play a sound using event hook

Open the Audio & Event window from Window/InAudio in the Unity toolbar.

Create audio

To play a sound drag a clip from the project to the audio window.

Create event

Create an event to play the sound from the Event Window. Instead of dragging, you can also right click on the audio definition and press “Send to event window” and skip the next step.

Drag that the newly created audio node onto the event and a play action will be created.

Add event hook

Add the Audio Event Hook script to a gameobject and drag the event to any of the drop points.

Press play and hear the sound play as the object is enabled!

examples/playusingeventhook.txt · Last modified: 2015/07/11 12:54 by peterolsted