HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

Unity How to structure your code with UnityEvents - Tutorial

15,270 views October 26, 2019 18:13

Watch on YouTube
ChannelCouchFerret makes Games

Description from the creator

We're gonna talk about how to structure your code with UnityEvents so it won't become a huge spaghetti. First, we'll look into the disadvantages of using GameObject.Find and GetComponent function calls. Then I'll explain how Events work and how they make the code more flexible and cleaner. We'll cover topics like code dependency and tightly coupled code.

Gamedev channels mentioned:

Blackthornprod: youtube.com/channel/UC9Z1XWw1kmnvOOFsj6Bzy2g
Brackeys: youtube.com/channel/UCYbK_tjZ2OrIZFBvU6CCMiA
Dani: youtube.com/channel/UCIabPXjvT5BVTxRDPCBBOOQ
Jonas Tyroller: youtube.com/channel/UC_p_9arduPuxM8DHTGIuSOg
Sebastian Lague: youtube.com/channel/UCmtyQOKKmrMVaKuRXz02jbQ
Sykoo: youtube.com/channel/UCNJvwJ6daLmw4_gUKTw4cSg
ThinMatrix: youtube.com/channel/UCUkRj4qoT1bsWpE_C8lZYoQ
Thomas Brush: youtube.com/channel/UCuHVjteDW9tCb8QqMrtGvwQ

Are you interested in making games with Unity?

I upload frequently, so stay tuned and consider subscribing!

Hi, I'm CouchFerret and follow me on my journey of indie game development. You will find in depth tutorials about developing games in Unity. We will cover topics from programming to art and game design. Whether you are an expert or beginner, you will definitely find new tips and tricks about the whole game development process. These how to videos help you learn unity to develop 2d and 3d games on your own.

● Sprites and Project Files on Patreon: patreon.com/CouchFerret

● Join my Discord Server: discord.gg/dac7sr2

● Tweet me on Twitter: twitter.com/couchferret

● Follow me on Instagram: instagram.com/couchferret

● Like me on Facebook: facebook.com/couchferret/


#Unity #UnityTutorial #gamedev

About this tutorial

CouchFerret makes Games published this 18:13 video tutorial on October 26, 2019. It has been watched 15,270 times on YouTube.

Category
Education
Duration
18:13
Published
October 26, 2019
Views
15,270
Likes
599

Tags

Share

Further reading

  • Unity - Manual: UnityEvents docs.unity3d.com

    UnityEvents can be added to any MonoBehaviour and are executed from code like a standard .net delegate. When a UnityEvent is added to a MonoBehaviour it appears in the Inspector A Unity window that displays information…

  • Unity - Scripting API: UnityEvent docs.unity3d.com

    For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation. Please <a>try again</a> in…

  • Create with Code - Unity Learn learn.unity.com

    In this official course from Unity, you will learn to Create with Code as you program your own exciting projects from scratch in C#. As you iterate with prototypes, tackle programming challenges, complete quizzes, and d…

This tutorial in other languages