Resetting Scriptable Objects - Unity Playmode

Published: 24 January 2024
on channel: One Wheel Studio
2,676
147

🕹️Steam Wishlist: https://store.steampowered.com/app/25...
✅🎮👉 Current Build on Itch: https://onewheelstudio.itch.io/hex-game

Scriptable objects are a useful tool in the Unity game engine to hold static data. However, if you need to change data or values in a scriptable object at runtime things get a bit tricky. With lifecycle functions like OnEnable and OnDisable or using the NonSerialized attribute we can solve those problems.

Support the Channel!
**********************
► Buy me a coffee: https://www.buymeacoffee.com/onewheel...
► Shop the Unity Asset Store (affiliate): https://assetstore.unity.com/top-asse...
► Become A Channel Member:    / @onewheelstudio  
► Or a Patron:   / onewheelstudio  
► My video and streaming kit: https://kit.co/onewheelstudio/tutoria...
► Buy a Game Design Book: https://kit.co/onewheelstudio/game-de...

Video Gear List (Amazon Affiliate)
***********************************
► Sony A6100 Camera: https://amzn.to/32logXz
► Sigma 16mm 1.4 Camera Lens: https://amzn.to/3KA4Wr4
► GoXLR (audio interface): https://amzn.to/35dmr03
► Shure SM7B Mic: https://amzn.to/3fNbV1E
► Blue Mic Arm: https://amzn.to/3tHgwdQ
Neewer Light: https://amzn.to/3rD8eRv
Light Softbox: https://amzn.to/3GUaHgQ
Neewer RGB Light: https://amzn.to/3rCTQJ9

Other Links
************
Discord: http://discord.onewheelstudio.com
Twitter:   / onewheelstudio  
Devlog: https://onewheelstudio.com/
Twitch:   / onewheelstudio  

Timestamps
*************
0:00 SOs are awesome, but...
0:34 Deep Space Directive
1:00 Change SOs at Runtime
2:39 Solution #1 - OnEnable & OnDisable
4:32 Solution #2 - NonSerialized Attribute (!!!)
5:36 THE END...
#GameDevelopment #Unity3D #indiedeveloper


Watch video Resetting Scriptable Objects - Unity Playmode online without registration, duration hours minute second in high quality. This video was added by user One Wheel Studio 24 January 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,676 once and liked it 147 people.