Have you been struggling to find a nice way to share some data between your Unity scenes? Using Scriptable Objects, you can have data persist between scene changes. But, there are a few important things to take into account, so stick around until the end.
Note: This isn't a replacement for saving data to a file. This data will only survive in memory and won't be permanently saved.
#Unity #Unity2D #gamedev
Chapters
00:00 Intro
00:12 Let's start!
00:25 Create a scriptable object
02:55 Use the scriptable object
04:00 Save to the scriptable object
06:30 Use the saved data to update the scene
08:00 Potential bug: not setting defaults
08:22 How to set default values
09:27 Conclusion
Shop
💵 Budget Planner: https://restfulcoder.etsy.com/listing...
Social
🌍 Website: https://restfulcoder.com/
💬 Discord: / discord
📷 Instagram: / restfulcoder
🐦Twitter: / restfulcoder
📱 Tiktok: / restfulcoder