Forums › 💬 NodeCanvas › 🤩 Custom Nodes and Tasks › LateUpdate and FixedUpdate for custom FSMState › Reply To: LateUpdate and FixedUpdate for custom FSMState
Hello, The way to access those in both FSMState as well as ActionTasks is by subscribing to the according event in MonoManager. Here is the doc for ActionTasks but it is the same method for an FSMState -> https://nodecanvas.paradoxnotion.com/documentation/?section=using-fixedupdate-and-ongui
In an FSMState you would instead use OnEnter to subscribe and OnExit to unsubscribe. PS: MonoManager also has and ‘onLateUpdate’ event even though it is not shown in the example codes in the docs page above).
Let me know if that works for you.