LateUpdate and FixedUpdate for custom FSMState

Forums 💬 NodeCanvas 🤩 Custom Nodes and Tasks LateUpdate and FixedUpdate for custom FSMState

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12809
    sloppy
    Participant

      Hello, can’t find in documentation or on forums, how can i access LateUpdate and FixedUpdate in custom FSMState? Thanks!

      #12811
      thegabmeister
      Participant

        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.

        #12810
        Gavalakis
        Keymaster

          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.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.