I have some cases where I want to immediately exit a action from OnExecute however it can cause issues where the current state becomes null during the FSM OnGraphUpdate. I’ve manually patched this myself but I have to keep re-applying it when I upgrade. Would it be possible to add this in for the next update? My change is in bold:
protected override void OnGraphUpdate() {
…
//Update current state
currentState.Execute(agent, blackboard);
//this can only happen if FSM stopped just now (from the above Execute) if ( currentState == null ) { Stop(false); return; } }
I also had some obsolete API warnings when updating to latest version. I let Unity update the usages and everything seems fine but thought I would point it out. I’m on latest Unity 2021 LTS