A project for extending Unity Visual Scripting with custom nodes.
Development is open to the community.
Note: This method requires Git installed on your computer.
If you don't have it, please install it - Windows / Mac, easiest is to install Github Desktop, or install the MacOs command line tools.
-
Open your Unity project.
-
New projects should first initialize the build in Unity Visual Scripting package:
Edit > Project Settings > Visual Scripting > Initialize button.
The Unity.VisualScripting.Generated folder should be created in the projects Assets. -
Open the Unity Package Manager: Window > Package Manager.
-
Click the "+" button in the top-left corner, and choose to install from Git.
-
Add the following url and hit the Install button.
-
Refresh the visual scripting library: Edit > Project Settings > Visual Scripting > Press the Regenerate Nodes button.
-
That's it! The new nodes will be available for use.
- Add a visual script to any Game Object (Add Component > Script Machine).
- In the script graph add new node: Right click visual script canvas > Add Node.
- New nodes will be found under the More category.
Variables
- Variable Add
- Variable Subtract
- Variable Divide
- Variable Multiply
Physics
- Move Position X
- Move Position Y
- Translate
- On Collision Enter 2D
- On Collision Stay 2D
- On Collision Exit 2D
- On Trigger Enter 2D
- On Trigger Stay 2D
- On Trigger Exit 2D
Collections
- Random Item : Optionally preventing repeats
- Next Item
Control
- If (Number / String / Boolean) : Simplified for basic conditions, with optional else.
Math
- Counter : With optional custom step
- Confine
Time
- StopWatch
- Format Time
Other
- Get Position : Get X, Y and Z directly and not a Vector3
- Get Mouse Position 2D : Get Vector2 mouse position in world space units
- Debug Log : With string text field for input
