Shared Player Stats with Scriptable Objects ~ Unity GameDev 2023 @ChrisTutorialsYT
Shared Player Stats with Scriptable Objects ~ Unity GameDev 2023  @ChrisTutorialsYT
Uploaded January 2023 | Updated September 2026, 2 weeks ago
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 ➣ patreon.com/posts/76670129

➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
patreon.com/christutorials
chris-tutorials.itch.io
https://linktr.ee/ChrisTutorials

◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► 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
Shared Player Stats with Scriptable Objects ~ Unity GameDev 2023Enemy Attack AI and Animation States - 2D Platformer Crash Course in Unity 2022 (Part 14)How to Setup Blend Trees for Easy 4 Directional Movement in Unity 2022How to Import Tiled Maps FAST with Collisions and Sorting - SuperTiled2Unity TutorialBest Way to Pause Your Game using the Notification Trick ~ Godot 4.3 TutorialLevel Scene ~ Follow Camera, Adding Scene Objects, and Y-Sorting - Godot 4 TutorialGrid Building for Godot 4 Plugin Overview - How to Place Objects into your Game Levels!How to Setup Physics Collisions for Tilemaps ~ Godot 4.1 Tutorial for BeginnersSaving and Loading Objects Placed During Gameplay ~ Godot 4 Tutorial (Grid Builder Plugin)How to Make Magic Projectile Abilities ~ Platformer MEGA Tutorial for Godot 4.2Harvestable Resources and Pickup to Inventory ~ Making a Resource Gathering Game in Unity ~ Part 13Damageable Enemies, Hitboxes, & Hurtboxes - 1 Bit Platformer [Part 5] - Godot 4.3 Series
Chris Tutorials |

Shared Player Stats with Scriptable Objects ~ Unity GameDev 2023

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER