Learn how and why to use scriptable objects for developing your Unity 2d or 3d video games.
1 year, 4 months ago
1 year, 4 months ago
SHOW MORE
An error has occurred whilst processing your request!
If the issue persists, then please contact us at [email protected].
This advertisement has been selected by the video's creator, .
This advertisement has been selected by BitChute. Displaying these adverts helps support the growth and sustainability of the platform.
This advertisement has been sourced through third-party advertising partners on behalf of BitChute. Displaying these adverts helps support the growth and sustainability of the platform.
For more information on how BitChute processes your data, and to learn how to opt out of advertising, see our Privacy Policy.
Learn how and why to use scriptable objects for developing your Unity 2d or 3d video games.
Starting a new game with easy, normal, hard mode difficulties by using scriptable objects to store settings for each mode in Unity.
Scripts and Assets ➣ https://www.patreon.com/posts/76670129
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:17 - Demonstration
02:19 - Code - Game Settings Scriptable Object
03:35 - Code - Game Loader
04:38 - Review of How It Works
06:01 - Wrapup
Overview of the differences between Scriptable Objects and GameObject MonoBehaviour scripts in Unity. The advantages and use cases of both compared for beginners.
Scripts and Assets ➣ https://www.patreon.com/posts/76670129
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:08 - Game Objects in Scene Hierarchy
00:48 - Creating GameObject Component vs Scriptable Object
02:57 - Prefab vs Scriptable Object Asset
04:24 - GameObjects Reset Data Each Time Game / Scene Loads
06:36 - Scriptable Object Data Persistence
08:03 - Instancing Scriptable Objects Unique to Each Session
10:28 - Reusing Scriptable Object Across Different Objects & Scenes
11:17 - Protecting Scriptable Object Data from Change
14:56 - Unity Lifecycle for MonoBehaviours vs ScriptableObjects
17:02 - Coroutines and MonoBehaviours
19:48 - Comparison Wrapup
Demo of how to share scriptable object runtime data between 4 different MonoBehaviour scripts. The scripts know nothing about each other, only about the scriptable objects so they are decoupled from each other game object that depends on the scriptable object. Also the scriptable object persists between scenes so we don't need to worry about the data resetting between levels.
Scripts and Assets ➣ https://www.patreon.com/posts/76670129
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://www.patreon.com/christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:42 - Scriptable Object Data Persistence
01:23 - GameObjects Interactions with Player Stats
01:53 - PlayerStats ScriptableObject C# Code
03:24 - UnityAction HealthChanged
04:35 - MonoBehaviours Setting and Reacting to Health Stat (C# Code)
06:35 - Benefits of Sharing Data Through Scriptable Objects
08:01 - Wrapup