I enjoyed this video. its unfortunate that we haven't gotten an update video on Dropdown changes he had commented below. No updates in a year :(
@VoodooD0g5 ай бұрын
Out of all the videos out there, this is the only one actually handling UI complete enough to help me (open and close windows etc.). Well done and thank you.
@lolsterf41476 ай бұрын
I don't leave comments, I usually lurk. But this is a good video.
@adammland692410 ай бұрын
you are a life saver iv been searshing on the entire youtube but they give me the normal UI and not the UI toolkit thx very much so i subbed
@rotherama Жыл бұрын
Thanks! Wasn't getting anywhere diving into uibuilder myself but this makes good sense now and I've got my menu showing in my scene. I too typed panelS like a sheep! For anyone struggling with the side bar, my grow on it was defaulted to 1 so it took the whole screen whatever percentage I gave it, once I changed that to zero my 30% was obeyed. Onwards!
@AzraelIbliz Жыл бұрын
This is nice thank you. I hope a little bit more of the coding side though as well like how to link it to a new UI screen when I open the settigns for example-
@n_mckean Жыл бұрын
I got :root working as well as creating base styles for things like button--primary, button--secondary etc but when I start a second scene and add another UI focument which uses the same USS for button--primary etc, it doesn't seem to be able to connect to the :root variables we created and so nothing gets styled. Any ideas?
@frankreiser_recaremo Жыл бұрын
So sad you didn't add more tutorials, you're a very good instructor.
@Anomen77 Жыл бұрын
I'd love to see a tutorial for overriding unity styles for dropdowns and the like. It's so hard to find info about anything. This video alone has given me more answers than most of my searches.
@mattorlich88 Жыл бұрын
so great, please make more! :)
@psadicodes Жыл бұрын
Awesome tutorial 😍. Can you please do a tutorial for customizing UI toolkit's in-built progressbar, inputfields or creating custom ones ?
@nuruluin9840 Жыл бұрын
i cant edit the drop down, the child elements are grey out and deactivated
@diy_handmade_creative Жыл бұрын
I Like video, thank bro
@AbdulRehman-ql4pv Жыл бұрын
I am using unity 2020.3.43.f1 and UI Builder 1.0.0 preview 18 but while right clicking in hierarchy not getting the UI toolkit option..
@zentai4324 Жыл бұрын
Hi, I hope all is well, will you be continuing teaching about UI development? Your tutorials are the best i've seen on these topics, I really hope you will continue with your teachings! cheers
@frankreiser_recaremo Жыл бұрын
Again - amazing!! Hope and wait for next video
@YDV669 Жыл бұрын
Thank you very much! Very helpful.
@isilozcelik Жыл бұрын
Thanks! I was totally lost before these tutorials.
@frankreiser_recaremo Жыл бұрын
OMG - you did it. Awesome tutorial and so helpful. Good and understandable explained!!
@frankreiser_recaremo Жыл бұрын
YES!!
@MrTyagoteoi Жыл бұрын
Excellent video! Its so sad that the Unity documentation of UI Toolkit is so strange to understand. This video was a great help!
@fahmisboui9664 Жыл бұрын
i have 2 uxml files i want if i click on a button in the mainMenu.uxml it takes me to the start.uxml file. im new to the ui builder and c# so im struggling. hope if someone can help with this asap.
@bunnycoding1204 Жыл бұрын
If you check out my second video it should show you how to do this. Hope that helps
@fahmisboui9664 Жыл бұрын
@@bunnycoding1204 thank you brooo its working. u really saved me
@santiagoruiz7490 Жыл бұрын
Jesus. This tutorial was sooo hard to find. I didn't find anyone else explaining how to actually switch between menus. Thank you very much
@magickomchanell45565 ай бұрын
Same
@Rookieboi888 Жыл бұрын
When I do it it says compile error I copied everything right down to the names and it still doesn't work.
@icecold30884 Жыл бұрын
can you please provide any information regarting changing the icons colors ect? i have been searching everywhere and cannot figure out how to change them.
@bunnycoding1204 Жыл бұрын
The first think you want to do is make sure that the icons are white. Then once they are applied to a visual element as a background image you can change the background image tint colour. This will then change the colour of your icon.
@NeZversSounds Жыл бұрын
I'd like to add sound effects on events like hover but haven't found information about it. That's a good topic for a tutorial in my opinion.
@bunnycoding1204 Жыл бұрын
That's a great idea, thanks. :)
@mitchf.69902 жыл бұрын
My Settings window looks fine in the UI builder when I disable the MainMenu, but when I hit play and click settings it opens the settings window all smooshed with the startscreen/mainmenu showing at a normal size on the "layer" underneath. Any ideas?
@bunnycoding1204 Жыл бұрын
It sounds like the main menu is not being disabled correctly.
@KapilSharma-is1we2 жыл бұрын
Sounds awesome waiting for more tut like this
@NEX999Z2 жыл бұрын
i have proplem in console "Assets\scripts\MenuController.cs(12,36): error CS1061: 'Button' does not contain a definition for 'Clicked' and no accessible extension method 'Clicked' accepting a first argument of type 'Button' could be found (are you missing a using directive or an assembly reference?)"
@bunnycoding12042 жыл бұрын
Make sure that to using at the top is "using UnityEngine.UIElements;" rather than "using UnityEngine.UI;".
@NEX999Z2 жыл бұрын
@@bunnycoding1204 i using it
@bunnycoding12042 жыл бұрын
@@NEX999Z The only other thing I can think of is that it is "clicked" with a lower case 'c'. Otherwise I would need to look at the code to know what is wrong.
@NEX999Z2 жыл бұрын
@@bunnycoding1204 oh ok i will try thx for all help
@NEX999Z2 жыл бұрын
@@bunnycoding1204 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UIElements; public class MenuController : MonoBehaviour { private void Awake() { VisualElement root = GetComponent<UIDocument>().rootVisualElement; root.Q<Button>("Play").Clicked += () => Debug.Log("Play Button Clicked"); root.Q<Button>("Settings").Clicked += () => Debug.Log("Settings Button Clicked"); root.Q<Button>("Exit").Clicked += () => Debug.Log("Exit Button Clicked"); } }
@chinesepetants27672 жыл бұрын
Nice vid, can you make more about UI toolkit? I want to know how it works of all kinda elements in the libary. I still don`t figure out all the elements like how they look like when displaying on the layout and I want to know how they work with the data loaded and saved with Json. I want to make some visual pet keeping simulator games, players can get rewards by waiting time to time, so I`m learning UI toolkit and seeking tutorials on YT like crazy, and tbh, it will be very thankful if you can share some knowledge on how to make that side bar with displaying a list of all pets and when tap the pet icon on the left, the right area will display the detailed info of each pet.
@bunnycoding12042 жыл бұрын
I have been planning on making a game with a similar UI concept. I will be making a video on both types of list views, and given the popularity on each of the standard UI elements and how to style them.
@chinesepetants27672 жыл бұрын
@@bunnycoding1204 nice to know mate. Much appreciated for your work.
@bunnycoding12042 жыл бұрын
I also would like to do a detailed tutorial on how to build a UI from a data structure and then be able to save and load it again. But that might take me a while.
@life_with_anum2 жыл бұрын
Followed the same method, but my button is not working. The statement is not being logged on the click. Kindly guide me about what could be the problem
@bunnycoding12042 жыл бұрын
Without seeing your code my best guess would be to look at the names and make sure they match when trying to find the button. It needs to be exactly the same and is case sensitive. Also make sure the name is unique.
@AP-pv6vk10 ай бұрын
I got the same issue, were you able to figure it out?
@jaredfleurent23402 жыл бұрын
anyone know why when i put in the command "private void Awake" it doesn't work?
@bunnycoding12042 жыл бұрын
Are you adding it to a gameobject in the scene?
@jaredfleurent23402 жыл бұрын
@@bunnycoding1204 i'm not sure to be honest. i was following every step in this video trying to work on my first project ever and i couldn't get it to work :/ i lost my menu from downgrading from windows 11. I'm going to do it through this tutorial again and keep this updated
@nobice12 жыл бұрын
Very useful videos, continue!
@roserpens2 жыл бұрын
Thanks, this was very helpful
@MrZtapp2 жыл бұрын
The best UI Toolkit tut I have seen, really good. Thank you!
@bunnycoding12042 жыл бұрын
Thanks. Really appreciate it.
@MrZtapp2 жыл бұрын
@@bunnycoding1204 I did try UI Toolkit in a prototype I did but became over complicated. I will now use it for an upcoming project and use this tut as knowledge base.
@sqdtnz2 жыл бұрын
Excellent tutorials.
@Carlossus132 жыл бұрын
Why did it capitalise the s in Panels, I wonder. Did it for me too, not a typo, it changed on enter
@ciaxeresregio76942 жыл бұрын
Really good tutorial, really thanks! Please in a next oportunity can you record in a little higher volume?
@tjumma2 жыл бұрын
Hello, sir! I'm new to UIToolkit. Could one switch between menus just by switching the Source Asset on the UIDocument in runtime or is it considered a bad practice? Thanks for the videos, they are super helpful!
@bunnycoding12042 жыл бұрын
You can do this, however I would be careful as you will likely lose all the references that you had built up to that point. If you really want to keep your UXML files completely separated I would suggest having multiple UIDocument gameobjects in your scene, each with their own presenter class and then turn the gameobjects on and off. However I am not sure what the implications of doing it this way are yet.
@tjumma2 жыл бұрын
@@bunnycoding1204 Thank you. I'll try doing things this way and report back if I face any issues
@Sam-xd9xt2 жыл бұрын
Hey, thank you :) (just a timestamp 7:30)
@milktea00012 жыл бұрын
thanks very helful. also there are no tutorials about listviews. Can you create a video about them? and maybe how to create elements dynamically inside it
@bunnycoding12042 жыл бұрын
Hi thanks for the comment. Yes I am going to do a video on list and scroll views.
@willkennedy81922 жыл бұрын
Great video. Any way to update the key moments and add marker around the 25 minute mark for adding the on click behavior?
@bunnycoding12042 жыл бұрын
I will have a look to see if I can add them.
@alexshturmovik30372 жыл бұрын
How can I resize unity standart controls (toggle, dropdown)??? Their children are blocked in UI Builder(((((
@bunnycoding12042 жыл бұрын
I will make a mini series for each control. But what you need to do is look through the hierarchy of the element and add the .unity classes to your USS files then change the values there. I will add a part in the next video about the concept.
@cklaffer2 жыл бұрын
Hi, thanks for taking the time and making the tutorial. However, I get an error when running the code at 36:40 ("Object reference not set to an instance of an object"). Can I download the / see the code somewhere? Where and how did you implement the Display extension? Thank you!
@cklaffer2 жыл бұрын
Nevermind, had a typo xD
@bunnycoding12042 жыл бұрын
Glad you found the fix. If you want to see the implementation of the Display extension then have a look at this 26:09. I put the code up on the screen. I will also make the project publicly available before my next video so everyone can follow along with what I am doing.
@cklaffer2 жыл бұрын
Thanks again. If you have time, I would greatly appreciate it, if you showed us how to achieve some sort of menu screen transition, maybe a fade in / out or swiping animation, if this is possible with UI Toolkit.
@bunnycoding12042 жыл бұрын
It is possible, after some comments I had from the last video I have added it to the end of the course. It will be video 5 or 6, but it is defiantly coming.
@MarkC882 жыл бұрын
Thank you, this was helpful.
@xxann552 жыл бұрын
You need to make more videos this was excellent.
@bunnycoding12042 жыл бұрын
The next video is coming soon.
@crimson76322 жыл бұрын
awesome !! Make more like this , thanks in adv.. ❤❤
@mattUTshirley2 жыл бұрын
This was very useful! I hope we get more videos soon