Get started with UI Toolkit in Unity

Поделиться
HTML-код
  • Опубликовано: 2 июн 2024
  • Show your Support & Get Exclusive Benefits on Patreon (Including Access to this tutorial Source Files + Code) - / sasquatchbgames
    Join our Discord Community! - / discord
    --
    If you've been intimidated to try UI Toolkit, or have been wondering if you should switch to it (or are just curious how to get started working with it) - then this video is perfect!
    This video will show you everything you need to know to get started with menu building in Unity's UI Toolkit. I hope you enjoy!
    --
    Timestamps:
    00:00 - intro
    00:21 - setting up UI Toolkit in your hierarchy
    01:25 - setting up our header
    02:09 - creating a stylesheet
    04:20 - setting up buttons and their stylesheets
    05:33 - adding a background and new fonts
    06:16 - assigning OnClick events to buttons
    08:28 - assigning OnClick events to a List of buttons
    09:43 - transition animations
    --
    UI Toolkit sample project (QuizU)
    assetstore.unity.com/packages...
    UI Toolkit sample project (Dragon Crashers):
    assetstore.unity.com/packages...
    UI Toolkit E-book
    unity.com/resources/user-inte...
    UI Toolkit Pseudo-classes
    docs.unity3d.com/Manual/UIE-U...
    Easing Functions Reference:
    easings.net/
    ---
    In need of more Unity Assets? Using our affiliate link is a great way to support us. We get a small cut that helps keep us up and running: assetstore.unity.com/?aid=110...
    ---
    Looking for some awesome Gamedev merch? - sasquatchbgames.myspreadshop....
    ---
    Who We Are-------------------------------------
    If you're new to our channel, we're Brandon & Nikki from Sasquatch B Studios. We sold our house to start our game studio, and work full time on building our business and making our game, Veil of Maia.
    Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!
    Wishlist Samurado!
    store.steampowered.com/app/23...
    Follow us on Twitter for regular updates!
    / sasquatchbgames
    #unitytutorial #unity2d #unity3d
  • ИгрыИгры

Комментарии • 38

  • @TheArghnono
    @TheArghnono 2 месяца назад +4

    Great video. This is the best UIToolkit intro I've seen. And I now realize that CSS and its relatives will haunt me until the day I log off.

  • @shockingchris9809
    @shockingchris9809 2 месяца назад +2

    I'm surprised you packed that all into such a short (haha "short") video. I've been hesitant to use UI Toolkit after seeing it used in the Happy Harvest, but this made it look really easy, especially when you use your own sprites and make use of the USS style sheets and transitions (that was SO cool for such little work). Great job again Brandon. Lovin the videos, hope you guys are making it with RUclips, you're killin it!

  • @SharpDressedBear
    @SharpDressedBear 2 месяца назад +3

    Great tutorial! I didn't even know about the new UI system until now

  • @AbdullahGameDev
    @AbdullahGameDev 2 месяца назад +12

    More about it, please.

  • @edstamonica3870
    @edstamonica3870 2 месяца назад +3

    Nice! Do more of this UIToolkit please 🥺

  • @sleepingcolossus
    @sleepingcolossus Месяц назад

    Just what I needed for a quick tech demo. Thanks!

  • @pocket-logic1154
    @pocket-logic1154 2 месяца назад +1

    Excellent info. Concise, informative, easy to digest ;-)

  • @petipois28
    @petipois28 2 месяца назад +2

    Thank you so much, such a great tutorial

  • @ahla29
    @ahla29 13 дней назад

    Better then most tutorials out here!
    Much Love from Sweden!

  • @nanoCort3x
    @nanoCort3x Месяц назад

    So much merci, i love your input, as a biginner with unity, it helps me a lot.

  • @tinalava68
    @tinalava68 2 месяца назад

    Thanks a lot! I really hated making the UI with the default UI system. That won't be a problem anymore :)

  • @MarcWithaC-BlenderAndGameDev
    @MarcWithaC-BlenderAndGameDev 2 месяца назад

    Another great tutorial. Very useful overview for helping decide whether you might want to use this feature or not. I had heard name name 'UI Toolkit', but that was about it. It looks like WPF and the way it uses XSLT. I have UI on my 3D objects, and it looks like Unity still recommends uGUI for that. But this might make sense for the menu. Another complicated new system to learn, and I still haven't gotten the hang of thew new input system yet.

  • @castlecodersltd
    @castlecodersltd 2 месяца назад

    Nice tutorial. Thank you 🙂

  • @yusufayvaz7386
    @yusufayvaz7386 Месяц назад

    You're awesome teller. Thank you dude.

  • @sxsignal
    @sxsignal Месяц назад

    a great starter tutorial!

  • @Sosa829
    @Sosa829 2 месяца назад

    This is amazing and easy to understand.
    If I want to animate it at certain events, let's say at scene start.
    or maybe if I want to make the options menu pop up when pressed, do I make this animation using the transitions you mentioned or is there a way to use the unity animator?
    if the transitions can do it then it's probably easier and gives more control.

  • @knowercoder
    @knowercoder Месяц назад

    This is very helpful

  • @raingamedev702
    @raingamedev702 2 месяца назад

    Thank you! This is a really well structured tutorial. Brief but more than enough to start using UI toolkit. Can you recommend or do you know if it is safe to start using this for WebGL?

  • @aleksp8768
    @aleksp8768 2 месяца назад +1

    Holy sht I had no idea this existed

  • @depre6603
    @depre6603 27 дней назад

    Are magic strings the only way to interact with the ui builder via c#?

  • @GBSCronoo
    @GBSCronoo 2 месяца назад +1

    Can you please do a tutorial on popup windows over already existing UI in UI toolkit?

  • @DrSeal
    @DrSeal 2 месяца назад +1

    Great video, any chance you'll make a video about using using the new system to make a custominspector?

    • @sasquatchbgames
      @sasquatchbgames  2 месяца назад +1

      just released that today actually!

    • @DrSeal
      @DrSeal 2 месяца назад

      @@sasquatchbgames King, I will watch immediately, thank you for your work, truly inspiring.

  • @lkhgames
    @lkhgames Месяц назад

    Great video, however for those who don't know yet, Unity Developed a binding system for the UI Toolkit. Yes, you don't need anymore code telling which text gonna show what, which button gonna do what, etc. Is just drag and drop. Video link: ruclips.net/video/HQ0TmO8ZA4o/видео.htmlsi=8ieYa3i-O0RjdE9V

  • @papwap1582
    @papwap1582 18 дней назад

    Would this work with Netcode for gameobjects?

  • @dejungelinafrika
    @dejungelinafrika 2 месяца назад +2

    Is the UI toolkit more performant than the default UI

    • @MrMoczan
      @MrMoczan 2 месяца назад +3

      Yes, but both are negligible in the context of a full video game.

  • @derikfant831
    @derikfant831 2 месяца назад

    Блин, я в наушниках испугался звука на 6:40 )) подумал на секунду, что шмель в левое ухо прилетел

  • @beatrageGameSalad
    @beatrageGameSalad 2 месяца назад +5

    It's a real shame that this tool didn't come out since day one in unity....it would have been way more easier for us old coders! 😅

  • @Coco-gg5vp
    @Coco-gg5vp 2 месяца назад +2

    First

  • @simonmalicek
    @simonmalicek 2 месяца назад +1

    Do I need to be Chinese to access it??

  • @jonathanh5320
    @jonathanh5320 2 месяца назад +2

    Imagine still using Unity haha. It has no future and basically a waste of time using.

    • @danielmisra2912
      @danielmisra2912 2 месяца назад +5

      gotta love the godot fanboys ^^

    • @jonathanh5320
      @jonathanh5320 2 месяца назад

      No. Unreal Engine, Unity is not even close to what Unreal has to offer. But yes, I would prefer Godot every day before Unity. What you ultimate have to face, is that the Unity fanboys will never leave Unity - sad@@danielmisra2912​

    • @darrencook7168
      @darrencook7168 2 месяца назад

      Imagine being such a useless tool as to wholly disrespect others' years of training and knowledge of a useful tool.

    • @BigDaddy-zq1cq
      @BigDaddy-zq1cq 2 месяца назад

      as someone who learned godot and unreal b4 unity and really had a "phobia" from it can confirm unity is defo a great engine its just they had stoopids dumahhs in charge in many situations it would be better than godot and surely miles ahead of unreal in 2d