Get started with programming in Unity
Create, name, and inspect your first Unity scripts, and learn the fundamental C# types that Unity provides.
Read time 1 minuteLast updated 3 days ago
Unity uses C# scripts to define the behavior of your application and to extend the Unity Editor. Understand how scripts work, learn what C# types are fundamental in Unity, and follow programming best practices to implement functionality to your application. Create scripts with appropriate names and use them alongside the window.
Inspector
?
To set up your code editor and other development tools, refer to Environment setup.
Topic | Description |
|---|---|
| Introduction to programming in Unity | Understand the role of scripting in your project and how it works at a high level. |
| Script file names and namespaces | Understand how Unity matches script file names to class names, and use namespaces to prevent class name conflicts. |
| Create scripts | Create C# script assets from the Editor to add custom functionality to your application. |
| Scripts in the Inspector window | View script assets in the Inspector window and edit the fields of your script components. |
| Migrate from InstanceID to EntityId | Update code that uses |
| Unity programming best practices | Learn key issues to be aware of when writing code for Unity applications, along with best practices to help you avoid common pitfalls. |
| Unity scripting types | Understand some of the fundamental C# types that Unity provides and their special significance and behavior in the Unity Editor and runtime. |
Additional resources
- Environment setup
- Control when your code updates
- Beginner Scripting (Unity Learn)
- Intermediate Scripting (Unity Learn)