# Can't get EventReference to show up in v 2.02

**URL:** https://qa.fmod.com/t/cant-get-eventreference-to-show-up-in-v-2-02/20647
**Category:** Unity
**Created:** [September 13, 2023, 4:24am UTC](https://qa.fmod.com/t/cant-get-eventreference-to-show-up-in-v-2-02/20647 "2023-09-13T04:24:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MommysBestGames](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mommysbestgames/32/5537_2.png) [@MommysBestGames](https://qa.fmod.com/u/MommysBestGames)
#### Post date: [September 13, 2023, 4:24am UTC](https://qa.fmod.com/t/cant-get-eventreference-to-show-up-in-v-2-02/20647/1 "2023-09-13T04:24:53Z")

</div>

Hi, I’ve recently started using FMOD in my Unity game, and I’m very excited about the power that is possible with instead of stock Unity audio.  
However, after installing FMOD v 2.02 package in Unity 2020.3.14 (I think that version should work right?) I ran into a problem.

In my script, I want to trigger an event.  
I tried to expose an event like the script API example said.  
Like this: public FMODUnity.EventReference MyEvent;  
However, the full EventReference is not possible, only the older/obsolete form of “EventRef”.  
How do I get the new version to properly show up? Sorry, I know it’s a newbie question, but I’ve been stuck on this most of the day.  
-Nathan

---

<div class="post-metadata">

### Author: ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)
#### Post date: [September 13, 2023, 11:09pm UTC](https://qa.fmod.com/t/cant-get-eventreference-to-show-up-in-v-2-02/20647/2 "2023-09-13T23:09:25Z")

</div>

Hi,

Excited to have you with us!

In the FMOD Toolbar menu could I get a screenshot of your `About Integration`  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/7/7eeca64a5b4c53d69f676f572f51b5fab0b1561f.png)

If you check the `StudioEventEmitter.cs` script on line `11` do you see `public EventReference EventReference;`

Thanks

---

<div class="post-metadata">

### Author: ![MommysBestGames](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mommysbestgames/32/5537_2.png) [@MommysBestGames](https://qa.fmod.com/u/MommysBestGames)
#### Post date: [September 14, 2023, 12:16am UTC](https://qa.fmod.com/t/cant-get-eventreference-to-show-up-in-v-2-02/20647/3 "2023-09-14T00:16:43Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/e/e9b746a1b1af74ca4111566728958d7c980ec0ae.png)  
Here is my about integration screenshot.

---

<div class="post-metadata">

### Author: ![MommysBestGames](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mommysbestgames/32/5537_2.png) [@MommysBestGames](https://qa.fmod.com/u/MommysBestGames)
#### Post date: [September 14, 2023, 12:23am UTC](https://qa.fmod.com/t/cant-get-eventreference-to-show-up-in-v-2-02/20647/4 "2023-09-14T00:23:40Z")

</div>

Uh oh, very simple user error on my part.  
Sorry for the confusion!  
Here is what happened.  
I started looking at “Scripting Examples, Basic” but in version 2.0.0.  
Then I got the “obsolete” message in my code.  
So on the website I changed the code sample over to 2.0.2 (which is what I was already using but didn’t realize it).  
However, I kept trying to use the [FMODUnity.EventReference] style format! Which is not needed any more in 2.0.2. I can simply use “public FMODUnity.EventReference audioEvent;”.  
So it’s all fixed and working!  
Thank you!

---

<div class="post-metadata">

### Author: ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)
#### Post date: [September 14, 2023, 4:44am UTC](https://qa.fmod.com/t/cant-get-eventreference-to-show-up-in-v-2-02/20647/5 "2023-09-14T04:44:49Z")

</div>

Hi,

Good to hear it is working and thank you for sharing the solution.
