playtest-unity/playtest/Library/PackageCache/com.unity.visualscripting@1.../Documentation~/vs-add-remove-node-library.md

2.2 KiB

Add or remove available nodes

Visual Scripting has a set of default assemblies and generated nodes for Unity features. Add more assemblies through the Visual Scripting Node Library in your Project Settings. Assemblies are special files that contain the code for the feature you want to use.

Visual Scripting can generate nodes from assemblies in packages and third-party assets. To use a new package or third-party asset in Visual Scripting, you must import it into Unity. For more information on how to add packages to Unity, see Adding and removing in the Unity User Manual. For more information on how to add third-party assets to Unity, see Importing assets in the User Manual.

Add assemblies and nodes to the Node Library

To add a new assembly and its nodes to the Node Library:

  1. [!includeopen-project-settings]
  2. Select Visual Scripting.
  3. Expand Node Library.
  4. At the end of the assemblies list, select Add (+).
  5. In the new assembly entry, select (No Assembly) to open the Assembly menu.
  6. Select an available assembly from the Assembly menu.

Visual Scripting adds the assembly and its nodes to the Node Library. To use the nodes in your project, add their types to your Type Options and regenerate the Node Library.

Remove assemblies and nodes from the Node Library

To remove an assembly and its nodes from your Node Library:

  1. [!includeopen-project-settings]
  2. Select Visual Scripting.
  3. Expand Node Library.
  4. In the assemblies list, locate the entry for the assembly you want to remove.
  5. Select Remove (-).

Visual Scripting removes the assembly and its nodes from the Node Library. To remove the nodes from the fuzzy finder and your project, regenerate the Node Library. You might also want to remove their types from your Type Options.