Introducing scripting
Through coding, we can extend Unity’s capabilities in several ways to achieve the exact behavior we need, all through a well-known programming language—C#. However, aside from C#, Unity also has visual scripting, a way to generate code through a node graph tool.
This means you can create scripts without writing code but by dragging nodes, boxes that represent actions that can be chained:
Figure 5.1: Example of a visual scripting graph
While essentially both ways can achieve the same result, we can use them for different things. Usually, the core logic of a game is written in C# due to it usually being huge and very performance-sensitive. However, sometimes using visual scripts instead allows non-programmer team members, like artists or game designers, to have more freedom to edit minor changes in the game, especially regarding balancing or visual effects.
Another example would be game designers prototyping ideas through visual...