Reply To: Destroying GameObject from inside FSM

Forums 💬 NodeCanvas ⚙️ Support Destroying GameObject from inside FSM Reply To: Destroying GameObject from inside FSM

#19065
Gavalakis
Keymaster

    Hello,

    Please add a null check for the currentState at line #72:

    The DestroyGameObject action is created to be called in the Update method of the action (instead of OnExecute) and exactly before the line of error, the current state Update is called, and thus the problem.

    I’ve tested with the null check now and works as expected, but let me know.

    Thanks!