Hello, I'm doing editor window for Unity and through this window I create actions from script. at the moment I do it like this:
//get actions array
FsmStateAction[] actions = state.Actions;
//set action information
action.Fsm = state.Fsm;
action.Owner = state.Fsm.GameObject;
action.State = state;
//resize array of actions
System.Array.Resize<FsmStateAction>(ref actions, actions.Length + 1);
actions[actions.Length - 1] = action;
//save actions in state
state.Actions = actions;
//update actions data
state.ActionData.SaveActions(actions);
But when I run fsm, the process stops on created by me actions. If I go into action editor and change any value by hands (even if it is the same value) fsm works normally without stopping. Maybe there is a way that allows create the correct action?