Uploaded December 2022 | Updated September 2026, 2 weeks ago
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 ➣ patreon.com/posts/ui-toolkit-76314316
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
patreon.com/christutorials
chris-tutorials.itch.io
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► 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
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 ➣ patreon.com/posts/ui-toolkit-76314316
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
patreon.com/christutorials
chris-tutorials.itch.io
https://linktr.ee/ChrisTutorials
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► 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










