flow canvas debug

Forums 💬 FlowCanvas ⚙️ Support flow canvas debug

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #22558
    chocolacode
    Participant

      Hello,

      I am having problems debugging a flowscript.

      1. in the case of iterator “For Each” the game stops at the breakpoint as it should be. however it is stoping at the last iteration, always. see example attached, it is stoping at the last entry of the List. I have changed the entries multiple times and it always stop at the last.

      2. In the case of Game Object variables, the information is not showing like the other variables, see example attached. I am experiencing this in all flowscripts.

      thanks in advance for your support!

      [attachment file=”flowcanvas debug .png”]

      #22564
      Gavalakis
      Keymaster

        Hey,

        1) There is actually a small issue with using breakpoints in the ForEach node, because the iteration is taking place within the node in one frame and pausing the unity Editor is not really possible within a for-each or a for-loop iteration. You can confirm this by running this simple non flowcanvas example if you want 🙂

        You will see that there will only be one pause break and that will be by the end of the iteration.

        2) GameObject variables will be debug displayed on the connection, only if the target port that the connection is link TO, is of a GameObject type as well. In this case it is not displayed, because the target port there (on the Log Value node) is of type System.Object. I can take a look at improving this though so that instead of taking the target port type into consideration, to take the actual object type that is passed through the connection.

        Thanks!

        #22563
        chocolacode
        Participant

          Hi there!

          1) I see what the issue is, thanks for the info. What do you suggest for a custom node that actually can go through one loop item at a time?
          or if you can suggest any other alternative will be appreciated!!! 🙂

          2) Thanks for checking into this …

          thanks!

          #22562
          Gavalakis
          Keymaster

            Hey,

            1) Going through one item at a time, NOT in the same frame can basically be done with a coroutine. It could still be a for loop, but instead implemented as a coroutine that would yield in every iteration. If you really need such a node and help creating it, let me know.

            2) 🙂

            You are very welcome!

            #22561
            chocolacode
            Participant

              Hey,

              thanks for your answer, can you please help me creating such a node?

              thanks in advance!

              #22560
              chocolacode
              Participant

                Hello,

                Are you there?

                Can you please help me creating
                this custom node?

                Thanks!

                #22559
                Gavalakis
                Keymaster

                  Hey,

                  I have attached for you here a ForEach node that iterates one element every frame rather than all of them in the same frame.
                  Cheers.

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