A game about forced loneliness, made by TACStudios
at master 22 lines 1.2 kB view raw view rendered
1# Use relations to debug 2 3Relations are a useful tool to understand the dependencies between each port of a node. For example, to get the result of A + B with the Add node, you need to provide a value for A and B. Likewise, before invoking the Log node, you should provide a value for its Message input port. 4 5![](images/vs-relations-debugging-show-relations.png) 6 7 8 9Visual scripting uses this information in the background for Predictive Debugging. For example, if you tried to get the value of A + B without providing a value for A, the node would show up as orange to indicate that it fails in play mode. 10 11![](images/vs-relations-debugging-predictive.png) 12 13 14When that happens, you can use the warnings shown in the Graph Inspector to know what is missing. 15 16 17Relations can also help understand the ports that are required and which ports are optional. For example, in the Get Child node (under fuzzy finder **Codebase** > **Unity Engine** > **Transform**), there is no need to connect the control ports if the goal is to get the transform value output. 18 19Enable the Relations toggle in the toolbar for the inner connections of each node to be displayed. 20 21> [!NOTE] 22> You cannot edit relations. They are predefined for each type of node.