Reply To: Status enum documentation?

NodeCanvas Forums Support Status enum documentation? Reply To: Status enum documentation?

#14177
Gavalakis
Keymaster

Hello Tim 🙂

Please let me address your question.

  • Resting, is a status which marks a node as “ready”, and it’s the status that nodes are set to, after each traversal when the tree resets. You should generally never return Status.Resting.
  • Error, is a status that usually is returned when there is an execution error (like for example a required reference is not set). Status.Error, is unhandled by the parent node (neither Success, nor Failure), which means that the parent node will simply continue it’s execution as if the node that returned Status.Error was not even there. Which brings us to the next status…
  • Optional, which similar to the above, is unhandled and means that the parent node will continue it’s execution as if the node that returned Status.Optional was never there. The difference with Status.Error of course, is that Status.Optional is deliberatly optional.

I’ve also added some comments to the source now by the way 🙂
Please let me know if the above helps, or if you have any other questions regarding this (or anything else).

Thanks!

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