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 :)
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.
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!
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 - 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! 😂
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.
1:5616: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.
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 😂😭😭
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,
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.
Heyo, I know I'm a bit late to the party but I was wondering If I wanted to use a gauge for my health bar, how would one make that work? Would it be under a different kind of button? Would I need to call animations via a script? ANy help would be appreciated if you can provide it!
Honestly @@magmorta. im still wanting to make the game I had intended. The whole idea is a steampunk game and I had a perfect little model that cracks and breaks as the player loses his health. Problem was trying to figure out HOW to do it. Now I will look into that! Honestly thank you! Hopefully I can actually make this game work x.x
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 :) !
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.
I can't seem to follow this tutorial. When I create a new canvas, it is orders of magnitude bigger than my scene/camera view, and I can't change it. When I add text, it doesn't even show up anywhere.
The canvas will be huge but it's fine, it will show up as it should on your screen when you play. When laying out your UI just ignore the scene behind it and pretend that it's the right size. As for the text, it's probably too small to see, or so large that it is being cut off. As he says in the video you can press T to enter into the UI scaler tool and then select your text and focus with F, then zoom in until you can see the box. Then grab the edges and scale it up to the size you want and change your font size in the inspector until you can see the text. The other option is to set vertical and horizontal overflow to "overflow" instead of wrap and truncate. I had a lot of trouble with UI as well at first but I'm starting to get the hang of it. Just keep doing it and it will eventually click. Hope this helps.
I keep getting an expected error with this specific piece of code: using System.Collections; using System.Collections.Generic; using UnityEngine; public class ResolutionManager : MonoBehaviour { public interface width; public interface height; public void SetWidth(int newWidth){ width = newWidth; } public void SetHeight (int newHeight){ height = newHeight; } public void SetRes(){ Screen.SetResolution(width, height, false); } } Sovled. It autocorrected int to interface
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 :)
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.
Came here to comment, BMJ said it perfectly here.
instaBlaster
@@billyhoward9643 master blaster 69
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.
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'
tysm!
Thank you!
I love your tutorials, you cover little things that most of the tutorial creators don't, that's amazing :D
So much more lively then other videos and you actually have a personality and care about what your teaching
Great tutorial, a lot of info packed in a short period of time, how most video tutorials should be, well done!
Amazing tutorial, really covers everything and very well put together and ordered!
Its amazing that you help small game developer like us grow, I always love your tutorials Thanks a bunch😊😭❣
6:15 preserve aspect 😊
Love your tutorials.
U R A GOD OF UNITY TUTORIALS
When you say this all become so simple and easy
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! :)
Keep up the good work i love your tutorials I am sure you will end up becoming a great you tuber :)
the fact that there is a space in TH-camr makes me mad
I've never really subscribed to a tutorial channel, but your videos are such good quality!
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!
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 :) !
No problemo! Thank you!
Was waiting for such a long time for a new video to come up
Yep sorry for the wait :) , my PC unexpectadly crashed Friday and had to get repaired :/ !
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.
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.
Thanks a lot for the kind words :) Really glad you like my work, stay tuned mate !
Still keeping up the great content! :)
Hope you keep gaining subscribers!
@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! 😂
All useful info in just one video, awesome!
this taught me more than 8 h of official unity tutorials rip
this really helped me understand buttons and UI, thanks so much!
Wonderful! Amazing Video! Exactly what I needed.
Best tutorial for UI
Love your stuff dude keep it up
Thanks :) !
Great and educational video Noa! You are really great and make really cool stuff! Keep up with your great work!
Thanks :) ! I'm really glad you liked the video !
Extremely well done, easy to understand and with a very likeable personality!
Thanks it was very helpful.
I was exactly looking for a way to change the resolution by script! Thank you Noa :3
4:38 in "void Update()" maybe first check if the health has changed, then assign a value to it, cause you are constantly giving a value every frame ?
@yclad dude i'm also a beginner 😂❤️
very good intro to unity UI, I like the video pace, it doesn't have me skipping through
Thanks :) ! I'm so glad you liked the content !
one of the best tutorials thank you
Really good work. Nice tutorial ! Keep on :)
Cool tutorial! As always! 👍🤓
you really like Hollow Knight do you? (btw thanks for introducing me to the game, i bought it becasue of you)
Well who doesn't
great game!
Never underestimate the power of his very first tip. Do not delete the event system in the hierarchy. Nobody tells you that.
Thank you , good content. My menus normally look trash so I’ll be reviewing all your content
"pin point accurate" yes sir I do. Thank you very much.
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.
Note: requires to use its namespace to be able to access data within it, using TMPro
Unity noob here, coming from Android dev. How come Unity is not able to keep standard text crisp??
best tutorial!!! You're a life saver
:)
The most incredibly posh scottish accent I have ever heard XD nice video!
You go over so much at such a great pace. Nicely done. I’ll be watching more of your videos for sure.
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.
Hey! What a great gamedev channel! Keep growing. =)
Great video as always, Noa!
Great video.. Thanks! Keep up the great work!
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 😂😭😭
one of the best tutorials around here! thanks so much!
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
So much useful information packed in to 10 minutes! Thank you for this!
Your videos are fantastic and so helpful. Thank you very much 😊
Great video as always
OMG you are awesome for making this! :) Please keep it up!
this was cool to learn im new to game dev so trying to make short games but idk much yet so this helps
thank you!!! very simple tutorial!
Super helpful! Thank you!
Hey mate, yet another great tutorial ! You are awesome! Thanks
Loved thisss besstt for beginners
really great in such a short time i got all this information
This was awesome! Thank you so much. :-)
Great tutorial :3 I love your stuff
Im making an indie studio myself!
I always watch *your* tutorials to teach me.
(Pssst... And Brackeys.)
I follow your Videos now for a while, and I just can say: Thank you!
Thanks so much for the support :) !
Dude your stuff is amazing. Keep it up!
thank you very much everything worked and it was greatt!
This helped a lot!
Awesome video!
how in the world are you still in 29k subscribers lol that's a lot already but I think you deserve more fans
Fats introduction to basic UI. With that knowledge, I can move faster with my end goal. Subscribed...
Awesome tutorial. Thanks a lot.
Great vid this channel deserves more subs
Thanks Ciaran for the support :) !
Very good and compact tutorial!
This was so good, thank you.
I Love your videos quality, it's very helpful as well ! Thank You very much !! or "Merci Beaucoup"
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
Really cool, man
Thank you so much, this is exactly what I was looking for!
Awesome, I like the tutorials.....I m beginner.
Very Helpful and Thanks~!
Where is the camera supposed to be. Following the tutorial leaves the text outside of the viewable area.
Fantastic tutorial, thanks a lot!
Curious: what is the platformer game on 00:25? Looks like something my kid would love to play.
Spelunky
@@enricketa Awesome! thanks
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,
Great video, very helpful!
Thanks Antonio :) !
Nobody gonna talk about the fact that his variable just swapped from public to private like some sort of magic trick ???
4:17
That happened to me before, you can/have to rewrite it to make it public
Cool UI .....Man....
They are ....THE BEST....
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.
If you followed everything but not all the text isn't display ensure your text item box is big enough
What resolution should I make my Button Sprites?
Heyo, I know I'm a bit late to the party but I was wondering
If I wanted to use a gauge for my health bar, how would one make that work? Would it be under a different kind of button? Would I need to call animations via a script? ANy help would be appreciated if you can provide it!
Bit late but I've used sliders. The documentation for unity has some good info on it. Scripts can decrease the slider amount and bam, a health bar :)
Honestly @@magmorta. im still wanting to make the game I had intended. The whole idea is a steampunk game and I had a perfect little model that cracks and breaks as the player loses his health. Problem was trying to figure out HOW to do it. Now I will look into that! Honestly thank you! Hopefully I can actually make this game work x.x
@@mr.wright8363 Ahah sounds cool. Hope it works out
I didn't get a notification for this video :( Lucky i was just going into youtube!
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 :) !
thank you awesome tutorial
Love your content
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.
Holy shit thank you for the update.
Thank you so much!
how do I put my TextMeshPro ui into the health text box in the health display script?
I can't seem to follow this tutorial. When I create a new canvas, it is orders of magnitude bigger than my scene/camera view, and I can't change it. When I add text, it doesn't even show up anywhere.
The canvas will be huge but it's fine, it will show up as it should on your screen when you play. When laying out your UI just ignore the scene behind it and pretend that it's the right size. As for the text, it's probably too small to see, or so large that it is being cut off. As he says in the video you can press T to enter into the UI scaler tool and then select your text and focus with F, then zoom in until you can see the box. Then grab the edges and scale it up to the size you want and change your font size in the inspector until you can see the text. The other option is to set vertical and horizontal overflow to "overflow" instead of wrap and truncate. I had a lot of trouble with UI as well at first but I'm starting to get the hang of it. Just keep doing it and it will eventually click. Hope this helps.
Another great video! Please make one with inventory!
I keep getting an expected error with this specific piece of code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ResolutionManager : MonoBehaviour {
public interface width;
public interface height;
public void SetWidth(int newWidth){
width = newWidth;
}
public void SetHeight (int newHeight){
height = newHeight;
}
public void SetRes(){
Screen.SetResolution(width, height, false);
}
}
Sovled. It autocorrected int to interface
I really like your drawing style
How did ypu make the On mouse over effect? I mean show another Gmeobject when you put your mouve over a button or any other GameObject.