Basic concepts in visual scripting
| Note |
|---|
| For versions 2019/2020 LTS, download the visual scripting solution from the Unity Asset Store. |
There are four basic concepts in visual scripting that are used when building games.
Type
Type is an attribute of data which informs the compiler on how to use the data. In scripting, everything is an Object: numbers, pieces of text, vectors, and Unity components are all objects.
Variable
Variables are containers to store values and data. Each variable has a name, a type, and a value. The value inside a variable can change during runtime.
Graphs, states and machines
Graphs are visual representations of logic. They're at the core of visual scripting.
Groups
Create groups to organize the graph. Groups are boxes that surround units.