How to make a menu in Unity - UI Tutorial
HTML-код
- Опубликовано: 26 июн 2024
- Your user interface will be the first thing your players interact with when entering your game. Ensure your UI is reliable across different resolutions and aspect ratios.
Better yet, make the menu FUN to navigate, instead of just a required element in your game.
!! Somebody pointed out UI buttons actually have a "Sprite Swap" feature !!
Subscribe if you learned something ;)
Video assets: bit.ly/3n2v18M
❤️ Become a Tarobro on Patreon: / tarodev
=========
🔔 SUBSCRIBE: bit.ly/3eqG1Z6
🗨️ DISCORD: / discord
✅ MORE TUTORIALS: / tarodev
00:00 Intro & scene setup
00:30 Creating your first UI element
01:20 The Rect tool
01:45 Anchoring elements into position
03:35 Filling the screen with an image
04:15 Adding images to the UI
05:20 Expanding images without stretching
07:15 Adding text using TextMeshPro
08:40 Custom fonts in Unity
09:50 Styling the text
10:25 Adding buttons the menu
11:30 Scaling the canvas with screen size
12:20 Adding click events to Unity UI using IPointerDownHandler
15:00 Scrolling background using Raw Image
16:40 Ordering UI elements
17:30 Animated side menu
21:40 Animation state machine
24:43 Adding anchored decorations
Just 5 minutes in, and this is the best explanation of Unity UI I've ever seen. You have a unique talent for explaining complex topics. Thank you for making this!
Finished the tutorial--it's even better than I initially thought. Clear explanations, great examples. Your tutorials really bridge this gap between beginner and expert levels that is sorely missing out there!
@@windup247 such lovely feedback. Thanks Mars
@@windup247 Absolutely, Unity's tutorial should be all like that!
This step by step video reflects and answers upcoming obstacles and questions while building UI. Very well structured!
Man.. Just spent a week trying to make a UI for a game project.
Never launched Unity or used code before. I HATE YT algorithm for not showing me this.
Hands down the most informative and easy to follow along to. Thanks!!
Great UI tutorial! Covers all of the basics you need to get started, and you do so quickly without any overdrawn explanations that become boring and unnecessary. Straight and to the point.
Glad you enjoyed it boog
I knew looking through my subscriptions for UI tutorials was a good idea. I appreciate it mr tarodev, this seems like a good starting point.
Thank you man so much, you really help all the early generation of coders. Once again, Thank You!
Awesome tuturial - all needed cases are explained in a nice and understandable manner. Nice work thanks!
The best tutorial about UI creation in Unity i've ever seen. You are amazing)
I have an assignment due in about a week, and your tuts are absolute lifesavers, thanks ❤️
Get good marks!!
This Tutorial Really Helped my at understanding UI(alt least n the surface Level)
and i didnt need to check everything 80 times to get it like yours -> it was very easy to follow
Finally a great Unity UI tutorial!
I'm a very detail oriented person, and I mean very. I absolutely love your explanation on absolutely everything that's going on, love your videos. Definitely inspires me to get back into Unity again lol
You're watching this while you're not even in a unity phase? Dedication 😂
Nice way to explain things mate. Keep up the good work!
so far, the absolute best vid on Unity UI I have seen.
You nailed it! Your instructions is very clear and easy to understand.
I'm a Unity beginner and your tutorial make me feel confident with it.
Thank you very very much.
Glad it helped!
Super useful tutorial on UI aspect. Thanks!
Best tutorial ever! I ignored my kids to watch this video on my phone knowing full well I'd just need to watch it again later when I actually sit down to follow it.
Don't worry, I bribed my kids with pancakes first. Cleaning up a syrup mess is an easy price to pay if I get to watch more juicy Tarodev content 😂
Great video, good explanations and easy to follow!
I learned so many helpful things in this video. Thank you so much!
Thank you so much for your awesome video! I like your concept of splitting animation and logic into own components. I tried today in actual project and I like it very much! It also makes animations reusable!!!
You never miss! You're getting a shout out when/if I ever release anything
Awesome as always. Thanks, mate!
I was screaming when I see the -1 speed animation. Great tutorial, I literally feel immortal!
God powers unlocked
Amazing video, don't understand why it take me sooo long to find it!!
Around 9:10
Quick tip: You can create the font asset quickly with the Ctrl-Shift-F12 keybind.
OMG... this tutorial is incredible!!!
Great explanation, thank you 🙂
thank you for this useful tutorial!
Simple as that.
Thanks for cool lesson!
Keep going.
Exceptional tutorial, thank you.
best tutorial ,subscribed!
Great tutorial for UI basics, thanks.
That's what exactly what I need , Thanks!
Thanks, man. Very cool tutorial.
Dude, you channel need to be bigger!!! Congrats and keep up the Job good Sir! (just subscribed to your channel - Thank You for the content)
Thanks mate ❤️
Thank you for the video and for your time!
Very helpful! Thanks!!
Very good tutorial, very informative
Awesome tutorial, thanks!
You deserve more subs man
Great UI Tutorial!
Excelent tutorial!
Thank you so much, the great tutorial video
Perfect, need more.
Its jumbo tutorial, learned lots of thing with one go, thanks a lot
Seen quite a few of your videos, thank you for your content. I find it more ejoyable and useful compared even to bigger Unity youtubers. As guy below said, you have a talent!
Appreciate it mate ❤❤ Good luck on your gamedev journey!
Wonderful tutorial my friend. Going to binge your channel soon :)
Thanks Omri 😊
what a great tutorial. thanks !
Oh maannnnn! This is the Unity UI abosolute beginer tutorial.💯👌 You are grate keep it up your good work! 👌✌
Epic tutorial thank you very much, your whole library is top notch. I'd love to get a run through on the unity profiler and what it all means, and the unity testing framework and how to use it in development.
Great Tutorial! Thanx again!
ohh !! i like watching your videos because your solutions are good and the code is clean
Outstanding videos, thank you
Great tutorial..good work .
Now, this makes all the other Unity UI tuts look like crap.
Excellent work! Hope your channel keeps growing.
I nearly give up until i found this video , you are my life saver
Hi, this is great tutorial on UI. Please continue in more complex UI controls like sliders, option boxes, etc.
I'm not trying to be rude bud but you won't learn much just watching videos try the stuff yourself so you wanted sliders and stuff just add them the same way you did other ui shit they just look at the configuration then put it to your liking
@@smokinglife8980Literally he will learn. How can you learn if not watching how to do it? I am building android game and my UI is streching and it ruins my UI. Now, after this video, I knoč how to stop UI from streching.
@@Vanduo610if you rely on tutorials for every part of your game you will not learn. You need to use the tutorials to learn how things work and then implement specifics yourself
Very helpful
Great tutorial !
Very helpful as always! :)
Thanks baris!
thanks sir, you're the best
I like how he explain everything.
Thank you!
Excellent tutorial for beginners.
Glad it was helpful!
Thanks for this!
Your video helped me a lot (i got kinda crazy because of the volume of every audio you played lmao)
Sorry about that >
thanks for the video !
Thank you, THANK YOUUUU SO MUCH for your tutorial video Mr.✨✨It's really reallllly help me to do my project, keep on doing the great work✨✨I appreciate your video and I really mean it🥹✨✨✨
Much appreciated tutorial .
I'm interested in knowing how to make the logo like that. Thank you
I'm so glad UI toolkit exists now. Making UI like this feels like smashing rocks together. Using a web dev like experience for UI is so much better.
thx soo much!
awsome , nice , ty
Note: If your sprites are not transferring over to the "None (Sprite)" box, be sure to highlight all sprites, hit Sprite (2D and UI), and underneath it, and click SINGLE in the "Sprite Mode" box. Your sprites in the Asset/Scene window should display a small play button on them.
thanks you explain very very nice! Sadly I want to see a second video were you show how to trigger the first level of a game, how to disabled a button or (probably more difficult) change the language of the text. But again amazing video! thanks for sharing
I literally have almost all of your videos in a playlist called "Best Unity Information" might as well just put your entire channel in that playlist
Glad to be in your playlist
Great tutorial, I really enjoyed it. You have a perfect pace, explain things clearly and make simple examples easy to reproduce. First time I use the animation panel and loved the result. Thanks a lot.
Awesome 😊 glad I could help
thanks buddy
great! thanks
Thank you for your video! I love your videos because you sound like "meow" when you say "now", very cute.
🐈⬛
Set Trigger (String) also triggers a boolean with that same name. and ResetTrigger(String) undoes the boolean.
Crazy awsome!
Started Unity 2-3 weeks ago and I love this kind of tutorial.
Out of curiosity, if I may, for these 2 settings icons (sound /vibration), if I get this right, would the sound/vibrate update a GameState so all scenes knows what to do?
awesome
Thank you! I love your tutorials. Can you make a video about Managers generally and how to use them together? Like using game manager/sound manager/menu manager/ npc manager on the same project.
That's a good idea 💡 they're a vital aspect of game dev. I'll add it to the list
@@Tarodev Thank you! I look forward to watching them!
@@Tarodev 22:20 Thats not how 'parameters' is pronounced.
It's marvelous ! Did you cover UI toolkit for similar needs ?
I have not dived into UI Toolkit yet, but plan to soon!
thank you
Do you have any tips for animating UI based on an Audio file? How would you preview audio live while animating UI via the animator?
goooood
Hi, love your mindset when u explain unity tutorials. But... could u make a simple projet tutorial with new ui toolkit ? Would sound GREAT !!!
Malcom from PARIS
Ure so cool bro. Thanks 🫂
Hi This is very helpful tutorial !!!
I am though stuck at the animator with the trigger state. Once I am in the Game mode and press play, the animation only run and stop within the Start, not transitioning to Show settings and so on, wondering if there's anything I miss from the tutorial. I made sure I followed each step, I even deleted and tried again, it's still stuck. The button works but the animation is not playing :(
The IWasClicked() function does not show up in my dropdown for some reason, and I have followed other tutorials and have had the same problem. I'm currently using 2020.3.14f1, is it as simple as updating or is there something that I am missing that I am unaware of?
Great video! Possibly dumb question: Is there any reason why I couldn't build this sort of UI for a 3D game, or will this only work in a 2D game?
It'll work just fine for 3D :)
i really wish you could make the text your typing on the screen a bit bigger because while your lesson sounds pretty good, i can not read the stuff your typing
what extensions are you using in unity vidual studio for c#?????
Which way is better? Animate UI via Animator or with scripts (for example LeanTween/DoTween)?
cool
Love your videos man. I have a question, is it okay to leave a SerializeField without reference? I made many buttons in my menu system, some having audio on click, others on release and some have audio on both click & release. When playing, there are no issues but will it cause problem down the line? Or should I just drag empty audio file as reference?
It won't cause any problems at all 😊
Edit: I'm not at my pc, but I believe trying to play an null audio clip produces a warning, but not an error. Could be wrong
@@TarodevThanks for the reassurance. It does produce a warning and that is the reason I came here for answer.
how can you get the EventSystems pop in the code line.
on 13:10 my vs code not even show error do I need to download something first or I miss something??
Where is the assets link ? i did not get it ?