# How to set instance parameters before starting

**URL:** <https://qa.fmod.com/t/how-to-set-instance-parameters-before-starting/20114>\
**Category:** Unity\
**Created:** [April 13, 2023, 3:20pm UTC](https://qa.fmod.com/t/how-to-set-instance-parameters-before-starting/20114 "2023-04-13T15:20:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JackTheRobot](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@JackTheRobot](https://qa.fmod.com/u/JackTheRobot)\
**Post date:** [April 13, 2023, 3:20pm UTC](https://qa.fmod.com/t/how-to-set-instance-parameters-before-starting/20114/1 "2023-04-13T15:20:23Z")

</div>

Is this even possible? I have an event with various parameters which are set according to the state of the game. I understand I can:

instance.start();  
instance.setParameterByName(“Parameter Name”, value);

and this will work. I just wonder if I can set the parameter before starting the instance

---

<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:** [April 14, 2023, 12:49am UTC](https://qa.fmod.com/t/how-to-set-instance-parameters-before-starting/20114/2 "2023-04-14T00:49:55Z")

</div>

Hi,

Yes, as long as the instance is created (`FMODUnity.RuntimeManager.CreateInstance()`) before trying to access it/assign its parameters. I would also recommend checking most FMOD functions with `FMOD.RESULT` as it can provide useful information for debugging purposes: [FMOD API | Core API Reference - Common](https://fmod.com/docs/2.02/api/core-api-common.html#fmod_result).

Hope this helps!

---

<div class="post-metadata">

**Author:** ![JackTheRobot](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@JackTheRobot](https://qa.fmod.com/u/JackTheRobot)\
**Post date:** [April 14, 2023, 7:36am UTC](https://qa.fmod.com/t/how-to-set-instance-parameters-before-starting/20114/3 "2023-04-14T07:36:04Z")

</div>

Sorry it was the end of a long day and I pasted my parameter change above the instance creation line… Thanks for your help!
