Тёмный

UI Toolkit VS Canvas - Performance & Comparison 

Freedom Coding
Подписаться 2,8 тыс.
Просмотров 2,2 тыс.
50% 1

UI Toolkit is Unity's new solution for building UIs. I will compare the performance of UI Toolkit and Canvas, to see which solution is better. I will also discuss the pros and cons of using UI Toolkit, so you know if you should use UI Toolkit for your Unity games.
Discord Community - / discord
Patreon - / freedomcoding
PayPal - jani.steckerova@seznam.cz
Are you looking for a Unity/C# tutor? Contact me here - marek.freedom.coding@gmail.com
Website - www.freedom-coding.com
Facebook - profile.php?...
UI Pack1 - assetstore.unity.com/packages...
UI Pack2 - opengameart.org/content/ui-pa...
Timestamps:
00:00 Intro
00:22 Static UI Performance Comparison
02:19 Dynamic UI Performance Comparison
04:18 Conclusion - Performance
04:48 Pros Of UI Toolkit
05:41 Cons Of UI Toolkit
06:47 Conclusion

Опубликовано:

 

2 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@NongBenz
@NongBenz 5 месяцев назад
I'm converting my old UI components to the new UIElements and it's pretty smooth. And since it based on the widely used html/css structure (uxml/uss in Unity), it's easy to look up formatting tricks or get AI to help you on styling rules. UIElements does have a more complex layout engine so it's no surprise it does hiccup under any kind of styling/structure change but ultimately its been very precise and stable for me. Likely because Unity themselves rely on it for the actual UI of their Engine whereas the old UI components basically feel legacy and have log of odd bugs just due to code rot or the complex Jenga stack of components you need to mix up. But like you said the key seller for me was styling sheets that make consistent UIs or changing themes much easier.
@freedomcoding
@freedomcoding 5 месяцев назад
That is true. Thanks for sharing your experience.
@chethanvenkataramaiah6940
@chethanvenkataramaiah6940 4 месяца назад
Many,complicated animation is possible from a package called UITTimeline. Also for referencing u use strings I would recommend copy paste, though that might be quite irritating if it has to be done for lot of things. Unity should go something so that the styles or visual elements can be suggested by intellisens. But for ur age ur doing great. I only would say enjoy more at this age as this age will not come back
@freedomcoding
@freedomcoding 3 месяца назад
Thanks for noting that. I will try it if I get back to UI toolkit. Yes I hope Unity will improve on that. Thanks!
@Fralleee
@Fralleee 5 месяцев назад
Keep in mind that it's a huge difference if you're animating by changing position (margin, left, top etc) or by translating. Changing position will cause the entire UI to recalculate positions and re-render. While changing translate won't affect anything else.
@freedomcoding
@freedomcoding 5 месяцев назад
Thanks for noting that. I certainly wasnt changing the margin and padding, but I am not sure if I changed position or used translate. I will keep that in mind.
@stormer268
@stormer268 5 месяцев назад
I have tried UI Tookit before. I personally don't think it's easy to use. It is neither as flexible as HTML and CSS, nor as user-friendly as Cavas. Especially in terms of documentation, it is very unclear, and sometimes you may find several methods but none that are suitable for your situation.
@freedomcoding
@freedomcoding 5 месяцев назад
You are right. There are a lot of features missing compared to HTML, CSS or canvas. We will see what Unity does with it in the future.
@lemetamax
@lemetamax 5 месяцев назад
I really need to learn the UI toolkit. But I'm afraid I'll be stuck looking for documentation and example use cases on some intermediate to advanced topics on it. And then there's the string issue. I hate strings and only use them when absolutely necessary.
@freedomcoding
@freedomcoding 5 месяцев назад
Yeah there is not much documentation on it right now. But if you decide to code your UI, it is similiar to html and css.
@lemetamax
@lemetamax 5 месяцев назад
@@freedomcoding that sucks. I'll put a pin on that for now until the tasks I have at hand are completed or I see it get to a "good enough" state. It has some potential though.
@fineallday
@fineallday 5 месяцев назад
I'm working with UI Toolkit at the moment, and one thing I don't like is that we cannot send parameters with buttons.We can subscribe to the click event but since there is no option for parameters you end up needing one function per button...
@freedomcoding
@freedomcoding 5 месяцев назад
That is true. There is still quite a lot of functionality missing...
@Sim2322
@Sim2322 4 месяца назад
You seem like a bright young promising kid. I can tell you'll cringe in 10 years when you get sone real experience and deeper knowledge. Also, you can 100% make your own custom components to UI toolkit and add variables, custom behaviors, etc., as well as search by classes, not only strings. Takes a while to get used to, but it's much higher potential, both in performance and usability, than the old gui solutions.
@freedomcoding
@freedomcoding 4 месяца назад
Thanks, I know there is still a ton of stuff to learn. Thanks for pointing that out!
@starbuck3980
@starbuck3980 День назад
Canvas is 1000 times better, UI toolkit is really complicated, slow to develop, counter intuitive, with bugs. Though both systems are very bad
@freedomcoding
@freedomcoding 13 часов назад
It depends... they both have some pros and cons.
Далее
Unity UI that WORKS  and doesn't Suck - Nova UI
10:11
Просмотров 33 тыс.
Good deed #standoff #meme
00:15
Просмотров 926 тыс.
UI Libraries Are Dying, Here's Why
13:28
Просмотров 288 тыс.
I Trained an AI with 10,000 Memes
14:52
Просмотров 265 тыс.
Unity Multiplayer in 3 minutes
3:01
Просмотров 4,4 тыс.
Building Runtime UI with UI Toolkit In Unity
21:35
Просмотров 34 тыс.
UI TOOLKIT || Beginner Unity Tutorial
11:03
Просмотров 3,1 тыс.
Build Procedural UI with Callbacks and Manipulators
28:14
UI Toolkit Primer - Build UIs like a Programmer
27:54
Game Server Hosting (MULTIPLAY) || Unity Tutorial
12:42
What Happened To Google Search?
14:05
Просмотров 3,1 млн