# UNITY Visual Scripting Simple Example

**URL:** https://qa.fmod.com/t/unity-visual-scripting-simple-example/17600
**Category:** Unity
**Created:** [August 23, 2021, 2:08pm UTC](https://qa.fmod.com/t/unity-visual-scripting-simple-example/17600 "2021-08-23T14:08:59Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![DamianM](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@DamianM](https://qa.fmod.com/u/DamianM)
#### Post date: [August 23, 2021, 2:08pm UTC](https://qa.fmod.com/t/unity-visual-scripting-simple-example/17600/1 "2021-08-23T14:08:59Z")

</div>

Hi Guys,  
after spending some frustrating hours with no results I hope for your help: I try to get some simple instance of sound playing in Unity via the new Visual Scripting (Unity 2021, Fmod 2.02). The connection between Unity and Fmod works fine, all the other methods (C# script & Studio Event Emitter) also do work just fine. But I really would like to experiment with Visual Scripting and I wasn’t able to get any sound so far. Maybe somebody could give me a simple patch example how to play a simple sound instance. I would really appreciate your help!

---

<div class="post-metadata">

### Author: ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)
#### Post date: [September 9, 2021, 6:29am UTC](https://qa.fmod.com/t/unity-visual-scripting-simple-example/17600/2 "2021-09-09T06:29:55Z")

</div>

Which FMOD-based Bolt units are you using?

---

<div class="post-metadata">

### Author: ![Ozelot3005SDL](https://avatars.discourse-cdn.com/v4/letter/o/22d042/32.png) [@Ozelot3005SDL](https://qa.fmod.com/u/Ozelot3005SDL)
#### Post date: [January 8, 2022, 1:46am UTC](https://qa.fmod.com/t/unity-visual-scripting-simple-example/17600/3 "2022-01-08T01:46:16Z")

</div>

I hope it helps and it works by me without FMOD Event Emitter in Inspector. But i dont know its important the Event Instance-\>Release in VS. I use Unity 2021.2.7f1 and FMOD Studio 2.02.05.

 ![Screenshot 2022-01-08 024140](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/d/df99159d4808f3e687ca30d8bf95f04b1c4505b8.png)

If you want to change the volume from Bus, this works by me too  
 ![Screenshot 2022-01-08 024918](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/84d4b6fc27bb1b1421203ef22c5b49d7cda472bb.png)

The Problem is now by me, how can Play or Stop the Event. The Element needs a Target but i dont know what. Target from Instance? And how can Set the Stop Method (Fadeout ect.) or Set the Play/Stop Event.  
 ![Screenshot 2022-01-08 050424](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/e/e02cda4a6bc2fca1e05749777c56c2ab91627056.png)  
 ![Screenshot 2022-01-08 051203](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/f/fe8c10f9554083413761f85b4e024fb5478f50f6.png)

---

<div class="post-metadata">

### Author: ![yungaro](https://avatars.discourse-cdn.com/v4/letter/y/5fc32e/32.png) [@yungaro](https://qa.fmod.com/u/yungaro)
#### Post date: [September 10, 2022, 8:24am UTC](https://qa.fmod.com/t/unity-visual-scripting-simple-example/17600/4 "2022-09-10T08:24:28Z")

</div>

Im new into visual scripting, but I have been searching on lots of places, tutorials, forums, videos, and I cant find any of those units nor the way of connecting them (even when I found some that look similar) Im having a hard time trying to find fmod units, where they updated latetly or something?, I cant even find runtime nodes as the pictures above, I dont know where to find some documentation on how to effectively integrate fmod in flow graphs, please help.

---

<div class="post-metadata">

### Author: ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)
#### Post date: [September 12, 2022, 12:56am UTC](https://qa.fmod.com/t/unity-visual-scripting-simple-example/17600/5 "2022-09-12T00:56:46Z")

</div>

> [@yungaro](#):
>
> Im having a hard time trying to find fmod units, where they updated latetly or something?

Did you try selecting “FMOD \> Generate Visual Scripting Units” in Unity?

---

<div class="post-metadata">

### Author: ![yungaro](https://avatars.discourse-cdn.com/v4/letter/y/5fc32e/32.png) [@yungaro](https://qa.fmod.com/u/yungaro)
#### Post date: [September 13, 2022, 11:32pm UTC](https://qa.fmod.com/t/unity-visual-scripting-simple-example/17600/6 "2022-09-13T23:32:42Z")

</div>

Yes, and in these past days I’ve done a deeper research, Im still learning but have done some progress, anyways… I found some units related to fmod, some with some blue square icons, but the most difficult part was to ensemble all in a functional flowgraph/stategraph, there are so many, and it has been as difficult, as hard coding the event triggers from scratch, as I said before, maybe is because Im not well versed in programming, although I could build a decent graphs, it doesnt seem to get variables form inspector or sending the triggers, Im still watching tutorials and documentation about it, and to find some alternative ways of thinking how to build a proper flowgraph event trigger, right now I couldnt achieve to make the flowgraph execute or send or set variable to any gameobject with fmod emitter attached, but I will still trying to find some example code, and once I got better understanding, I will share any useful discovery. (sorry if my english is not so good)

---

<div class="post-metadata">

### Author: ![joseph](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/joseph/32/264_2.png) [@joseph](https://qa.fmod.com/u/joseph)
#### Post date: [September 14, 2022, 11:36pm UTC](https://qa.fmod.com/t/unity-visual-scripting-simple-example/17600/7 "2022-09-14T23:36:50Z")

</div>

I’m glad to hear you’ve been able to make progress. If you have any specific questions, please don’t hesitate to let us know.
