How to make UI in UNITY - EASY TUTORIAL

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 มิ.ย. 2024
  • In this unity tutorial we'll take a look at how to make UI ! UI is used to create game's main menus, pause and option menus, inventories, health bars and lots MORE, so it's key to have a basic understanding of how it all works !
    This is what will be covered in the video :
    1 - Canvas and resolution
    2 - Making text and changing it via code
    3 - Images
    4 - Buttons and using them to call functions
    5 - Changing screen resolution via code
    ---------------------------------------------------------------------------------------------------------
    SUPPORT ME : / blackthornprod
    ---------------------------------------------------------------------------------------------------------
    DAFONT : www.dafont.com/fr/
    GOOGLE FONTS : fonts.google.com/
    ---------------------------------------------------------------------------------------------------------
    JOIN the BTP DISCORD SERVER : / discord
    FOLLOW ME : / noacalice
  • ภาพยนตร์และแอนิเมชัน

ความคิดเห็น • 317

  • @keypaxPL
    @keypaxPL 5 ปีที่แล้ว +106

    This is how Unity build-in elements demonstrations should looks like for developers. No hours-long tutorials about every feature, just "This element can do this and this. If you're interested, learn more about it on this specific tutorial...". Really great job. I got more informations from this 10 minutes video than from spending a lot more time on official tutorials. Thank you :)

  • @bmj6763
    @bmj6763 4 ปีที่แล้ว +86

    This is the most straightforward explanation of how to use the Unity GUI system with C# sharp I've found. Thanks for saving me from hours more of endless searching.

    • @vbhd1419
      @vbhd1419 3 ปีที่แล้ว +2

      Came here to comment, BMJ said it perfectly here.

    • @billyhoward9643
      @billyhoward9643 2 ปีที่แล้ว

      instaBlaster

    • @BreadAckerman
      @BreadAckerman ปีที่แล้ว

      @@billyhoward9643 master blaster 69

  • @cubyte4640
    @cubyte4640 3 ปีที่แล้ว +38

    Instead of checking length of image and typing it into scale (6:16), you can just click last button in image component named 'Set Native Size'

  • @ordnaelsusej2049
    @ordnaelsusej2049 5 ปีที่แล้ว +30

    I love your tutorials, you cover little things that most of the tutorial creators don't, that's amazing :D

  • @LiterallyUnplayable
    @LiterallyUnplayable 5 ปีที่แล้ว +2

    Please never stop making these dude, my major is games programming and your tutorials help so much. It is so much fun to make games like this.

  • @DrMarcusJudge
    @DrMarcusJudge 5 ปีที่แล้ว +24

    Amazing tutorial, really covers everything and very well put together and ordered!

  • @eyefisher
    @eyefisher 5 ปีที่แล้ว

    You go over so much at such a great pace. Nicely done. I’ll be watching more of your videos for sure.

  • @DawnosaurDev
    @DawnosaurDev 5 ปีที่แล้ว +16

    Still keeping up the great content! :)
    Hope you keep gaining subscribers!

  • @ibrahimmohamed-hz3dm
    @ibrahimmohamed-hz3dm 5 ปีที่แล้ว +18

    Keep up the good work i love your tutorials I am sure you will end up becoming a great you tuber :)

    • @zokaper801
      @zokaper801 4 ปีที่แล้ว +1

      the fact that there is a space in TH-camr makes me mad

  • @xavierbourguignon8948
    @xavierbourguignon8948 2 ปีที่แล้ว +6

    Great tutorial, a lot of info packed in a short period of time, how most video tutorials should be, well done!

  • @bornaniksic4868
    @bornaniksic4868 4 ปีที่แล้ว

    Thank you so much dude! I've been trying to find this type of tutorial for a while.. But then I come across this! Thank you! :D

  • @plns1717
    @plns1717 4 ปีที่แล้ว +3

    So much more lively then other videos and you actually have a personality and care about what your teaching

  • @DavidAddis
    @DavidAddis 4 ปีที่แล้ว

    So much useful information packed in to 10 minutes! Thank you for this!

  • @aragonbuckle7743
    @aragonbuckle7743 5 ปีที่แล้ว

    I've never really subscribed to a tutorial channel, but your videos are such good quality!

  • @NavedAhmadNA
    @NavedAhmadNA 5 ปีที่แล้ว +3

    6:15 preserve aspect 😊
    Love your tutorials.

  • @BoomBunny
    @BoomBunny 4 ปีที่แล้ว +2

    this really helped me understand buttons and UI, thanks so much!

  • @SpacefaceDEV
    @SpacefaceDEV 5 ปีที่แล้ว +4

    Awesome video! I just recently learned about the whole Screen.SetResolution() just recently, and its awesome to see such a useful tip in a video of yours! Your videos have inspired me and allowed me to grow as a developer! Thanks a bunch!

    • @Blackthornprod
      @Blackthornprod  5 ปีที่แล้ว +2

      I'm so glad my video have helped you out on your own journey :) ! Keep it up mate and thanks so much for the support :) !

    • @SpacefaceDEV
      @SpacefaceDEV 5 ปีที่แล้ว +1

      No problemo! Thank you!

  • @casualchris1893
    @casualchris1893 5 ปีที่แล้ว +1

    Great video as always, Noa!

  • @JohnWeland
    @JohnWeland 5 ปีที่แล้ว +6

    I would love to see an in-depth guide on making a ui screen for setting up and mapping inputs in-game for keyboard/mouse and controller inputs.

  • @StarbitLight
    @StarbitLight 5 ปีที่แล้ว +1

    I was exactly looking for a way to change the resolution by script! Thank you Noa :3

  • @andorryu5300
    @andorryu5300 5 ปีที่แล้ว

    Thank you so much, this is exactly what I was looking for!

  • @tingwen1713
    @tingwen1713 5 ปีที่แล้ว +1

    OMG you are awesome for making this! :) Please keep it up!

  • @StephenAllenGames
    @StephenAllenGames 4 ปีที่แล้ว

    Thank you, i shall be watching more of your UI videos.
    Im having to move form OnGUI to Canvas and struggling with some of the more advanced areas.

  • @lee1davis1
    @lee1davis1 5 ปีที่แล้ว +2

    "pin point accurate" yes sir I do. Thank you very much.

  • @chemiebaukastenscbt2294
    @chemiebaukastenscbt2294 5 ปีที่แล้ว +1

    I follow your Videos now for a while, and I just can say: Thank you!

    • @Blackthornprod
      @Blackthornprod  5 ปีที่แล้ว

      Thanks so much for the support :) !

  • @fhialsdhkt43tg72
    @fhialsdhkt43tg72 3 ปีที่แล้ว

    Extremely well done, easy to understand and with a very likeable personality!

  • @kbrokarl1903
    @kbrokarl1903 2 ปีที่แล้ว +2

    Its amazing that you help small game developer like us grow, I always love your tutorials Thanks a bunch😊😭❣

  • @farkler4785
    @farkler4785 5 ปีที่แล้ว +8

    Love your stuff dude keep it up

  • @MayasMotivation
    @MayasMotivation 5 ปีที่แล้ว

    Awesome video! For me, I curious on how to do keybindings in the option screen. Especially for controllers. Keep up the good work! xD

  • @MisheeChan
    @MisheeChan 4 ปีที่แล้ว +1

    A little fast when you try to follow along but that's what the pause button is for! Very nice tutorial, easy to understand, thank you! :)

  • @carbynegames
    @carbynegames 3 ปีที่แล้ว +6

    Never underestimate the power of his very first tip. Do not delete the event system in the hierarchy. Nobody tells you that.

  • @stoopidwabbit8205
    @stoopidwabbit8205 5 ปีที่แล้ว

    Dude your stuff is amazing. Keep it up!

  • @MrL0LiTube
    @MrL0LiTube 5 ปีที่แล้ว +106

    you really like Hollow Knight do you? (btw thanks for introducing me to the game, i bought it becasue of you)

  • @kingroblox-gamingandmore7742
    @kingroblox-gamingandmore7742 5 ปีที่แล้ว +1

    Great and educational video Noa! You are really great and make really cool stuff! Keep up with your great work!

    • @Blackthornprod
      @Blackthornprod  5 ปีที่แล้ว +1

      Thanks :) ! I'm really glad you liked the video !

  • @bn2667
    @bn2667 ปีที่แล้ว

    Lol i was watching so many tutorials to find out why my buttons where not working until I realized thanks to you I deleted the event system by mistake… thank you 🙏

  • @keith819
    @keith819 3 ปีที่แล้ว

    Thank you , good content. My menus normally look trash so I’ll be reviewing all your content

  • @wehavemagnums
    @wehavemagnums 4 ปีที่แล้ว +1

    This was so good, thank you.

  • @SBroproductions
    @SBroproductions 5 ปีที่แล้ว +2

    NOTE: Text Mesh Pro was acquired by Unity and is now available for free through the Package Manager. It's Text-based UI elements are much more crisp than Unity's standard ones.

    • @awolr
      @awolr 5 ปีที่แล้ว

      Note: requires to use its namespace to be able to access data within it, using TMPro

    • @MrDasebasto
      @MrDasebasto 4 ปีที่แล้ว

      Unity noob here, coming from Android dev. How come Unity is not able to keep standard text crisp??

  • @omidvalizadeh7988
    @omidvalizadeh7988 4 ปีที่แล้ว

    really great in such a short time i got all this information

  • @necromoni
    @necromoni 5 ปีที่แล้ว

    very good intro to unity UI, I like the video pace, it doesn't have me skipping through

    • @Blackthornprod
      @Blackthornprod  5 ปีที่แล้ว

      Thanks :) ! I'm so glad you liked the content !

  • @zouhairrouika3889
    @zouhairrouika3889 5 ปีที่แล้ว

    I Love your videos quality, it's very helpful as well ! Thank You very much !! or "Merci Beaucoup"

  • @shaanig466
    @shaanig466 5 ปีที่แล้ว

    7:23 , that helloooooooooooo lol and
    thanks this really helped +subbed

  • @habsburg8048
    @habsburg8048 2 ปีที่แล้ว

    U R A GOD OF UNITY TUTORIALS
    When you say this all become so simple and easy

  • @jimtaylor5372
    @jimtaylor5372 2 ปีที่แล้ว

    @Blackthornprod - thank you for this. I'm no Unity novice, but I was scratching my head today trying to figure out why my UI was not scaling properly. I knew it had to do with a property from the UI itself, but couldn't remember which one to save my life. It was UI Scale Mode... at about 1:50 in the video. Soon as I saw you change it to Scale With Screen Size it hit me. Thanks for curing my dumb today! 😂

  • @mirhandil
    @mirhandil 5 ปีที่แล้ว

    Hey mate, yet another great tutorial ! You are awesome! Thanks

  • @bran42761
    @bran42761 3 ปีที่แล้ว +2

    this taught me more than 8 h of official unity tutorials rip

  • @sycon3655
    @sycon3655 4 ปีที่แล้ว +1

    Really good work. Nice tutorial ! Keep on :)

  • @meowl9329
    @meowl9329 3 ปีที่แล้ว

    All useful info in just one video, awesome!

  • @tejaschalke1778
    @tejaschalke1778 5 ปีที่แล้ว

    Was waiting for such a long time for a new video to come up

    • @Blackthornprod
      @Blackthornprod  5 ปีที่แล้ว

      Yep sorry for the wait :) , my PC unexpectadly crashed Friday and had to get repaired :/ !

  • @TorSkywalker
    @TorSkywalker 5 ปีที่แล้ว

    Fantastic tutorial, thanks a lot!

  • @antonioponno2394
    @antonioponno2394 5 ปีที่แล้ว +1

    Great video, very helpful!

  • @JonathanGilmer
    @JonathanGilmer 2 ปีที่แล้ว

    This is my first tutorial. It's taken me around 30 minutes to get to the part at 4:55, but I'm so proud of my health going down when I press the space bar 😂😭😭

  • @amandaflood
    @amandaflood 2 ปีที่แล้ว

    Your videos are fantastic and so helpful. Thank you very much 😊

  • @Cluvr
    @Cluvr 5 ปีที่แล้ว

    Great tutorial :3 I love your stuff

  • @josephturgoose7470
    @josephturgoose7470 ปีที่แล้ว

    This is an amazing tutorial, very informative :)

  • @BrianLindahl
    @BrianLindahl 2 ปีที่แล้ว

    Wonderful! Amazing Video! Exactly what I needed.

  • @mafiamama7033
    @mafiamama7033 4 ปีที่แล้ว +1

    one of the best tutorials around here! thanks so much!

  • @xxanton8xx
    @xxanton8xx 4 ปีที่แล้ว

    Very good and compact tutorial!

  • @Oxmond
    @Oxmond 4 ปีที่แล้ว +1

    Cool tutorial! As always! 👍🤓

  • @AZZAMNO1
    @AZZAMNO1 5 ปีที่แล้ว

    this is convenient
    Thanks for this video :d
    *Subbed*

  • @grizley
    @grizley 3 ปีที่แล้ว

    this was cool to learn im new to game dev so trying to make short games but idk much yet so this helps

  • @scarbus
    @scarbus 4 ปีที่แล้ว

    Fats introduction to basic UI. With that knowledge, I can move faster with my end goal. Subscribed...

  • @rgv3858
    @rgv3858 5 ปีที่แล้ว

    Hey! What a great gamedev channel! Keep growing. =)

  • @saulo52304
    @saulo52304 5 ปีที่แล้ว

    Thanks man!
    :)

  • @anc5588
    @anc5588 3 ปีที่แล้ว +1

    Guys, if you're not seeing the health number when you click play, make sure you have the correct code, and the width or height of the text box is large enough,

  • @Lior_Banai
    @Lior_Banai 4 ปีที่แล้ว

    Nice tutorial. What is the extension you used for showing the method parameters with summary of the method?

  • @ciaraneastwood
    @ciaraneastwood 5 ปีที่แล้ว

    Great vid this channel deserves more subs

    • @Blackthornprod
      @Blackthornprod  5 ปีที่แล้ว

      Thanks Ciaran for the support :) !

  • @Robot404_
    @Robot404_ ปีที่แล้ว +3

    This video is a wee bit outdated. What you need to do is use the TextMeshPro text (now default when you select text from the create menu.)
    Then in your code add "using TMPro" at the top. Then replace the line "Public Text healthText;" with "Public TextMeshProUGUI healthText;" and the rest the same. You then drag your TextMeshPro object into the text slot.

    • @aqueousfish711
      @aqueousfish711 ปีที่แล้ว

      Holy shit thank you for the update.

    • @Draggie306
      @Draggie306 ปีที่แล้ว +1

      Thank you so much!

    • @EthrealPontiff
      @EthrealPontiff ปีที่แล้ว

      how do I put my TextMeshPro ui into the health text box in the health display script?

  • @chrischapman214
    @chrischapman214 2 ปีที่แล้ว

    Super helpful! Thank you!

  • @2smart195
    @2smart195 2 ปีที่แล้ว

    thank you very much everything worked and it was greatt!

  • @hobarey5029
    @hobarey5029 4 ปีที่แล้ว

    Awesome tutorial. Thanks a lot.

  • @kingroblox-gamingandmore7742
    @kingroblox-gamingandmore7742 5 ปีที่แล้ว +2

    I didn't get a notification for this video :( Lucky i was just going into youtube!

    • @Blackthornprod
      @Blackthornprod  5 ปีที่แล้ว

      Make sure you've clicked on the notification bell on my channel, that way you'll almost certainly get notified :) ! If you've already done that though just hop in every 3 days or so and new content should have popped up :) !

  • @mcleverm01
    @mcleverm01 ปีที่แล้ว

    Great video.. Thanks! Keep up the great work!

  • @aegiswang1
    @aegiswang1 4 ปีที่แล้ว

    Very Helpful and Thanks~!

  • @luciacover9909
    @luciacover9909 5 ปีที่แล้ว

    Thanks for this video! My UI would never be in the correct place if I hadn’t seen this video! But, can you please cover slider and drop down?

  • @MortenBN1988
    @MortenBN1988 2 ปีที่แล้ว

    This was awesome! Thank you so much. :-)

  • @starmiiee
    @starmiiee ปีที่แล้ว

    thank you!!! very simple tutorial!

  • @tallesmaziero
    @tallesmaziero 5 ปีที่แล้ว

    Another great video! Please make one with inventory!

  • @Wisp_OG
    @Wisp_OG 5 ปีที่แล้ว +1

    yaaaay, we got another ',:)

  • @xrenynthemusicmage6422
    @xrenynthemusicmage6422 3 ปีที่แล้ว

    1:56 16:9 is not a resolution but an aspect ratio. Just a minor mistake and I suppose you're already read this type of comment a hundred times, but in case not I'm still obligated to tell ya 😅
    A Resolution would be something like 1920 pixel * 1080 Pixel, the absolute width and height of your display.

  • @ResuelveloTu
    @ResuelveloTu 11 หลายเดือนก่อน

    Thanks it was very helpful.

  • @dingodize7548
    @dingodize7548 5 ปีที่แล้ว

    Great video as always

  • @diliupg
    @diliupg 5 ปีที่แล้ว

    Great tute! :)

  • @FelipeOliveira34910
    @FelipeOliveira34910 5 ปีที่แล้ว +1

    Could you make a video explaning how to make the enemies follow the player, but also, jumping into other platforms more higher?

  • @omar-0082
    @omar-0082 ปีที่แล้ว

    one of the best tutorials thank you

  • @doodledoo5611
    @doodledoo5611 2 ปีที่แล้ว

    This helped a lot!

  • @ricardoalcantara5846
    @ricardoalcantara5846 5 ปีที่แล้ว

    =O, really useful tips!

  • @GrayGriffonKnight
    @GrayGriffonKnight 5 ปีที่แล้ว +1

    bro, I am so grateful that I found your videos.
    They have been so helpful to me, words can't express my gratitude.
    I'll one day make something worth more than the assets used to make it.
    And that is thanks to you.
    thank you.

    • @Blackthornprod
      @Blackthornprod  5 ปีที่แล้ว

      Thanks a lot for the kind words :) Really glad you like my work, stay tuned mate !

  • @nafizkarim5191
    @nafizkarim5191 3 ปีที่แล้ว

    thank you awesome tutorial

  • @joeeintha
    @joeeintha 3 ปีที่แล้ว

    OK THIS IS ENTERTAINING n HELPFUL :D

  • @safeersaadiq6385
    @safeersaadiq6385 5 ปีที่แล้ว

    Cool UI .....Man....
    They are ....THE BEST....

  • @vamshivams5029
    @vamshivams5029 5 ปีที่แล้ว

    Love your content

  • @emberytp
    @emberytp 4 ปีที่แล้ว +1

    DaFont can have viruses in their downloads! Use Google Fonts instead! They have a lot of useful free, open source fonts with multiple families. DaFont usually only gives one family per Typeface...also sometimes they hold viruses.

  • @mattisrodrigue522
    @mattisrodrigue522 5 ปีที่แล้ว

    Could you make a video explaining how to change a UIimage sprite with a button? :D Love your content btw!

  • @kainhawk7854
    @kainhawk7854 4 ปีที่แล้ว

    awesome, thank you

  • @yashkaushik6116
    @yashkaushik6116 4 ปีที่แล้ว +7

    1600x900 resolution is not 16:9 aspect ratio. They are different. 1280x720 is true 16:9, also 1920x1080 too. 1664x936 is a true 16:9 not 1600x900

  • @omidvalizadeh7988
    @omidvalizadeh7988 4 ปีที่แล้ว

    keep up with unity and more in the field of 2d and apps

  • @203maryamsaleem9
    @203maryamsaleem9 2 ปีที่แล้ว

    Loved thisss besstt for beginners

  • @carljohnson1726
    @carljohnson1726 5 ปีที่แล้ว

    I really like your drawing style

  • @aresthemyth3010
    @aresthemyth3010 5 ปีที่แล้ว

    Omg you saved me so much headache