Reusable Components with UI Toolkit | Editor Scripting Unity Tutorial

Published: 11 April 2023
on channel: LlamAcademy
12,666
330

This week you'll learn how to use UI Toolkit to create reusable components that encapsulate behaviors and interactions. We're creating a custom Visual Element for use in the Editor, but the same concept can be applied to runtime GUIs. Making reusable components reduces duplication of effort and unifies user interaction with your controls!

👨‍💻 As always, all code from this video is available on GitHub: https://github.com/llamacademy/script...

🏷️Save 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?sect...

📚 Resources:
⚫ UI Toolkit Reusable Components: https://docs.unity3d.com/Manual/UIE-e...
⚫ UI Toolkit Custom Inspector: https://docs.unity3d.com/Manual/UIE-H...
⚫ UI Toolkit Binding Best Practices: https://docs.unity3d.com/Manual/UIE-B...

🧡 Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
🌟 Patreon:   / llamacademy  
🌟 YouTube Member:    / @llamacademy   or click the Join button on any video
📚 Take my Unity ShaderGraph Course:
https://www.gamedev.tv/p/unity-shader...
👕 Get yourself some LlamAcademy merch: https://llamacademy.myspreadshop.com/
💸 Use my Affiliate Link for Humble Bundles https://humblebundleinc.sjv.io/9g4ak4
💸 Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! https://assetstore.unity.com/publishe... (affiliate)
💸 Save up to 50% on NEW Assets: https://assetstore.unity.com/?new_sal... (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 Topic Introduction
00:32 What we'll make
01:03 Create the Template with UXML
03:10 Create the backing class
04:43 Initialization Options
05:17 Property Binding (Editor Only)
06:00 Drag and Drop your control in the UI Builder
06:30 Support LlamAcademy


On this page of the site you can watch the video online Reusable Components with UI Toolkit | Editor Scripting Unity Tutorial with a duration of hours minute second in good quality, which was uploaded by the user LlamAcademy 11 April 2023, share the link with friends and acquaintances, this video has already been watched 12,666 times on youtube and it was liked by 330 viewers. Enjoy your viewing!