C# Events and Delegates Explained (Action, Func, event) for Unity @GameDevBox
C# Events and Delegates Explained (Action, Func, event) for Unity  @GameDevBox
Uploaded November 2026 | Updated November 2026, 6 hours ago
❤️ My Health script used to hold a reference to the health bar, the hurt sound and the camera shake. Every new feature meant opening Health again. With C# events, Health just announces that it changed, and everything else listens. 📣

📚 In this video:
🧩 what a delegate is: a variable that stores a method
⚡ Action and Func, the ready-made delegate types
🔌 one event, many listeners with += and Invoke
🛡️ what the event keyword protects you from
👻 why you always unsubscribe in OnDisable

📂 Example code (console + Unity version):
github.com/GameDevBox/csharp-events-delegates

🎮 Wishlist Recursive Nightmare, my psychological horror game, on Steam:
store.steampowered.com/app/4987450/Recursive_Nightmare/?utm_source=youtube&utm_medium=description&utm_campaign=csharp_events_delegates

⏱️ Chapters
00:00 Health knows about everything
00:20 Delegates
00:40 Action and Func
01:00 One call, many listeners
01:20 Recursive Nightmare
01:29 The event keyword
01:51 Always unsubscribe
02:09 Recap

🎓 Part of the C# Patterns & Principles course on this channel.

#CSharp #Unity #GameDev
C# Events and Delegates Explained (Action, Func, event) for UnitySimple Ice Scene in Blender 3.5Simulating Rope Physics in Unity - Verlet RopeHow This Is AI 🥶#ai #musicDots Grid - 3D Grid And Mesh Space - Unity Visual Effect GraphSmooth Camera Movement in Unity3D [Part 1] [Unity Script]Easily Create your first Volumetric fog in Unity HDRP #unitydevelopmentThe dream you can’t wake up fromSpeed Art - Planet Earth Design - Adobe IllustratorGame Character Design , Speed Design Tutorial in Adobe IllustratorMagical Plasma Orb In Unity | HDRP | Shader Graph + VFX GraphBlendShapes Not Appearing In Unity - SkinnedMeshRenderer
Game Dev Box |

C# Events and Delegates Explained (Action, Func, event) for Unity

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER