769 B
769 B
#Creating a graph
Graphs are re-usable and can be referenced by machines that have their Source set to graph. A graph is generally superior to an embed - it is reusable, not tied to the object, and works safely with prefabs.
To create a graph:
-
Right-click in an empty folder in your Project panel.
-
Select Create > Visual Scripting > (Script or State) Graph. Note: Although it is recommend to place your graphs in a top-level Graphs folder, folder organization has no impact on functionality.
-
Drag-and-drop your new graph to the machine (from the Assets folder you created) to machine's Graph field (which currently states None (Script Graph Asset)).
The graph is assigned to the machine.