Discover how to create scripts for 2D games in Unity. Learn how to create new scripts from scratch, expose public fields to the inspector, extend the MonoBehaviour class, and more.
- [Jesse] Hello, my name is Jesse Freeman and in Introduction to Unity 2D Scripting we're going to learn the basics of how to create scripts for 2D games. While the content of this course applies to any game made in Unity, we'll focus specifically on topics you'll need to know when coding your first Unity 2D game, such as creating scripts, exposing fields to the inspector, extending the MonoBehaviour class, and creating your own pure C# classes. We'll also cover some best practices for writing C# scripts in Unity, as well as how to debug 'em.
I hope you enjoy this course as much as I did making it, now let's get started.
- Creating a new project
- Using the IDE
- Creating C# scripts
- Creating GameObjects
- Creating public fields on your C# scripts
- Adding new scripts
- Talking to other scripts