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
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










![Damageable Enemies, Hitboxes, & Hurtboxes - 1 Bit Platformer [Part 5] - Godot 4.3 Series
Make an enemy that can be hit by projectiles by using hitboxes and hurtboxes to change the current health value on the enemy.
Project Downloads ~ Snapshot at Each Videos End
Ko-fi ➣ https://ko-fi.com/post/Project-1-Bit-Projectile-Platformer-Tutorial-Ser-U7U510EBNX
Patreon ➣ https://www.patreon.com/posts/107952055
Itch.io ➣ https://chris-tutorials.itch.io/1-bit-platformer-tutorial-project
Assets & Credits ➣ https://pastebin.com/qa4NiTyu
Grid Building Plugin ➣ https://linktr.ee/gridbuilder
World Time Plugin ➣ https://linktr.ee/worldtimeplugin
Item Drops Plugin ➣ https://linktr.ee/itemdrops
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://linktr.ee/ChrisTutorials
https://ko-fi.com/christutorials
https://patreon.com/christutorials
https://chris-tutorials.itch.io/
➣ Support Channel with Crypto Donations
https://pastebin.com/WAnBPcXs
00:00 - What to Expect
01:02 - Projectile Collision Mask
03:41 - Projectile Gravity Scale
04:18 - Create an Attackable Enemy
07:06 - Making a Hurtbox Area2D
10:02 - Hurtbox and Stats Scripts
18:18 - Hitbox2D Script
20:51 - Add Weapon Stats to Hitbox
22:41 - Sharing Weapon Stats
26:10 - Testing Hit Enemies with Projectiles
29:04 - Wrapup Damageable Enemies, Hitboxes, & Hurtboxes - 1 Bit Platformer [Part 5] - Godot 4.3 Series](https://i.ytimg.com/vi/mezwctNM4gk/mqdefault.jpg)