Change only one tree state parameter from editor?


I’m trying to change a tree state parameter from my editor.

Basically when one button is toggled off I want it to set its tree state parameter to 0.0f.

However, when I do something like this:

        processor.treeState.state.setProperty("Tiled Room", 0.0f, nullptr);
        processor.treeState.state = ValueTree("savedParameters");

It will reset all of the other parameters that aren’t “Tiled Room”.

Is there some method I can call or another way of doing this so I can change just one tree state parameter?