You're Not Using C# Events To Their Full Potential

Опубликовано: 21 Июль 2026
на канале: Gamedev Engine Room
2,635
152

C# events in Unity are more powerful than you think. Most developers never go beyond subscribe and unsubscribe. In this video, we explore C# event accessors - a feature that lets you control exactly how subscription works. We'll cover logging subscribers, delivering the last value on subscribe, replacing the backing event with a custom collection, and building fault-tolerant invocation that survives individual exceptions.

---
⚠️ JetBrains provided licenses for this giveaway, but they did not sponsor me, this video, or review its content.


🎁 JetBrains IDE Giveaway:

Throughout the video, look for the Rider logo — any text next to it is a hidden code.
Each code = one entry. More codes = better odds.

To enter:
1. Leave a meaningful comment under this video (required)
2. Email [email protected] with your YouTube username as the subject and all the codes you found in the body

⚠️ Entries with anything other than your username in the subject line or without a comment cannot be processed.

2 winners will be drawn one week after this video goes live. Every valid code puts your name in the pool once — find 5 codes, appear 5 times.

---

🔹 Links:
JetBrains: https://www.jetbrains.com/

🔸 Chapters:
00:00 Intro & Giveaway
00:59 Regular Events Setup
03:34 Custom Event Accessors
05:23 Value on Subscribe
06:14 Full Custom Invocation
09:28 Wrapping Up


#unity3d #gamedev #indiedev #csharp #gamedevtips #unitydev