CLEAN Game Architecture with ScriptableObjects | Unity Tutorial

Subscribers:
59,700
Published on ● Video Link: https://www.youtube.com/watch?v=wzPputN4Ts4



Duration: 13:12
13,924 views
669


Show your Support & Get Exclusive Benefits on Patreon (Including Access to this tutorial Source Files + Code) -   / sasquatchbgames  
Join our Discord Community! -   / discord  

--
I've long heard tales of how singletons are 'bad' - but for some time I didn't really understand why...
In this video, I'll exaplin why singletons have a bad rep (despite how easy they are to use) and one potential solution to help you keep your game's architecture CLEAN.
This approach should help you make a game that is:
- More modular
- Easier to edit things
- Easier to debug things

I hope you enjoy!

--
Timestamps:

00:00 - Intro
00:20 - The problem with Singletons
01:37 - Reading our Input from a ScriptableObject asset
04:39 -Replacing the movement code on our player
06:07 - Reading our Input (using a C# generated class) from a ScriptableObject
06:38 - Setting up an Audio Manager with NO references needed.
09:20 - Creating our sound object
10:30 - ScriptableObject Variables


Unite Austin 2017 - Game Architecture with Scriptable Objects
   • Unite Austin 2017 - Game Architecture...  

---
In need of more Unity Assets? Using our affiliate link is a great way to support us. We get a small cut that helps keep us up and running: https://assetstore.unity.com/?aid=110...
---
Looking for some awesome Gamedev merch? - https://sasquatchbgames.myspreadshop....
---

Who We Are-------------------------------------

If you're new to our channel, we're Brandon & Nikki from Sasquatch B Studios. We sold our house to start our game studio, and work full time on building our business and making our game, Veil of Maia.

Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!

Wishlist Samurado!
https://store.steampowered.com/app/23...

Follow us on Twitter for regular updates!
  / sasquatchbgames  

#unitytutorial #unity2d #unity3d







Tags:
unity
unity2d
unity tutorial
sasquatch b
game development
unity tips and tricks
unity tips for beginners
unity game architecture
unity game architecture best
ScriptableObjects
scriptable objects
scriptable object
singleton
unity singleton
unity scriptableObject
better data in unity
game architecture
unity clean code
unity why are singletons bad
unity singleton alternative
unity what are scriptable objects