Загрузка страницы

Shared Player Stats with Scriptable Objects ~ Unity GameDev 2023

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

Видео Shared Player Stats with Scriptable Objects ~ Unity GameDev 2023 канала Chris' Tutorials
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
3 января 2023 г. 11:46:13
00:08:25
Другие видео канала
Setup Guide for Platformer Crash Course Template Project for Unity 2D GameDevSetup Guide for Platformer Crash Course Template Project for Unity 2D GameDevMaking a Grid Building and Targeting System for Godot 4 - DevLog #1Making a Grid Building and Targeting System for Godot 4 - DevLog #1How to Setup Physics Collisions for Tilemaps ~ Godot 4.1 Tutorial for BeginnersHow to Setup Physics Collisions for Tilemaps ~ Godot 4.1 Tutorial for BeginnersTerrain Autotiling and Alternative Tiles ~ Godot 4 Tutorial for BeginnersTerrain Autotiling and Alternative Tiles ~ Godot 4 Tutorial for BeginnersHow to Use 2D Lights in Godot 4 ~ Tutorial for BeginnersHow to Use 2D Lights in Godot 4 ~ Tutorial for BeginnersMake Enemy Jump Over Pits and Walls ~ Godot 4 Platformer TutorialMake Enemy Jump Over Pits and Walls ~ Godot 4 Platformer TutorialCrash Course ~ How to Make a Resource Gathering Game in Godot 4!Crash Course ~ How to Make a Resource Gathering Game in Godot 4!Particle Explosion Effect on Resource Node Depletion - Godot 4 TutorialParticle Explosion Effect on Resource Node Depletion - Godot 4 TutorialMaking a Hotbar for Switching Player's Equipped Tool or Weapon - Godot 4 Resource Gathering TutorialMaking a Hotbar for Switching Player's Equipped Tool or Weapon - Godot 4 Resource Gathering TutorialMaking a Inventory Resources Count HUD - Godot 4 Resource Gathering TutorialMaking a Inventory Resources Count HUD - Godot 4 Resource Gathering TutorialItem Pickups and Adding Items to Inventory - Godot 4 Resource Gathering TutorialItem Pickups and Adding Items to Inventory - Godot 4 Resource Gathering TutorialGameplay Interaction by Equipment and Effectible Object Types - Godot 4 Resource Gathering TutorialGameplay Interaction by Equipment and Effectible Object Types - Godot 4 Resource Gathering TutorialEquip Items and Auto Update Sprites with @tool - Godot 4 Resource Gathering TutorialEquip Items and Auto Update Sprites with @tool - Godot 4 Resource Gathering TutorialAnimation Tree State Machine Setup w/ Conditions & BlendSpace2D - Godot 4 Resource Gatherer TutorialAnimation Tree State Machine Setup w/ Conditions & BlendSpace2D - Godot 4 Resource Gatherer Tutorial4 Directional Player Animations & Sprite Sorting in 2D Animations ~ Godot 4 Tutorial4 Directional Player Animations & Sprite Sorting in 2D Animations ~ Godot 4 TutorialLevel Scene ~ Follow Camera, Adding Scene Objects, and Y-Sorting - Godot 4 TutorialLevel Scene ~ Follow Camera, Adding Scene Objects, and Y-Sorting - Godot 4 TutorialMaking a Player Character with Animations, Movement, and Collisions ~ Godot 4 TutorialMaking a Player Character with Animations, Movement, and Collisions ~ Godot 4 TutorialMaking a Resource Gathering RPG in Godot 4 ~ GameDev Tutorial Series IntroMaking a Resource Gathering RPG in Godot 4 ~ GameDev Tutorial Series IntroBasic Theme Setup Guide ~ Godot 4 Tutorial for BeginnersBasic Theme Setup Guide ~ Godot 4 Tutorial for BeginnersMoving Platforms, One Way Collisions, and How to Drop Under Platforms ~ Godot 4 Platformer TutorialMoving Platforms, One Way Collisions, and How to Drop Under Platforms ~ Godot 4 Platformer TutorialHow to Make a Pause Game Menu & Pause the Game ~ Godot 4 TutorialHow to Make a Pause Game Menu & Pause the Game ~ Godot 4 Tutorial
Яндекс.Метрика