Getting started
Unity Package Types
World Building
Economy
Scripting
Guidelines
Support
Lets Super Jump
In this guide we are going to make a simple script that gives our player a super jump. We will go over all the absolute basics of Visual Scripting along the way

Creating Your First Script
The Script Graph Asset
A script graph can be created through the create asset menu:
Once the asset is created you can double click it to open the graph editor window. This is where you define what the script does. But just creating a script will not do anything by itself, we need to attach this script to a GameObject.
The Script Machine Component
In order to attach our script to a GameObject we need to add the Script Machine
component.
Once we add the Script Machine
component we can drag our Script Graph
into the empty slot. This “links” our script to the GameObject. Any code in our script will now execute from the context of our GameObject.

Writing Code with Nodes
Now that everything is set up we can begin defining the function of our script with nodes. We want this script to:
1.Increase the jump height of the player
2.play a particle effect when they jump
In order to execute code when “the player jumps” we can use the On Jump
event node.
In order to actually create a node Right Click anywhere on the canvas an choose Add Node. This will open the node “fuzzy finder” which you can use to search for node we want.
In this case we can to create the On Jump
event node, then connect it to the spatial Local Actor: add Force
node.
.gif?w=600)
← Previous
Add link here
Next →
Add link here