Instantiate UI Elements at Runtime - Unity 2022 UI Toolkit Tutorial

Поділитися
Вставка
  • Опубліковано 8 лип 2024
  • 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
    chris-tutorials.itch.io/
    linktr.ee/ChrisTutorials
    ◢ Chris Recommends ◥
    Master Skills with Skillshare Video Courses ►► www.skillshare.com/r/user/chr...
    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
  • Ігри

КОМЕНТАРІ • 11

  • @khh1990
    @khh1990 2 дні тому

    this was so concise, right to the point, and useful, hot damn

  • @cristianjuarez1086
    @cristianjuarez1086 Рік тому +7

    this is f-ing exactly what i needed, thankyou sir!

  • @aeronamics
    @aeronamics 3 місяці тому +1

    I was searching for this, thank you very much!

  • @wesselpoldervaart4658
    @wesselpoldervaart4658 Рік тому +1

    this is so much better than unity's examples

  • @sinakarimi4111
    @sinakarimi4111 Рік тому

    I got a good idea thanks a lot

  • @Azihayya
    @Azihayya Рік тому +1

    Hey, this is a good tutorial. As someone new to coding and game development I've heard people saying this is the future of UI in Unity, although it seems incredibly complex to me. So far, to me it seems like the old GUI system was much more simple. I feel like I can study from and learn from your tutorial, though--what I'm wondering now is how it's possible to create drag and drop elements using the UI Toolkit.

  • @ollistorm4854
    @ollistorm4854 11 місяців тому +1

    Great tutorial, super easy to follow. Thanks!

  • @MatheusPereira-wc5iq
    @MatheusPereira-wc5iq 11 місяців тому

    Can I instantiate UI elements em real time?
    I'm trying to make a chat.

    • @khh1990
      @khh1990 2 дні тому

      he literally shows how 6 minutes into the video

  • @ChadGatling
    @ChadGatling 8 місяців тому

    Hearing you say buTTTTon 500 types gets annoying

    • @khh1990
      @khh1990 2 дні тому

      ur an ungrateful kent