# Changing Snapshot parameters

**URL:** https://qa.fmod.com/t/changing-snapshot-parameters/22800
**Category:** Unity
**Created:** [April 14, 2025, 5:55pm UTC](https://qa.fmod.com/t/changing-snapshot-parameters/22800 "2025-04-14T17:55:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![reinhardt92](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@reinhardt92](https://qa.fmod.com/u/reinhardt92)
#### Post date: [April 14, 2025, 5:55pm UTC](https://qa.fmod.com/t/changing-snapshot-parameters/22800/1 "2025-04-14T17:55:50Z")

</div>

Hello!

I found some topics about it, but couldn’t find a solution that works.

Basically I have a snapshot that creates a bullet time-like effect once activated, so all game sounds should be affected by it. However, for this effect I created a logic in Unity that should change the effect intensity based on how long the player holds a certain key.  
In the FMOD Mixer Window, I created the parameter by right clicking on the Intensity and exposing the parameter as a local variable (I tried switching to global variable but it didn’t work).  
I’ve already setup everything I should to work with snapshots:

- I created the snapshot’s instance using RuntimeManager.CreateInstance(snapshot);
- I called the method snapshotInstance.setParameterByName(IntensityParameterName, intensity);, here IntensityParameterName equals to “Intensity” (the same name of the FMOD parameter) and intensity is the value that should be updated every n seconds

That said, I’m not getting the effect I wanted. IS there something else I should be doing? 🤔

Here’s a print of my FMOD Mixer window.

 ![Capture](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/8ed02bcd9766fca88d5bea79575bb20380a2faa1.png)

EDIT:

One thing I forgot to mention is: the RuntimeManager.CreateInstance(snapshot) part is setup inside a scriptable object. Not sure if that’s relevant.

---

<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: [April 16, 2025, 4:20am UTC](https://qa.fmod.com/t/changing-snapshot-parameters/22800/2 "2025-04-16T04:20:28Z")

</div>

Hmm… I can’t see anything in your description of what you’re doing that sounds obviously wrong.

Have you tried calling [Studio::EventInstance::getParameterByName](https://www.fmod.com/docs/2.03/api/studio-api-eventinstance.html#studio_eventinstance_getparameterbyname) after each time you set the parameter, to see whether it returns the values you expect?

---

<div class="post-metadata">

### Author: ![reinhardt92](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@reinhardt92](https://qa.fmod.com/u/reinhardt92)
#### Post date: [April 16, 2025, 6:49pm UTC](https://qa.fmod.com/t/changing-snapshot-parameters/22800/3 "2025-04-16T18:49:16Z")

</div>

Hey, thanks for the reply.

I did, yes. I used the out var value of the get method and tried to log using Debug.Log, but it returns 0 everytime even though the set value is not.

How is that possible? 😶

Are there any other options I could try?

---

<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: [April 30, 2025, 4:42am UTC](https://qa.fmod.com/t/changing-snapshot-parameters/22800/4 "2025-04-30T04:42:28Z")

</div>

That suggests that the value of the parameter is not being set correctly, possibly because your code is failing to correctly specify the target event instance or parameter.

Is the [Studio::EventInstance::setParameterByName](https://www.fmod.com/docs/2.03/api/studio-api-eventinstance.html#studio_eventinstance_setparameterbyname) function returning [FMOD\_ERR\_INVALID\_PARAM](https://www.fmod.com/docs/2.03/api/core-api-common.html#fmod_err_invalid_param) or [FMOD\_ERR\_EVENT\_NOTFOUND](https://www.fmod.com/docs/2.03/api/core-api-common.html#fmod_err_event_notfound)?
