Skip to content

MinaPecheux/UnityTutorials-EventsAndBroadcasting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[Unity/C#] Events & Broadcasting

Mina Pêcheux - July 2021

How can we use Unity's built-in events and actions to implement a simple broadcast messaging system? Let's discover more in this 30 minutes-tutorial: "How to use events to implement a messaging system in 30 minutes".

It's available in text/video format: you can read it on Medium or watch it on Youtube.

thumbnail

In this tutorial, I'm discussing the power of events for decoupling your game systems and better organising projects. We're looking at the emitters and receivers system (with one or multiple event types), at how to convey data with your events and at how to react differently to the same event depending on the listener.

This Github repo contains the code that is written throughout the tutorial:

  • the main EventManager C# class
  • a test emitter that triggers events on left- or right-mouse buttons click
  • some test listeners that react differently to those events

demo

About

The code for a short tutorial on Unity events and how to use them to make a broadcast messaging system and decouple systems in Unity/C# (in text or video format).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages