Audio Resource Controller

Use Audio Resource Controller to connect to a speaker as an output to play and control the audio source. Audio Resource Controller is in the Audio category.
Input
Name | Data type | Description |
Play | Exec | Play the audio source |
Stop | Exec | Stop the audio source |
Pause | Exec | Pause the audio source |
Resume | Exec | Resume the audio source |
Loop Amount | Number | Set amount value for loop |
Audio Resource | Audio Source | The audio source you want to play |
Output
Name | Data type | Description |
Audio | Audio Stream | The audio source. Connect it to a speaker to play. |
On Play | Exec | Execute next node when the audio source starts playing |
On Stop | Exec | Execute next node when the audio source stops playing |
On Finish | Exec | Execute the next node when the audio source finishes playing on each loop |
Example
Select the effecthouseAudio audio clip in the Audio Resource node, connect to the Audio Resource Controller and Speaker to output the audio stream. When the camera detect a hand palm open, it will trigger the audio to play. When the audio is playing, it will trigger the alien to appear . When the play finishes, the alien will disappear.
