C# & Scripting
Writing and organizing Unity C# code.
-

Unity Hitscan Gun: Raycast Shooting, Recoil and Muzzle Flash
Make a hitscan weapon in Unity with raycast shooting, fire rate, spread, camera recoil, muzzle flash, impact effects and reloading.
-

Unity Ladder Climbing for 2D and 3D Characters
Add ladder climbing in Unity with trigger zones, gravity toggling, climb input, getting on and off at the top and climb animations.
-

Unity Coroutine Not Working? StartCoroutine and StopCoroutine Fixed
Fix coroutines that never run or never stop in Unity: inactive objects, StopCoroutine with the wrong reference, WaitForSeconds and timeScale.
-

Unity Multiple Save Slots: Save Files, Metadata and a Load Menu
Add multiple save slots in Unity: one JSON file per slot, metadata like playtime and date, a load menu, deleting and safe writes.
-

Unity Grid Building System: Snap, Preview and Place Objects
Make a grid building system in Unity: snap to grid with the mouse, a ghost preview, valid placement checks, rotation and occupancy data.
-

Unity Stamina and Sprint System With a Regenerating Bar
Build a sprint and stamina system in Unity: drain and regen with a delay, exhaustion lockout, a UI bar and hooks for dodges and…
-

Unity Floating Damage Numbers and World-Space UI Popups
Show floating damage numbers in Unity with world-space TextMeshPro, a pop and fade animation, critical hit styling and pooling.
-

Unity Error ‘Feature Is Not Available in C# 9.0’? C# Versions Explained
Fix ‘feature is not available in C# 9.0’ errors in Unity: which C# version Unity 6 supports, which newer features are missing and the…
-

Unity 2D Wall Jump and Wall Slide Tutorial
Add wall slide and wall jump to a Unity 2D platformer with wall checks, slide speed caps, jump-away force and input lockout.
-

Unity Quest System With ScriptableObjects: Objectives and Rewards
Build a simple quest system in Unity using ScriptableObject quest data, kill and collect objectives, events and a quest log UI.
-

Clicks Going Through Unity UI? Block Game Input Behind Buttons
Stop clicks passing through Unity UI into the game: IsPointerOverGameObject, Input System gotchas, Raycast Target and blocker panels.
-

Unity Knockback and Hit Reactions for 2D and 3D Characters
Add knockback in Unity with AddForce, a stun window that pauses input, CharacterController pushback, hit flash and hit stop.