LateUpdate and FixedUpdate for custom FSMState

NodeCanvas Forums Custom Nodes & Tasks LateUpdate and FixedUpdate for custom FSMState

Tagged: 

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

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

    #18057
    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.

    #18068
    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.

    Join us on Discord: https://discord.gg/97q2Rjh

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