Scripting is an essential ingredient in all applications you make in Unity. Most applications need scripts to respond to input from the player and to arrange for events in the gameplay to happen when they should. Beyond that, scripts can be used to create graphical effects, control the physical behaviour of objects or even implement a custom AI system for characters in the game.
This section explains the main concepts that apply to scripting in Unity.
See the Unity Learn website’s Scripting section for tutorials on how to use scripting in Unity.
The Knowledge Base Editor section has troubleshooting, guidance on interpreting C# Compiler Errors and tips and tricks.
The Unity Forum also has common scripting questions and answers.