MENU

Fun & Interesting

How to split up your scripts in Unity (the easy way)

Game Dev Beginner 5,777 lượt xem 3 months ago
Video Not Working? Fix It Now

Want to know how to CODE in Unity? Get it on Udemy here: https://www.udemy.com/course/how-to-code-in-unity/?referralCode=7D4BCF4F86A840FB720B

Video promo (Gumroad only): get 50% off https://gamedevbeginner.gumroad.com/l/how-to-code-in-unity/46ce63j (Limited to 100 customers)

---------------------------------------------------

00:00 Intro
01:22 What is Single Responsibility?
02:54 How to split up scripts
04:43 How to connect them together again
07:05 Outro

Have you ever wondered what should go in one script in Unity, and what should go in another? Is it ok to put everything in a few large scripts, or should you use single responsibility to split all of your logic out into smaller parts? And how do you decide what goes where?

CREDITS:
---------------------------------------------------

Music:

In the Atmosphere - Bad Snacks
New Year - Bad Snacks

Artist link: https://www.youtube.com/channel/UCBCI_QCAMe1hx8UNyvJlM_Q

Comment