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 - Игры
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.
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!
Great tutorial! I didn't even know about the new UI system until now
More about it, please.
Nice! Do more of this UIToolkit please 🥺
Just what I needed for a quick tech demo. Thanks!
Excellent info. Concise, informative, easy to digest ;-)
Thank you so much, such a great tutorial
Better then most tutorials out here!
Much Love from Sweden!
So much merci, i love your input, as a biginner with unity, it helps me a lot.
Thanks a lot! I really hated making the UI with the default UI system. That won't be a problem anymore :)
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.
Nice tutorial. Thank you 🙂
You're awesome teller. Thank you dude.
a great starter tutorial!
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.
This is very helpful
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?
Holy sht I had no idea this existed
Are magic strings the only way to interact with the ui builder via c#?
Can you please do a tutorial on popup windows over already existing UI in UI toolkit?
Great video, any chance you'll make a video about using using the new system to make a custominspector?
just released that today actually!
@@sasquatchbgames King, I will watch immediately, thank you for your work, truly inspiring.
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
Would this work with Netcode for gameobjects?
Is the UI toolkit more performant than the default UI
Yes, but both are negligible in the context of a full video game.
Блин, я в наушниках испугался звука на 6:40 )) подумал на секунду, что шмель в левое ухо прилетел
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! 😅
First
Do I need to be Chinese to access it??
Imagine still using Unity haha. It has no future and basically a waste of time using.
gotta love the godot fanboys ^^
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
Imagine being such a useless tool as to wholly disrespect others' years of training and knowledge of a useful tool.
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