Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: maeslezo on June 26, 2018, 05:32:03 AM

Title: FsmStateAction enabled = false doesn't avoid OnUpdate
Post by: maeslezo 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");
    }
}