How to restart a graph?

Forums 💬 NodeCanvas ⚙️ Support How to restart a graph?

  • This topic has 0 replies, 2 voices, and was last updated 6 years ago by Gavalakis.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16482
    asusralis
    Participant

      I can’t find any info about this. I want to restart a graph as if it was just loaded from an asset. It seems stopping a graph does not do it. When I stop a graph and start it it starts at the end of the graph. Is there any way to do this?

      #16484
      Gavalakis
      Keymaster

        Hello there,

        Hmm. When Stop and then Start a graph ( or simply using ‘GraphOwner.RestartBehaviour()’ ), it should always start from the start. Please note however that variables are not reset when doing this. Can you please clarify what type of graph are you referring to (BT, FSM, or Dialogue), as well as possibly post a screenshot of your graph?

        Thanks!

        #16483
        asusralis
        Participant

          Sorry, I found the problem! I wasn’t resetting a variable in the graph when it was finished.

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