Delegates? Basically, UnityEvents. But Cooler | Unity C# Basics Part 5 #Shorts @LlamAcademy
Delegates? Basically, UnityEvents. But Cooler | Unity C# Basics Part 5 #Shorts  @LlamAcademy
Uploaded June 2022 | Updated September 2026, 2 hours ago
Full Tutorial: youtu.be/1N6k7Hj_JKc

Learn about what delegates are, when to use them, compare their functionality with a UnityEvent, and when you should use a UnityEvent over a delegate! In this video we'll be covering all of that and implementing our first delegate so we can raise an event when our AutoDestroyText is destroyed!

If you've been using Unity for a while, or are just getting started with Unity and decided it's time for you to start learning how to write code - this is the video series you need to start your programming journey!

As always! The full project code is available GitHub: github.com/llamacademy/unity-csharp-basics-5

Want the previous episodes?
⚫ Part 1 - youtu.be/SXaa61JWLDw
⚫ Part 2 - youtu.be/MB6B9nHSrps
⚫ Part 3 - youtu.be/TD3yoFg3GVI
⚫ Part 4 - youtu.be/JRRlAzBh-6U
⚫ Part 5 - You are here!


📝📝📝YOUR HOMEWORK!📝📝📝

Update your singleton MonoBehaviour to raise events when it spawns an object and when that object is destroyed! For the simplest implementation you can just do a Debug.Log but think about the signature of the event so you can apply it to your game!

Add a comment below with a video showing your code and the end result.

📚 Here are the resources I mentioned and/or brought up during the video 📚
⚫ Delegates: docs.microsoft.com/en-us/dotnet/csharp/programming-guide/delegates
⚫ Using Delegates: docs.microsoft.com/en-us/dotnet/csharp/programming-guide/delegates/using-delegates
⚫ Unity Events: docs.unity3d.com/ScriptReference/Events.UnityEvent.htm
⚫ Singleton: en.wikipedia.org/wiki/Singleton_pattern

----
Believe in LlamAcademy's mission and have received value from the videos? Consider becoming a Patreon supporter: patreon.com/llamacademy
----
Most tutorials come from knowledge gained making https://survival.llama.software Llama Survival - a top-down zombie survival shooter for Android and iOS.
I also have some Unity Assets (affiliate link): assetstore.unity.com/publishers/22409?_aid=1101l9QvC

#unitytutorial #tutorialtuesday #gamedev #tutorial #unity #llamacademy #gamedevelopment #learntocode
Delegates? Basically, UnityEvents. But Cooler | Unity C# Basics Part 5 #ShortsDevelopers Guide to Releasing a Unity Game on Google PlaySimplify Your Code with InterfacesHow to Avoid Ghost Collisions | Unity TutorialWhen SHOULD YOU Use UI Scale Mode: Constant Pixel Size?Shooting, Simple Spread, and Bullet Trails in a ScriptableObject-Based Gun System #shortsBetter Enemy Chasing with Intercept Courses | AI Series 44 | Unity Tutorial #shortsBake Your Animations to Greatly Improve Performance...For Some Use Cases | Unity TutorialAdvanced Lerping | Unity Tutorial #ShortsUnity Scene Transition Animation Framework | Unity Tutorial #shortsEnemy Behavior Tree AI FULL IMPLEMENTATION (AI Tree) | AI Series 48 | Unity TutorialWhy New WRITING CODE is a CRITICAL SKILL for Game Devs
LlamAcademy |

Delegates? Basically, UnityEvents. But Cooler | Unity C# Basics Part 5 #Shorts

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER