ReturnGraph is a node-based plugin for Unity that lets you visualize logic to return values at runtime, without the need for endlessly nested If statements, Switch expressions, or other complicated coding logic. Think of it like a flowchart with dynamic variables for any type of value you need, right in your editor! ReturnGraph allows teams of all sizes, from the solo developer to a AAA studio, to create complex branching logic with a designer-friendly system, right in the inspector.
Combining the power of blackboard architecture and Unity's new Graph Toolkit API, ReturnGraph takes the confusion and tim sink out of creating large If statements with many branching pathways and variables, letting you spend more time designing (and finishing) your game!
ReturnGraph comes ready to go right out of the box with no additional dependencies or assets, and is preloaded with a suite of Nodes and Conditions to get you started. All you need to do is create a ReturnNode for the type of ScriptableObject you'd like to return, and then you're ready to start building your graph!
If your project requires custom Nodes or Conditions, don't worry! The C# source code is included, so ReturnGraph is easy to extend for your project's needs. Also detailed documentation and tutorials can be found both in the code and online.
PREMADE NODES
-------------------
PREMADE CONDITIONS
------------------------
As Unity's Graph Toolkit API evolves over time, so too will ReturnGraph, and it will continually be updated with new features and premade tools to make creating graphs even easier. If you have any questions or issues regarding the asset, don't hesitate to get in contact here. Additionally, if you have suggestions for ways to improve ReturnGraph, or you'd like to share your implementations of it, I'd love it hear it!