Get started with UI Builder (UI toolkit) - time to ditch old UI system?

Sdílet
Vložit
  • čas přidán 13. 09. 2024

Komentáře • 171

  • @SBARevere
    @SBARevere Před 3 lety +20

    I was definitely one of those that said they disliked working on UI so this is going to be a huge help!

    • @xXYourShadowDaniXx
      @xXYourShadowDaniXx Před 2 lety +1

      I couldn't stand the old UI system either its so bad for simple 2d ui's imo.

  • @abdulkadirdursun6072
    @abdulkadirdursun6072 Před 3 lety +13

    This might be the best video about UI Builder so far. Unlike other videos very clear, easy to understand. Before this ui builder looks like a ton of messy buttons, screens etc for me :D

  • @jeremiasp314
    @jeremiasp314 Před rokem +2

    This is objetively the most well polished introduction to the topic I found so far. The work on it is noticeable. Thank you!

  • @crazyfox55
    @crazyfox55 Před 3 lety +5

    Yesterday I watched the live stream of UI Builder and subscribed. I guess I have good timing.

  • @touzimsky
    @touzimsky Před 3 lety +23

    Having a lot of experience with CSS I am really looking forward to UI Builder. From your video it looks pretty straightforward to use.

    • @terryfries
      @terryfries Před rokem

      It really is a dream come true!

  • @harshadjoshi3944
    @harshadjoshi3944 Před 3 lety +16

    Saw a few of your tutorials on UI implementation and they are really well done. There is a lack of tutorials explaining use of UI tools within unity and I am really glad you have picked up these area of unity to make tutorials on. Please keep it up👍👍✌️

  • @syeddaniyalhaidernaqvi6684
    @syeddaniyalhaidernaqvi6684 Před 3 lety +43

    Maybe one day I'll switch to this UI Builder.. but for now I prefer the old one.. BTW your teaching style is concise and easy to understand. Thankyou for this❤

  • @serialexperimentsdave7213

    Thank you, I watched a bunch of tutorials trying to figure out how to change the hover color of a button, your the only one who didn't gloss over it in a vague way.

  • @Bambalombo
    @Bambalombo Před 2 lety +1

    It's insane to me, that you don't have more subscribers. Love your content :-) Thank you.

  • @Tarodev
    @Tarodev Před 3 lety +58

    This was a great tut. Is there really no way to assign buttons to serialized variables in code? I HATE the fact we have to reference the buttons by a string name...

    • @codemonkeynorth7503
      @codemonkeynorth7503 Před 2 lety +2

      It’s essentially an xml document so it works like jQuery does with html?

    • @codemonkeynorth7503
      @codemonkeynorth7503 Před 2 lety +2

      You could probably write an editor script to generate scriptable objects representing the elements but it’d be awkward to maintain with any changes to the document I guess.

    • @ark_ryl9384
      @ark_ryl9384 Před 2 lety +6

      @@codemonkeynorth7503 Pretty much this. They really wanted to emulate the web development experience, even down to using strings to select elements.

    • @domportera
      @domportera Před 2 lety +1

      i feel the same way. btw love your vids :)

    • @Tarodev
      @Tarodev Před 2 lety +1

      @@domportera I love you

  • @matt1988ish
    @matt1988ish Před 2 lety

    Holy cow, UI Builder is exactly what I've been looking for in a UI solution for Unity. This is amazing.

  • @CareyMcDuff
    @CareyMcDuff Před 2 lety

    Thank you for this! This is the only video I've found that explains how simple it is to create a UI Document object and asset to make a button menu. I'm just getting started in Unity. One reason I did so now is this new UI system. I'm glad I waited and never had to learn the old one!

  • @pixelspaghetti
    @pixelspaghetti Před rokem

    This video is uber-helpful, literally no better place to start off with the UI toolkit, thanks a lot!

  • @ruslan_yefimov
    @ruslan_yefimov Před 2 lety +2

    So easy.. Loved your tutorial, thank you man!

  • @bramblewoodhall4757
    @bramblewoodhall4757 Před 2 lety

    Brilliant! - Clearly explained and gets me up and running with UI Builder with useful examples. Thank you.

  • @maxpayenvenic6029
    @maxpayenvenic6029 Před 3 lety +4

    now with a bit of CSS skill I able to design UI I always wanted, thx

  • @darrylwolfe7359
    @darrylwolfe7359 Před 2 lety

    Just when Im getting used to creating UI, now I discover this UI Builder.

  • @angel_luis
    @angel_luis Před 3 lety +17

    Just as note, "Canvas Background" isn't the finish Background, it's just for editing. If you want to create a solid background, you have to create a VisualElement (like a Image in the old UI system).

    • @CocoCode
      @CocoCode  Před 3 lety +1

      Great note!

    • @angel_luis
      @angel_luis Před 3 lety

      @@CocoCode 👍in my case I prefer that system because as Senior web developer, to have CSS properties is an advantage.

  • @fokeyjo
    @fokeyjo Před rokem

    For anyone coming to this on newer Unity versions, the visualElement can now be center-aligned by using the alignSelf option in the Align properties.

  • @alexter-sarkisov8321
    @alexter-sarkisov8321 Před rokem +1

    Excellent intro tutorial! A couple of points: 1) in my version (2021.3.25f1) you have to manually click 'Add default input modules' in the Event System, otherwise nothing works, 2) When I create button style, font size for some reason defaults to 9.

  • @TheLazyIndianTechie
    @TheLazyIndianTechie Před 2 lety

    Great tutorial. Always wondered what UI Doc was. Thanks!

  • @anbagames
    @anbagames Před 2 lety

    Thanks for the video! Will definitely check out UI Builder soon in my new project :)

  • @altafnavalur
    @altafnavalur Před 3 lety

    One of the best tutorial to get started with UI Toolkit. Thanks!

  • @SeanNamsangwoonam
    @SeanNamsangwoonam Před 3 lety

    This was very helpful! Looking forward to more videos on UI Builder!

  • @Aaron-ks1lz
    @Aaron-ks1lz Před 2 lety

    Great job and keep it up! Would love to see some more in-depth videos on UI builder, as there is a real lack of them on youtube atm.

  • @optiontrading4926
    @optiontrading4926 Před 3 lety +1

    I Liked That "Public" 12:49

  • @ihearcolors6216
    @ihearcolors6216 Před 2 lety

    This has a bootstrap studio vibe to it, and I am liking it!

  • @gfujigo
    @gfujigo Před rokem

    Awesome work!!! Explains a lot. Thanks!

  • @CreativeSteve69
    @CreativeSteve69 Před 3 lety +1

    thanks so much for making this UI tutorial. just saved it on my playlist. Still making my Ludum dare game to completion and being a weird beginning game dev I am. I was looking to build my UI first before I come up with my game loop idea. lol

  • @rancherosdigital6851
    @rancherosdigital6851 Před 2 lety +7

    I see that UGUI has a lot of drawbacks, but I don't see the advantages of the UI Builder. In UGUI I can drag and drop components and Unity events directly in the inspector and don't have to reference widgets by string in code. I can set up the wildest UI animations. And I can use World Space Canvases. I can have 3d objects inside the canvas, and all that stuff, since the UI is composed of GameObjects and MonoBehaviours. How am I supposed to do that with the UI Toolkit package? Does this new UI have a better performance? Does it have better implementations for inputfield and scrollview? Can the CSS and XML files be changed externally after the build? Can I add custom widgets and layouts?

    • @AlexDoesYouTubes
      @AlexDoesYouTubes Před 2 lety

      UGUI also works, at least for WebGL, UI Builder errors out and won't show up on an actual build.

    • @leeoiou7295
      @leeoiou7295 Před 2 lety +2

      Same question I have been asking. UI builder is taking us from 2015 back to 1970.

  • @mashermack
    @mashermack Před rokem

    oh my god, coming as web development this is a godsend, basically css on unity - which I always thought why they never integrated something easy than their old UI system.
    I'm in awe!

  • @xvnexus8814
    @xvnexus8814 Před 2 lety

    This guy is underrated af I'm subscribing

  • @icaroamorim3123
    @icaroamorim3123 Před rokem

    A good video like this makes 16min feel like 2 minutes

  • @justvlaxx1260
    @justvlaxx1260 Před 2 lety +4

    I like the idea of UI Builder but for now I am going to stick to normal UI. Looks more complicated for coding than it should be. Changing the name of a button in UI Builder will screw your whole code (Of course, you should start coding after you planned everything). With standard system that is not the case.
    I don't know, there are a lot of positives but a lot of negatives as well but I also didn't like the Tween package and now I can't live without it when creating simple game animations or UI animations, like:
    1) Move platform left/right with oscillations (sin axis) - 1 line of code in Tween, that is better optimized, instead of creating the whole function that will be ran in Update every frame.
    2) Rotation - easy to create and not using update function (pretty sure Tween uses some weird optimization with Update, still new with it and reading the documentation)
    3) UI animations - coins pickup from the current position to UI coin location, etc.
    All I am saying is that UI Builder might grow on me. After the current project for the company I will try it for a few days/week to see what I really can/can't do with it. The same way I did with Tween and now I use it for most of the simple animations.
    Thanks for all the UI videos, made me learn a lot and hopefully you will be here for along time to educate people like me! Thank you very much man!

  • @alvin4100
    @alvin4100 Před 2 lety

    Its great im thinking of using this for our new project.

  • @juancastresana8902
    @juancastresana8902 Před 2 lety +1

    Thank you! I learnt a lot about this UI Builder but I think you should stop at some parts of the code and explain what each line does.

  • @VickingDev
    @VickingDev Před 2 lety

    Excellent, as android studio cool, let's make some test to see if this tool is so great. Thanks for the video.

  • @behnamrasooli8801
    @behnamrasooli8801 Před 3 lety

    Very professional presentation! Thanks a lot :)

  • @siyuanrocks
    @siyuanrocks Před 3 lety

    Very good tutorial! Thanks man!

  • @BNuwan123
    @BNuwan123 Před 3 lety +1

    May this channel become more spread....

  • @Nacho_Bear
    @Nacho_Bear Před 2 lety +1

    when I create the UI Document, it has no Event System Component. I downloaded both packages so I'm not sure why that is. anyone have any ideas whats going on?

  • @skippythemagnificent8103

    Excellent Tutorial, many thanks

  • @freefireturk289
    @freefireturk289 Před 3 lety +1

    We miss you 🚀💪🏻

  • @btarg1
    @btarg1 Před rokem

    This looks a lot easier than using the traditional canvas system, now I'm annoyed with myself for ignoring UI Builder. I'll use it in any future projects

  • @Stas3g
    @Stas3g Před 3 lety +3

    For newbie, all of this coding things looks more complicated. Just creating UI elements directly in Unity looks still clearer. I thought this Builder will make the coding work easier, but looks like its only add the CSS-like-style possibilities.

  • @ricocarpe6993
    @ricocarpe6993 Před 2 lety

    Excellent it seem to be the same as Android studio cool. I had to test if it is working with New input système. Thanks a lot for your vidéo.

  • @canpofficial
    @canpofficial Před 2 lety +3

    The tutorial looks great but on 2021.2.3f1 I can't follow it. Components created are different.

  • @flaviokonti5522
    @flaviokonti5522 Před 3 lety +1

    Thank you this will help

  • @AliveNotDeadmund
    @AliveNotDeadmund Před 3 lety +2

    Thank you for this fantastic tutorial! One thing I didn't understand was using the root variable. Does setting the root visual element establish the UIDocument in use? And does 'root.Q' effectively query the root for object(name)?

  • @RG_77
    @RG_77 Před 3 lety +4

    Followed step by step but the secondary Event system (UI) did not load onto my object.

  • @svengangert2683
    @svengangert2683 Před 2 lety +2

    Hi! Unity won't let me download com.unity.ui
    [Package Manager Window] Cannot perform upm operation: Unable to add package [com.unity.ui]:
    Cannot find a version of package [com.unity.ui] compatible with this Unity version (2021.2.2f1)
    Now I don't have the event system (ui toolkit).
    What can I do about it?

    • @AndyGneiss
      @AndyGneiss Před 2 lety

      I'm having the same issue.

    • @svengangert2683
      @svengangert2683 Před 2 lety

      @@AndyGneiss as far as I can tell you shouldn't even bother. I think in the end I figured out that this is just how it is in newer versions. Let me know if you're able to find out otherwise.

  • @MaxAigner
    @MaxAigner Před 2 lety

    Thank you for this great tutorial, it helped me a lot to see where all the elements are and how to use styles! What a blast! Btw. is there a way to do databinding as well? I have read something about it, but wished there was a proper tutorial for it..

  • @mintydog06
    @mintydog06 Před 2 lety

    Great tutorial, thanks.

  • @kitkatmt1696
    @kitkatmt1696 Před 3 lety +2

    I really like the smooth tweening in your videos, what video editing software do you use ?

    • @CocoCode
      @CocoCode  Před 3 lety +1

      Glad you like it! - I spend a lot of time on editing ;)
      I'm using ScreenFlow on Mac

  • @ChessShorts292
    @ChessShorts292 Před 3 lety +1

    Go on you are helping people I recently started coding and had trouble and you vids helped me ofcourse you are not as good as someone like brackets but keep going and you will get there

  • @matthewbacklund5145
    @matthewbacklund5145 Před 2 lety +1

    In the latest version of unity the code in this tutorial will give errors.

  • @edwinbradford
    @edwinbradford Před 3 lety +4

    Strange... my game object created by right clicking in the Hierarchy panel > UI Toolkit > UI Document does not contain an Event System, only the UI Document. I am on Unity 2020.3 with Unity Builder package 1.0.0-preview.14.

    • @thomastassi7974
      @thomastassi7974 Před 3 lety

      I experienced the same issue with Unity 2020.3. Tried with his version of 2020.17 and the Event System showed up. :)

    • @kpro9047
      @kpro9047 Před 3 lety

      Same issue with 2020.3.

    • @kpro9047
      @kpro9047 Před 3 lety

      Unfortunately, changing versions to 2020.1.17 from 2020.3 did NOT solve the problem for me. I think that it has to do with an outdated com.unity.ui package. In any event, there has been a beta release at 2021.2 which has the Unity builder installed. This tutorial works with the new beta.

    • @ChrysusTV
      @ChrysusTV Před 2 lety

      In any case you can add an Event System anywhere in the hierarchy. It also did not add an Event System for me but I already had one elsewhere in my scene.

  • @jimurbas7481
    @jimurbas7481 Před 3 lety +2

    > [is it] time to ditch old UI system?
    Not for a while. The text input control, particularly multi-line editing is so buggy as to be unusable. The current version as of this date (1.0.0-preview.14) is no where near production ready.

  • @hweeli6228
    @hweeli6228 Před 2 lety +1

    it is a good tutorial to learn the new UI Elements, can you cover the UI scale change relative to screen size as well ? I found it is a bit difficult to deal with it .

  • @VEOdev
    @VEOdev Před rokem

    As some one who used to work in HTML and CSS when making UI, this is really good add to Unity, for sure my next project will use this UIBuilder, for now I'm too deep on my project I can't switch, already wasted so much time creating assets in photoshop while you can do them easily with this new tool it also save some app space

  • @noodle-eater
    @noodle-eater Před rokem

    I admit this is looks interesting compare to making ui in the legacy system. If they really take reference from unreal widget editor I hope they have somekind of automatic code n ui binding.

  • @MadHaTr4LiFe
    @MadHaTr4LiFe Před rokem

    When creating a UIDocument It does not come with the Event System (UI Toolkit) component. Which I think is why my button clicks are not registering. I can't seem to add that component either.

  • @sun4442
    @sun4442 Před 3 lety

    You are a gem brother

  • @MDProgramming
    @MDProgramming Před 2 lety +2

    Good luck animating them without coding. Actually the old UI system is less confusing and more flexible.

  • @trkkkmatmat6070
    @trkkkmatmat6070 Před 3 lety +1

    Helpful

  • @xdanic3
    @xdanic3 Před 2 lety

    15:28 So the difference between js and unity is that you add the methods to the buttons "clicked" field thanks to the operator overloading functionality of C# (using the + (+=) operator) I guess.
    Then what would usually be called the "documentElement" is the "rootVisualElement" (line 17)
    Also the VisualElement might the a good ol' div tag.
    Everything else is pretty much the same.
    As an improvement, I would recommend not duplicating the button style, or at least cleaning the USS code, since there might be many properties with the same values in the hover and active state

    • @AFlyingBird702
      @AFlyingBird702 Před rokem

      the clicked field doesn't have much to do with overloading operators.
      clicked is a c# delegate event that you can add methods to. you could do clicked = clicked + OtherMethod too, += is just a shorthand

  • @bradleybergstrom123
    @bradleybergstrom123 Před 3 lety +3

    Is this ready for production? Or is it still too buggy to use?

    • @TheBlazingWolfie
      @TheBlazingWolfie Před 3 lety +1

      well....it corrupted my entire game so...dats your call lol

    • @coreysonofander
      @coreysonofander Před 2 lety +1

      Downloaded it today. It's still in the Preview stage as of Dec 1, 2021. I imported it into my project (Unity vers. 2020.3.22f1) and the console spit out a bunch of warnings and errors, mostly to do with trying to import the StyleSheet.
      There are sample scenes you can also import from the git packages. Perhaps these will work better but I would recommend importing them to a new project just to be on the safe side.

  • @n_mckean
    @n_mckean Před 11 měsíci

    For some reason, Unity doesn't let me drag a TMP Font Asset into the UI Builder Inspector to change the style. I can find a Font and set the asset to None and get the result, but the preferred method is to use a Font Asset. Any ideas why I get a big red crossed circle when I try to drag it and if I click to open the selection panel instead of dragging, my asset isn't there as a choice. I've wasted hours on this.

  • @pentorie
    @pentorie Před 2 lety

    Does USS supports some cutting-edge features like backdrop-filter etc? If it is then i probably found a perfect addition ☺️

  • @50Gameplay
    @50Gameplay Před 3 lety +11

    Good video. In my opinion it doesn´t make anything really easier.

    • @CocoCode
      @CocoCode  Před 3 lety +11

      I'm also not a fan of the new system - mainly because I tend to build much more complicated UI systems. But it's good to see some other options!
      Myself I see that UI builder as a great tool for building inspector windows etc. - for runtime the current system it's much more universal

  • @DeLaBerni
    @DeLaBerni Před 11 měsíci

    Is it possible to make a "Inputfield" ? Because I want give it a try with the Login UI!

  • @LostStylus
    @LostStylus Před rokem

    11:01 - hover doesn't work for me in the editor only in game view in play mode

  • @TBKPVgraphy
    @TBKPVgraphy Před 2 lety

    太有用了,感谢感谢

  • @rodrigosemfio
    @rodrigosemfio Před 3 lety

    Very good video, it helped me a lot, I didn't know where to start.
    Is it possible to create this programming with Bolt/VisualScript?
    I am wanting to unite the two.

  • @plagues90
    @plagues90 Před 2 lety +1

    How do you do a responsive UI by using UI toolkit ? it is too hard?

  • @Playlist8495
    @Playlist8495 Před rokem

    hmmmm It wont add the Event System automatically if I add UIDocument...
    In fact, I have no Event System (UI Toolkit)

  • @sinanarts
    @sinanarts Před 2 lety

    Can i use this toolkit for creating a UI for my VR GAME.?

  • @CodeWithMat
    @CodeWithMat Před 3 lety

    Interesting tutorial :)

  • @miamouse765
    @miamouse765 Před 2 lety

    I don't see the button I made!

  • @martindubois9279
    @martindubois9279 Před 2 lety

    seem there is no more event system in component on unity 2021.2 :S

  • @mehmetcan3825
    @mehmetcan3825 Před 2 lety

    I downloaded both package but it gives me error, error CS0006: Metadata file 'Library/ScriptAssemblies/UnityEditor.UIBuilderModule.dll' could not be found.
    How can i fix it?

  • @Cloud-Yo
    @Cloud-Yo Před 2 lety

    how about perormance? is this new system better with canvas rendering?

  • @mihainegrisan
    @mihainegrisan Před 2 lety

    UI Toolkit submenu doesn't appear in my hierarchy but it does appear in my Project tab. Do you have any idea why?

  • @beefy___
    @beefy___ Před 2 lety

    How would you clone new buttons from a script?

  • @juezna
    @juezna Před 3 lety +1

    I wonder if they made it so you can animate buttons without refreshing the entire UI on every frame.
    Otherwise, it's LeanTweens for me.

    • @Songfugel
      @Songfugel Před 3 lety

      Wasn’t that bug fixed years ago?

  • @chrisharvey7461
    @chrisharvey7461 Před 2 lety

    how an earth do you get buttons side by side

  • @paradisefallen8385
    @paradisefallen8385 Před 2 lety

    what about onscreen controlls like onscreen joystick?

  • @jin416
    @jin416 Před 2 lety

    is there performance improvement with this new one?

  • @stzaske
    @stzaske Před 2 lety

    Your video was great...the UI Builder on the other hand, very buggy. I'd keep editing my UI and the app would crash and throw away all my changes. Very frustrating. It's 2022 and this still seems very buggy and not ready for use.

  • @tatoforever
    @tatoforever Před 2 lety +1

    What most people dont get is that UI Elements allows you to separate UI visuals (widgets), logic and data and has a powerful UI builder tool too

  • @USSR-Lenin-Stalin-Forever

    how to make automatic text size?

  • @jin416
    @jin416 Před 2 lety

    just like unreal UI great!

  • @yifengchen5274
    @yifengchen5274 Před 2 lety

    yet the text is still blurry for small font size

  • @bhanukadasanayaka3457
    @bhanukadasanayaka3457 Před 2 lety

    can you more tuts on unity ui builder

  • @GameDevGeeks
    @GameDevGeeks Před 2 lety

    cannot install the packages :(

  • @NehezTheWrackful
    @NehezTheWrackful Před 2 lety

    I guess web devs will be able to write Unity Ui now :)

  • @youhoueu
    @youhoueu Před 2 lety

    I've tried your tutorial for UI Builder, but when I try to interact with buttons in game, I get the error "InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings". Any idea on how to fix this ?

    • @sirflimflam
      @sirflimflam Před 2 lety +2

      Sounds like the UI Builder library is using the old input management routines, while your project is setup with the new input manager.

  • @xIconikkxGaming
    @xIconikkxGaming Před 3 lety +2

    Is this really that much easier.
    Especially when we have to write code to fetch each text, Button or image element…

  • @theashbot4097
    @theashbot4097 Před 9 měsíci

    I am sue you get this question a lot, but what IDE do you use?

    • @CocoCode
      @CocoCode  Před 9 měsíci +1

      Hey! At the time of recording this video I was using Visual Studio for Mac. Since then I switched to Visual Studio Code, here is a video about it: czcams.com/video/X8Qr78Vs0Ss/video.htmlsi=VrVUjfTugN4SpbaQ

    • @theashbot4097
      @theashbot4097 Před 9 měsíci

      @@CocoCode Thank you soo much!

  • @B4RN154N
    @B4RN154N Před 2 lety +1

    Thx, nice video. How about unsubscribing from the events next time though? Let’s teach proper coding style to people who are at the beginning of their coding journey 🙂

    • @CocoCode
      @CocoCode  Před 2 lety +1

      You’re right, my bad!