so glad to find this, been wanting to use the new system but wasnt an option for VR development. now it is!
@Bananenbauer123 Жыл бұрын
Wow, really well explained. This is something I was worried about having to deal with in the future. Unity has made statements that UI Toolkit is the intended way of creating UI going forward, but currently we're sort of stuck inbetween 3 different systems. Another feature UI Toolkit doesn't directly support is effects, namely particle effects systems (render textures are used here too). Supposedly render textures can be a performance hit if used extensively, but hey, there's hoping they can improve/unify the UI packages. Either way, thanks a lot for this tutorial!
@RamHornBeast4 ай бұрын
Yeah I wish Unity would get their act together. So many missing features (masking, Z ordering) looked like they were coming soon on forum posts... from 2 years ago. And still nothing. I think I'm going to go with UI Toolkit anyway, because in general it seems like a really elegant tool, I can work around some missing features when required. Anything is better than having to use UGUI for another second.
@henryqng Жыл бұрын
Wow, what a great tutorial. I didn't know what I don't know until I watch this video. I was debating whether I should jump on the UI Toolkit, but I guess I better off letting Unity sort it out and improve it so I don't waste my time with version 1.x
@djohnworthy104010 ай бұрын
I purchased the course. Love it. Wish we had a tutorial for making an Interactable PC. Like a basic one.
@RamHornBeast4 ай бұрын
Your videos are absolutely amazing, please keep up the awesome work!
@MadDev_10 ай бұрын
awesome video! thank you! watching it, I realized that if I need a UI Toolkit component to be rendered in world space, I personally prefer to use a world space canvas with a rawImage and a RenderTexture. but I can already see the issue: create lots of panel settings and lots of render textures... I hope unity will soon integrate the world space renderering as they stated at Unite 2023
@captainnoyaux Жыл бұрын
Very well explained with the diagrams, thanks a lot !
@NationOfBacon Жыл бұрын
Really well done video! Still unsure about the viability of the UI toolkit in many cases but glad to know it is capable of stuff like this.
@tram9834 Жыл бұрын
Wow! This is very cool! Thank You for the knowledge mate!
@plinyvicgames Жыл бұрын
short and concise! really explained the problem and two good solutions.
@zhovnirenko Жыл бұрын
thank you for your work, we look forward to continuing
@madcattutorials2422 Жыл бұрын
Thanks. It will be continued 🙂
@LlocoGames3 күн бұрын
If you have many canvas with the Input Mapper script, there could be an issue with the mouse. When you mouse is up an element, all elements will react as well, my solution was to change line 22 for: if(!Physics.Raycast(cameraRay, out hit, 100f, LayerMask.GetMask("UI")) || hit.transform != transform) { This adds the condition that it must be the same object where the UI Document is and the raycast hits to work
@Nidy1135 Жыл бұрын
Dumb question but why not use ui toolkit for main menu and control stuff that sits directly on the screen. For the world space stuff just use ugui as its in most cases simple a health bar, a quest dialog or a button? Or should one not mix these
@dreamcatforgotten8435 Жыл бұрын
No, I think you're pretty much right on the money. Until an officially supported solution is present, it seems reasonable to use UI Toolkit for things like Editor stuff and 2D UI, and for World UI use UGUI.
@adamodimattia7 ай бұрын
Brilliant! Is there a way to animate buttons on the render texture? Meaning, in some way transfer hover and click events such that to prompt .uss doc events?
@restushlogic5794 Жыл бұрын
Yeah, when you question how it can work in world space, I'm thinking like "I don't think he will use render texture hack", but then you use render texture :) It's good working, but it is same like UGUI system but more complicated and in development most importantly is saving much time. The next deal is how to tweening UI toolkit using Dotween. Dotween has generic method so it's no a problem, but the problem is there is no shortcut like DOScale, DOMove, DORotate, etc. You need write more codes in UI Toolkit.
@322ss Жыл бұрын
Thanks. What a convoluted mess, once again. Material, render texture, some config file... what were they (Unity) thinking.
@lizkimber10 ай бұрын
i found issues in making my healthbar pop above my characters in that i tried the second method, and i had issues with scaling, i had issues with the background not being transparent...
@mahdijavidporr8946Ай бұрын
Thank you buit I have a question, and I really could use your help here What about when you want to combine the canvas and Ui Toolkit? This method works on world space canvases, but how do I get it to work with overlay canvases like camera overlay?
@QuokkaBff Жыл бұрын
wow, really thanks for this video.
@sharathaman472918 күн бұрын
Can do a video for VR also please
@GauthamD-h5v Жыл бұрын
My requirement was similar to this. Thank you for the video. But I actually have to go ahead get the click event working. But it isn't working. Any idea why?
@spikebor2 ай бұрын
The first method works great in 1920x1080, but as soon as you change resolution example to 640x480, it's wrong. Anyone know solution for vary resolutions?
@renatorolando5672 Жыл бұрын
A question: the solution you present ad 6:00 - the second solution - is not 'double face'; looking from the back side the UI document disappear. Is possible to fix it? Thanks !
@bw4e11 ай бұрын
Hi! You've probably found this already, but leaving it here just in case, as well as for anyone who might also be looking for this. I think you can achieve this by going to the material that uses the rendertexture, open it in the inspector and then go to Surface Options > Render Face and choose 'Both'.
@bongqhi12503 ай бұрын
your course is great, but since it doesn't belong to beginner, may you create complete unity course on udemy ?
@skkat7336 Жыл бұрын
Do i need to make a whole new material and texture and panel settings for every object with ui attached to it? I have a bunch of enemys with health bars and when i hit one it updates the texture for all of them.
@madcattutorials2422 Жыл бұрын
From what I understand in the current state of UIToolkit it's not a good idea to use the Rendertexture solution if you have hundreds of objects. You can check out this thread for some reasoning on it: forum.unity.com/threads/how-bad-is-rendering-multiple-uis-to-rendertexture-vs-ugui-with-multiple-canvas.1254015/ But as the video shows for something like a healthbar you can calculate the positions. You would then need some way to map a healthbar and a player and obviously instantiate the healthbars programatically.
@DilekTasci-u1b Жыл бұрын
Do you know if the UI Toolkit works in VR?
@madcattutorials2422 Жыл бұрын
I am not very familiar with VR, but I don't see a reason why it should be different. Also saw a couple of VR related posts in the forums, so I assume it should work.
@nyrab.6239 Жыл бұрын
could you please do a video about progress (->health) bars, sliders and int sliders?🙏
@保护大自然我们 Жыл бұрын
I remember a game name "PREY", it's about alien something. in the game , they have the same UI system just like here. thanks very much.
@tinym00n Жыл бұрын
How can I make it in 2d? 😅
@madcattutorials2422 Жыл бұрын
I would suggest you start here: kzbin.info/www/bejne/r4a7d3t3hL2bmaM and then continue with the docs or some other tutorials on the channel ;-)
@tinym00n Жыл бұрын
@@madcattutorials2422 thanks got it to work 😊
@chaz25719975 ай бұрын
@@tinym00n how did you get it to work?
@adamcolon2 ай бұрын
this seems like a hack, is there a legit way to do this?
@mohokhachai Жыл бұрын
Kong
@EnotoButerbrodo Жыл бұрын
Никто в здравом уме не будет делать такую дебильную реализацию в полноценной игре
@SchrodingerH Жыл бұрын
Ну в будущем обещали UITK уже нормальный worldspace прикрутить
@ScbSnck2 ай бұрын
@@SchrodingerH уже unity 6 релизнулся а вордспейса нет
@FWpapo2 ай бұрын
Why even use this? I think normal ui is much better and hassle free