Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Papatwika on May 27, 2024, 11:52:17 AM
-
Hello!
We are using a custom property drawer to set fsmVariable values in custom FsmStateAction classes (ref: FsmStateAction.PNG). This was working when we were using version 1.7.8, but we recently upgraded Playmaker to version 1.9.7 and since then, we are getting this error message when trying to assign a variable (global or local). (ref: ErrorMessage.PNG)
We are using PropertyDrawer.EditField (ref: EditField.PNG), and pre-upgraded values are still correctly set and working, we just can't set new values or edit currently set values.
Not sure if its a bug or we need to do something differently, but any guidance would be immensely appreciated!
-
I was able to resolve my issue by making another Propertydrawer class for the "insert" subclass. Doing this, I could use an overload of the EditField method:
public void EditField(string fieldName, object fieldValue, object[] attributes)
This method works without giving me the reflection error.