Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Content


Hey!

In "Unite Austin 2017 - Game Architecture with Scriptable Objects" https://youtu.be/raQ3iHhE_Kk we see how SO can be used to do all kinds of stuff.

I honestly wasn't convinced about storing values in SO like current Health since we can apply more Event Driven solution and achieve exactly the same result. Still after giving this solution a shoot I can definitely see the benefit of SO and how those can help us to make our code more modular.

I hope that you will find this tutorial helpful :)


Here are the project files

https://drive.google.com/file/d/1D0r7ALR2FZgXQvzIZR5xmzCPnemLUzKg/view?usp=sharing

Files

Previews only

How Scriptable Objects can make your code more modular in Unity

For some time Unity has promoted Scriptable Objects as a solution for making the code more modular. In this video I want to show how and WHY we may want to use Scriptable Objects to store values that can be more easily shared with other scripts in Unity. This solution was shown in "Unite Austin 2017 - Game Architecture with Scriptable Objects" video https://youtu.be/raQ3iHhE_Kk Learn to write more maintainable code using Design patterns by making a 2d platformer game: https://courses.sunnyvalleystudio.com/ Project files: Scripts on github: https://github.com/SunnyValleyStudio/More-modular-code-using-scriptable-objects-unity-2021 Assets used: https://pixel-boy.itch.io/ninja-adventure-asset-pack Unity Open project: https://github.com/UnityTechnologies/open-project-1 Join the discord: https://discord.gg/RQEtYHz You can support me through Patreon: https://www.patreon.com/sunnyvalleystudio 00:00 Introduction 01:39 Rigid code problem 03:00 Solution #1 Events 05:50 Solution #2 Scriptable Objects 08:54 Benefits of using SO solution #ScriptableObject #unity2d #sunnyvalleystudio

Comments

No comments found for this post.