I have an ORKObjectVariables component to a gameObject. The same gameObject also have an Editor script attached to it. I want this editor script to change value of a variable contained in the ObjectVariablesComponent.
I manage to get a reference to the ObjectVariablesComponent and from this reference get the VariableHandler through GetHandler() function. From there I can do GetString("varKey") to get the actual value of the variable I want to edit (used Debug.Log() to make sure I get the proper variable).
Then I do Set("varKey", "varValue") to set the variable to another value. And it looks like it register properly in the component. I Debug.Log with GetString and the value of the variable has change as per the previous command. However the ORKObjectVariablesComponent Inspector does not refresh. It keeps the old value that was still stored in the variable.
Is there a way to Repaint the Editor of an ORKObjectVariables ?