playMaker

Author Topic: OnExit should be called when an FSM gets disabled  (Read 3251 times)

kLy

  • Playmaker Newbie
  • *
  • Posts: 9
OnExit should be called when an FSM gets disabled
« on: June 19, 2013, 06:13:31 AM »
Currently there seems to be no way for a custom action to know when an FSM gets disabled if "Reset On Disable" is unchecked.

Often you'd want to pause the FSM then pick it up again later, but as it is right now there's no way to cleanup / stop things when the FSM gets disabled.

Then OnEnter could get called again when the FSM gets re-enabled to resume the action.

Either that or we'd need some kind of OnDisable / OnEnable calls like with Monobehaviors.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: OnExit should be called when an FSM gets disabled
« Reply #1 on: June 19, 2013, 06:15:07 AM »
Hi,

 Can you file a bug report for this via the playmaker/tools menu, I think this is an interesting case.

bye

 Jean

kLy

  • Playmaker Newbie
  • *
  • Posts: 9
Re: OnExit should be called when an FSM gets disabled
« Reply #2 on: June 19, 2013, 06:47:03 AM »
Done thx :)