How to restart a graph?

NodeCanvas Forums Support How to restart a graph?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14730
    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?

    #14733
    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!

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

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