Version: Unity 6.0 (6000.0)
Language : English
Gameplay programming
Introduction to programming in Unity

Get started with programming in Unity

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 Inspector window.

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.
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

Gameplay programming
Introduction to programming in Unity