Troubleshooting
Fixing broken projects and common errors.
-

NullReferenceException in Unity: How to Find It, Fix It and Stop It
Fix NullReferenceException in Unity: read the stack trace, find the null, fix the 9 common causes, handle destroyed objects, and debug build-only nulls.
-

OnTriggerEnter Not Working in Unity? 12-Point Checklist (3D and OnTriggerEnter2D)
OnTriggerEnter or OnTriggerEnter2D not firing? Quick answer plus a 12-point checklist: Rigidbodies, Is Trigger, 2D/3D mix-ups, layers and kinematic bodies.
-

Unity Error CS0246, CS0103, CS1061: What They Mean and How to Fix Them
error CS0246: type or namespace could not be found? Fix it, plus CS0103, CS1061, CS0234, CS0117, CS0029 and CS0619 in Unity, with copy-paste fixes.
-

Pink Materials in Unity 6? How to Fix Magenta Materials in URP and HDRP
Fix pink or magenta materials in Unity 6: convert Built-in materials to URP or HDRP, repair custom shaders and Shader Graphs, and fix pink-only…
-

How to Optimize Unity WebGL Builds for Faster Load Times (Unity 6)
Shrink Unity WebGL builds and load them faster: Brotli with correct server headers, code stripping, texture and audio settings, Addressables and caching.
-

Unity Editor Scripting Tutorial: Custom Editors, EditorGUILayout and Tools
Unity editor scripting in Unity 6: custom editor scripts, EditorGUILayout, #if UNITY_EDITOR, OnValidate, MenuItems, property drawers and editor windows.
-

Git for Unity: Copy-Paste .gitignore and .gitattributes, LFS and Smart Merge
Copy-paste Unity .gitignore and .gitattributes files, then set up Git LFS and UnityYAMLMerge. Plus fixes for the 100 MB limit and lost .meta files.
-

Unity Input System Tutorial: A Beginner’s Guide for Unity 6
Learn Unity’s Input System in Unity 6: project-wide actions, reading input in C#, PlayerInput, saved rebinding, and fixes for the most common errors.
-

“The Referenced Script on This Behaviour Is Missing”: Fix Missing Scripts in Unity
Fix “The referenced script on this Behaviour is missing” in Unity: find missing scripts in every scene and prefab, restore the GUID, bulk-remove the…