GameVsJam/3d Prototyp/Library/PackageCache/com.unity.visualscripting@1.../Documentation~/vs-create-graph.md

2.0 KiB

Create a new graph file

To create a new Visual Scripting graph file, you can use the Unity Editor's Project window, Visual Scripting's empty graph creation flow, or create a graph from a Script Machine or State Machine component.

Use the Project window

If you create a graph with the Project window, the graph is blank. It contains no starter nodes, and isn't attached to any existing components in your project.

For more information on the Unity Editor's Project window, see The Project window in the Unity User Manual.

Use the empty graph creation flow

If you use the empty graph creation flow, you have a few options for how to create your graph:

For more information about GameObjects, see GameObjects in the User Manual.

Any graph you create with the empty graph creation flow contains one or two initial nodes to help you get started with your graph.

[!TIP] To keep your project organized, place your Visual Scripting graphs in a Graphs folder inside your project's Assets folder.

Use a Script Machine or State Machine

You can also create a blank graph file directly on the Script Machine or State Machine component where you want to use it. For more information, see Create a graph on a Script Machine or State Machine.