Learn about a powerful feature in UI Toolkit - Data Binding. In this video we'll explore how to use the Data Binding feature in UI Toolkit for Runtime UIs to bind data to elements on the UI so they automatically update when the data changes. This helps limit code we have to write to synchronize data to the UI and streamlines our development process.
👨💻 As always, all code from this video is available on GitHub: https://github.com/llamacademy/uitk-runtime-data-binding
🏷️Save 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?section=personal&billing=yearly
📚 Resources:
⚫ UI Toolkit Official Runtime Binding Documentation: https://docs.unity3d.com/6000.1/Documentation/Manual/UIE-data-binding.html
⚫ AI Series Playlist: https://www.youtube.com/playlist?list=PLllNmP7eq6TSkwDN8OO0E8S6CWybSE_xC
⚫ How to Localize Your Game with the Unity Localization Package:
https://youtu.be/fHPaG5C6P1M
⚫ How to use UI Toolkit Templates:
https://youtu.be/AztVXrKGBrw
🧡 Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
🌟 Patreon: https://www.patreon.com/llamacademy
🌟 YouTube Member: https://www.youtube.com/channel/UCnWm6pMD38R1E2vCAByGb6w/join or click the Join button on any video
📚 Take my new Real Time Strategy Course: https://www.gamedev.tv/courses/unity-realtime-strategy?ref=mjuzyjq
📚 Take my Unity ShaderGraph Course:
https://www.gamedev.tv/p/unity-shader-graph?ref=mjuzyjq
👕 Get yourself some LlamAcademy merch: https://llamacademy.myspreadshop.com/
💸 Use my Affiliate Link for Humble Bundles https://humblebundleinc.sjv.io/Xm2M95
💸 Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! https://assetstore.unity.com/publisher-sale?aid=1101l9QvC (affiliate)
💸 Save up to 50% on NEW Assets: https://assetstore.unity.com/?new_sale=true&orderBy=1&aid=1101l9QvC (affiliate)
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.
Chapters:
00:00 Introduction
01:03 What is Data Binding?
01:52 Data Structure
03:18 Data Binding in UI Builder
05:51 Data Binding Directly with UXML
08:00 Data Binding MonoBehaviours
09:58 Closing Thoughts & How to Support LlamAcademy