[BUG MAYBE?] Latch in ActionTask

Forums 💬 NodeCanvas ⚙️ Support [BUG MAYBE?] Latch in ActionTask

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17033
    w
    Participant

      Hello!

      In function EndAction() in ActionTask.cs :

      and in the ExecuteAction function:

      #17037
      Gavalakis
      Keymaster

        Hello,

        Thanks for the elaboration on the code. I don’t foresee any problems by moving the “latch” variable set AFTER the status != Status.Running check as you propose. I will need to re-check everything to make sure though. Out of curioucity, how can it be (or why) are you calling EndAction before the action is running by the way? Are you doing something custom with the graphs?

        Thanks 🙂

        #17036
        w
        Participant

          Hi Gavalakis,

          Thanks for your response. In my game I have a custom action task that plays a playableDirector, and the task ends when the director finishes. playableDirector has an OnDirectorStop callback, from which EndAction() of the task is triggered. However in Unity, OnDirectorStop is always triggered before the director starts playing, causing EndAction happens before start.

          #17035
          Gavalakis
          Keymaster

            Hello again,
            Thanks for the follow up and the details. I’ve moved latch to be set after the Status.Running check for the next version 🙂

            #17034
            w
            Participant

              Thank you!

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