OnUpdate still calling after EndAction

Forums 💬 NodeCanvas ⚙️ Support OnUpdate still calling after EndAction

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19623
    mansonet
    Participant

      Hi, we are facing some problems with an action not being removed from MonoManager updateMethods when the action start executing again. (Behaviour tree attached)
      The sequencer it’s executed every time the condition it’s true, if the condition is true every tick, Mecanim Set Float action won’t have any elapseTime, and since the condition to remove an OnUpdate method from MonoManager is that elapseTime needs to be greater than 0, this won’t remove already added method to updateMethods list, leaving the same OnUpdate method twice in the list.

      The workaround i could find is:

      #19624
      Gavalakis
      Keymaster

        Hey,
        Sorry for late reply.

        I think something happened with the attached BT. Could you please send it to info_at_nodecanvas.com?

        I can’t really replicate a case where OnUpdate is not removed and thus is called twice.
        If OnUpdate is called then elapsed time will be greater than 0 and thus the method will be removed.
        I suspect it could be a Set Mecanim Float bug rather than ActionTask one although I can’t reproduce it, but it would be great to send me your behaviour if possible so to make sure.

        Thanks!

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