Unity How to use ScriptableObjects for handling Game State - Tutorial

Uploaded by CouchFerret makes Games
Share: Twitter Facebook
We're gonna talk about how to use ScriptableObjects to handle Game State. We'll create a ScriptableObject that contains a Game Time variable and then we'll display that Game Time variable on the UI in a decoupled way. So no GameObject.Find and GetComponent function calls are needed. We'll also use TimeSpans to format our Game Time in a digital clock style. ScriptableObject is an awesome tool to develop organized code and it's native in Unity, so you'll get all the benefits.

● Unity's FPS Microgame and its mods: http://bit.ly/fps-mg-cf

● Brackeys' tutorial on ScriptableObjects: https://www.youtube.com/watch?v=aPXvoWVabPY

● Roman Papush: https://www.youtube.com/channel/UCS5L-xwBuiWmtRIzCw1VemQ

● Code Monkey: https://www.youtube.com/channel/UCFK6NCbuCIVzA6Yj1G_ZqCg


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

● Join my Discord Server: https://discord.gg/dac7sr2

● Tweet me on Twitter: https://twitter.com/couchferret

● Follow me on Instagram: https://www.instagram.com/couchferret

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


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.

#Unity #UnityTutorial #gamedev