Hello,
when I set the global variables from a preset the string values remain empty.
It worked when I edited RuntimeVariables.cs and put the globalVar.TextValue = presetValue.textVal; after the others
so from:
globalVar.IntegerValue= presetValue.val;
globalVar.FloatValue = presetValue.floatVal;
globalVar.TextValue = presetValue.textVal;
globalVar.Vector3Value = presetValue.vector3Val;
globalVar.GameObjectValue = presetValue.gameObjectVal;
globalVar.Upload (VariableLocation.Global);
to this:
globalVar.IntegerValue= presetValue.val;
globalVar.FloatValue = presetValue.floatVal;
globalVar.Vector3Value = presetValue.vector3Val;
globalVar.GameObjectValue = presetValue.gameObjectVal;
globalVar.TextValue = presetValue.textVal;
globalVar.Upload (VariableLocation.Global);
is there a problem using it like this? would this break other values?
Thanks
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Likely not, but best to have a look at the original issue to know for sure - I'll look into this.
Yes - this'll cause issues if you have a GameObject variable type. I shall address this in the next update.