Forums › 💬 NodeCanvas › 🤩 Custom Nodes and Tasks › LateUpdate and FixedUpdate for custom FSMState
Hello, can’t find in documentation or on forums, how can i access LateUpdate and FixedUpdate in custom FSMState? Thanks!
Hi. I’m also trying to figure out how to access FixedUpdate and LateUpdate in a custom FSMState. Hoping to hear suggestions from the users here.
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.