Unity and game development
↑This section collects Unity and C# notes with explanations that can be understood without launching an editor.
Topics to document
Section titled “Topics to document”- Game loops and the role of
UpdateversusFixedUpdate - Working with
MonoBehaviourand components - Choosing data structures for runtime systems
- Separating core algorithms from Unity scene objects
- Save data and persistence
Example: keep core logic independent
Section titled “Example: keep core logic independent”public static int GetHighestScore(IEnumerable<int> scores){ return scores.Max();}Keeping algorithms independent of Unity APIs makes them easier to unit test and reuse.
Start with these guides
Section titled “Start with these guides”- Unity script lifecycle: when
Awake,Update,FixedUpdateandLateUpdaterun, and which tasks belong in each. - Rigidbody and movement: choosing a physics-friendly way to move an object.
- Collisions and triggers: signatures, prerequisites and troubleshooting for contact events.
- Editor-only compilation: the difference between
#if UNITY_EDITORand editor assemblies. - Namespaces and assembly definitions: separating large codebases into understandable modules.
A sensible learning order
Section titled “A sensible learning order”Read the lifecycle notes first so that FixedUpdate and input timing make sense. Then look at physics movement, followed by collision callbacks. Once the runtime behavior is clear, the C# and assembly guides help you organize larger projects without tying every gameplay class to Unity itself.
Unity attributes
Section titled “Unity attributes”Use the Unity attributes reference to find Inspector, serialization, component, Editor and Jobs/Burst attributes. It includes practical C# examples, requirements and a comparison guide to avoid mixing up similar annotations.
Unity 6.6 learning paths
Section titled “Unity 6.6 learning paths”Core concepts: Scenes and GameObjects → Hierarchy and Transforms → Prefabs.
Rendering: Materials → Shaders → Shader Graph → Writing URP shaders → Shader optimization.
From project to player: Build fundamentals → Build Profiles → Build from Editor → Clean and development builds → Build output → Command-line builds →.
These lessons explain not only the interface steps, but also what Unity creates, why the settings matter and which changes to test in a real player. They link to the official Unity 6.6 manual for version-specific details.
