asadm / playroom-unity

9 stars 1 forks source link

Unable to set boolean-type state variables #26

Closed franciscoraposo closed 5 months ago

franciscoraposo commented 5 months ago

When I try to do SetState(NAME, true) nothing seems to happen, so GetState<bool>() will never return the new value. I had to resort to making it an integer value instead.

I haven't delved enough into the code to understand what's the possible cause

momintlh commented 5 months ago

I just tested this, and it is working fine on my end. You do need to provide the same key when getting a state.

SetState("Name", true);
GetState<bool>("Name");
momintlh commented 5 months ago

Tested and working in #30, in case the issue persists open another issue!