# getEvent usage and errors

**URL:** <https://qa.fmod.com/t/getevent-usage-and-errors/19280>\
**Category:** Unity\
**Tags:** unity, csharp\
**Created:** [September 16, 2022, 2:37am UTC](https://qa.fmod.com/t/getevent-usage-and-errors/19280 "2022-09-16T02:37:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahilmishra](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@sahilmishra](https://qa.fmod.com/u/sahilmishra)\
**Post date:** [September 16, 2022, 2:37am UTC](https://qa.fmod.com/t/getevent-usage-and-errors/19280/1 "2022-09-16T02:37:52Z")

</div>

Hi,  
Just started a new Unity project and tried using the callback code that was posted here but Unity keeps getting caught on this line:

```auto

instance = FMOD.Studio.System.getEvent("event:/Music/Complex/Situationl", out EventDescription _event);

```

with the out it errors w

```auto
instance = FMOD.Studio.System.getEvent("event:/Music/Complex/Situation_Oriental", out EventDescription _event);

```

and without:

```auto
There is no argument given that corresponds to the required formal parameter '_event' of 'System.getEvent(string, out EventDescription)'

```

---

<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 19, 2022, 1:06am UTC](https://qa.fmod.com/t/getevent-usage-and-errors/19280/2 "2022-09-19T01:06:47Z")

</div>

Hi,

Could you link the post you are referring to?

A solution may be using the system the FMOD creates for you.  
Try this code:

```auto
FMODUnity.RuntimeManager.StudioSystem.getEvent("event:/Music/Complex/Situation_Oriental", out FMOD.Studio.EventDescription _event);

```

Hope this helps!
