Version: Unity 6 Preview (6000.0)
Language : English
Scripting
Integrated development environment (IDE) support

Get started

Get started with programming in Unity. Create, name, and edit your first scriptsA piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. More info
See in Glossary
and set up your development environment to write, test, and debug your Unity C# scripts effectively.

Topic Description
Integrated development environment (IDE) support Choose one of the major code editors with integrated support for Unity projects to use as the development environment for your scripts.
Create scripts Create scripts to add programmable functionality to your application.
Naming scripts Name your scripts to help the compiler identify your classes. Use namespaces to logically organize your scripts and prevent class name conflicts.
Inspecting scripts View and edit the fields of your C# scripts in the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
See in Glossary
window.
Null references Learn how to interpret, handle, and avoid null reference exceptions in your code.
Unity attributes Use attributes on classes, properties and methods in your scripts to add metadata to your program which determines special behavior at run time.
Debug C# code in Unity Track down bugs in your scripts by attaching external debuggers and stepping through your project code as it executes.
Stack trace logging Configure the level of stack trace information shown in Unity’s log files and console to help track down problems in your scripts.
Write and run tests Use the Unity Test Framework to write and run automated tests for your Unity C# code.
Roslyn analyzers and source generators Use analyzers to inspect your code for style, quality, and other issues.
Unity .NET features Learn about the specific details and limitations of Unity’s support for the .NET platform.
Scripting
Integrated development environment (IDE) support