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

Опубликовано: 17 Январь 2025
на канале: Game Dev Beginner
5,614
440

Want to know how to CODE in Unity? Get it on Udemy here: https://www.udemy.com/course/how-to-c...

Video promo (Gumroad only): get 50% off https://gamedevbeginner.gumroad.com/l... (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:    / @badsnacks