playMaker

Author Topic: FsmStateAction enabled = false doesn't avoid OnUpdate  (Read 937 times)

maeslezo

  • Playmaker Newbie
  • *
  • Posts: 4
FsmStateAction enabled = false doesn't avoid OnUpdate
« on: June 26, 2018, 05:32:03 AM »
Hello everyone,

I have been debugging a fsmStateAction. I have disabled it from the playmaker inspector, but the OnUpdate method is still called. (See attachments)

So my question is, if enabled= false does not avoid to keep calling OnUpdate, what is it for?

Thank you

Code: [Select]
using HutongGames.PlayMaker;
using UnityEngine;

public class EnabledTest : FsmStateAction
{
    public override void OnUpdate()
    {
        Debug.Log("OnUpdate");
    }
}