Chapter 14: Introduction to C# and Visual Scripting

Unity has a lot of great built-in tools to solve the most common problems in game development, such as the ones we have seen so far. Even two games of the same genre have their own little differences that make the game unique, and Unity cannot foresee that, so that's why we have scripting. Through coding, we can extend Unity's capabilities in several ways to achieve the exact behavior we need, all through a well-known language—C#. But aside from C#, Unity recently introduced Visual Scripting, a way to generate the scripts through a node graph tool, similar to the Shader Graphs we created in previous chapters. This means that you can create scripts without writing code but dragging Nodes, boxes ...

Get Hands-On Unity 2021 Game Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.