Skip to content

Latest commit

 

History

History
86 lines (59 loc) · 2.5 KB

File metadata and controls

86 lines (59 loc) · 2.5 KB

Unity Visual Scripting More

A project for extending Unity Visual Scripting with custom nodes.
Development is open to the community.


Installing

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.

  1. Open your Unity project.

  2. 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.

  3. Open the Unity Package Manager: Window > Package Manager.

  4. Click the "+" button in the top-left corner, and choose to install from Git.

    Add package Screenshot

  5. Add the following url and hit the Install button.

    https://github.com/danibacon/Unity-VisualScripting-More.git

  6. Refresh the visual scripting library: Edit > Project Settings > Visual Scripting > Press the Regenerate Nodes button.

  7. That's it! The new nodes will be available for use.


Adding the new nodes

  1. Add a visual script to any Game Object (Add Component > Script Machine).
  2. In the script graph add new node: Right click visual script canvas > Add Node.
  3. New nodes will be found under the More category.

What's included

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

Maintainers