Instantiate UI Elements at Runtime - Unity 2022 UI Toolkit Tutorial
Chris' Tutorials
0:00 / 0:00
Instantiate UI Elements at Runtime - Unity 2022 UI Toolkit Tutorial
15 970 просмотров · 3 года назад
Chris' Tutorials
130 тыс. подписчиков
15 970 просмотров · 3 года назад
Learn how to create buttons at runtime based on inventory item data. This tutorial uses UI Toolkit with Scriptable objects to create a dynamic UI based on what is loaded at runtime applied to a visualtreeasset template in Unity 2022.
Scripts and Assets ➣ / ui-toolkit-76314316
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
/ christutorials
https://chris-tutorials.itch.io/
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► https://www.skillshare.com/r/user/chr...
Save Money Shopping Online with Honey Extension ►► https://joinhoney.com/ref/qd04c25
00:00 - What to Expect
00:19 - Creating Inventory Container
01:56 - Button Template
03:14 - Creating Inventory Game Object
04:55 - Instantiate Inventory Slot Buttons at Runtime
07:36 - Item Scriptable Object
09:52 - Generating InventorySlots at Runtime
13:10 - Testing Inventory Slots
14:12 - Load Item Icons into Buttons
15:09 - Wrapup