playMaker

Author Topic: Change action values not at runtime and serialize  (Read 837 times)

Thrump

  • Playmaker Newbie
  • *
  • Posts: 6
Change action values not at runtime and serialize
« on: January 28, 2020, 03:35:58 PM »
I'd like to add an OnValidate for my custom action, to make sure data is set to a certain value. I can do this and call OnValidate via reflection for every fsm state action. However after setting my fsm asset dirty and saving assets, the changes are not shown in file (although they ARE set when viewed in the playmaker editor).

If I change any other value in the same playmaker state through the playmaker editor, then save project, the file shows my changes. This is good, but I'd like to not have to go to every action in every fsm to make sure the values are updated.

Is there a way to force a state to know it's 'dirty' through code?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Change action values not at runtime and serialize
« Reply #1 on: March 17, 2020, 04:46:38 AM »
Hi,

 I would use the ErrorCheck() method instead, have you tried that?

Bye,

 Jean