C# playground
Pick a template and change it. The Inspector on the right rebuilds from your code as you type, the notes explain each important line, and Unity 6 API changes are flagged underneath. Nothing here compiles or runs: copy the script into Unity for that.
Basics
Physics
Intermediate
Architecture
Patterns
MyScript.cs
using UnityEngine;
public class MyScript : MonoBehaviour
{
void Start()
{
Debug.Log("Hello Unity!");
}
void Update()
{
// Your code here — runs every frame
}
}
Inspector
Script MyScript
No serialized fields. This is a static helper or a base class: you call it from code rather than configure it in the Inspector.
Notes