Unity UI Tutorial | An introduction
HTML-код
- Опубликовано: 22 май 2024
- Great games' unsung heroes are great user interfaces. I've grown to love Unity's UI creation system but it admittedly took a little bit to get the hang of. Since making UI isn't at the core of most games' gameplay mechanics, it can be easy to neglect, especially if you don't really know where to begin. In this video, we'll walk through the basic concepts of creating UI in Unity.
► Socials
Twitter: / the_real_aia
Discord: / discord
My free web games: aiadev.fun/
► Get the circle 9-sprites: unicornone.gumroad.com/l/pixe...
► Unity documentation on Canvas render modes: docs.unity3d.com/Packages/com...
► Free Unity Sunny Land graphic assets: assetstore.unity.com/packages...
► Pixel icons asset: assetstore.unity.com/packages...
► Download Unity 3D: on.unity.com/3cbxhXY
For more educational content on video game development, unity tutorials, and c# programming don't forget to subscribe!
····················································································
****
Get a 90% discount on a .fun domain for one year on www.get.fun using the coupon “AIA”
****
♪
#unity3d #unitytutorial #gamedev
Does the background music remind anyone else of the song "maneater" lol
Yes lol
I'm only 6 minutes into the video and I already know the next 22 are going to be pure gold as well! Very informative for a Unity newbie! Great pace and you're going over all the little things that are probably trivial for advanced users. Thank you!
This is such a great tutorial. I had basic understanding of most of the concepts that were covered, but this really helped me to get a better understanding of them, and to clean up some of my own UIs!
Awesome! Glad to be able to help
very clear and easy to follow, thank you
I like how i always just find a video on what i want to learn and i get half way through and remember i forgot to watch it
This will happen to me as well
thank you so much! this is a wonderful tutorial and you explain so well :))
I am extremely new to Unity, but your Tutorial helped me out a lot. I was getting frustrated at the Unity Learn site, I just wanted to learn how to code some basic buttons.
Glad I was able to help
I DO LOVE YOUR EXPLANATION. TNX
You're welcome :)
Very good tutorial! (I think the best if i think correctly)👍🏻
If you change the canvas render mode to camera (instead of overlay) and drag the scenes main camera into it, unity will show the UI in the same box as all the main objects (it will be in the same section as the cube instead of zoomed all the way out).
Interesting, I may have to give that a try. Does it affect anything else from a technical standpoint (Like during gameplay) or is it just the way you choose to edit the UI?
@@jonathantylerdesign It doesnt affect anything during gameplay, it just allows you to set up the UI on the main scene instead of in a separate section (which is pretty helpful when looking at the scaling and position in comparison to other game objects).
@@khana3618 that's not true. It does affect things. Read the documentation that is linked in the description
Love your videos!! Thank you
THIS IS WHAT I NEED. 30MINS OF A VIDEO WOOOOO. THIS IS THE PEAK OF AIA. THE BEST. THE GREATEST. although we need them funny edit ngl >.>
Lol true. There’s a reason I stopped make videos like this lol
Thank you!
what should I do if I can't move the background image into the scene? I'm trying to move an image from a folder Assets to Source image but this action is marked with the unavailable icon
thank you so much!!!!!!!!
great!
For any one that wants a more accurate edit for the nine sprits set the L, R, T, B to 114
thanks bro
Thank you so much!!!!
You're welcome!
@@AIAdev this video was very helpful!
thanks
so why did u do the panel white then the background is fine after i dont understand'
How come when I adjus the pannel size the Canvas size also gets adjusted? Also the button is hiden behid the canvas no matter where i set it in the hierarchy. I also set my canvas render move to screen space overlay, the pannel is also set to stretch and I have the same hierarchy (this is a brand new project following this video in unity 2019 lts). I can only seem to follow this tutorial when the canvas is set to world space render mode instead.
remove the camera from the canvas and inventory file and then position your items, then reassign the camera, the view port has to be zero for it to show everything, I think there is a reason why but I can't think of one. The unity guys in Amsterdam were definetely smoking something when making this game engine, it's powerful, if you can find what you are looking for.
My game will have 4 constant UI screens displaying information in each UI at the same time, should I do multiple canvases or one big canvas with multiple panels?
I’d do one canvas with multiple panels
Sir,how to connect this ui with game?
would you mind help me figure out how to create labels for my 3d models? Its my first time using unity and i have to make an AR app which has to label parts of a cat's organ
You can create UI canvases in world space
where can I get the font from?
how do I add images to the source image tab? I put them in my assets folder on my file explorer and I changed the texture type to 2D and sprite but it still doesn't show up
you can always drag and drop the image from its location to the source image input field. You may need to lock the inspector when doing this. There's a lock in the top right corner.
1:07 What if you don't have an open area?
how did you added the background image to the source image? I'm stuck there.
If you're still stuck, then do the following:
Import image as an asset, click on the image and set to Sprite(2D and GUI) then find the apply button by scrolling down. Afterwards, there should be an arrow on the image in your assets, click the arrow and use the sprite inside of the image. Let me set mine at least.
sir will UI work in hololens?
Why is wood child of the shadow? Shouldn't it be the opposite?
Same, im confused
The sprite is not added to image then what should I do...???
The import settings on the image you want to use needs to be set to “sprite”
My buttons were not clicking during play. Can you please help me ? I am new with unity. Thank you.
Make sure there is an event system in the project. If not, right click and add one
@@AIAdev there was an event system. Eventhough the click wasnt working. Do you have any other advice for me ? Thank you.
@@faiksami94 it's hard to know without being able to see the project. There could be something in front of the button that is obstructing clicks, if the canvas is in world space, the camera may not be assigned, raycasting could be disabled on the button or target.
@@AIAdev thank you again. Will check.
Did it really needed to be that long?
While the length may seem excessive, it was necessary to ensure that all pertinent details were included and thoroughly explained (no)
I made 1.2 mil, no g cowboys
YEhhahhhh!!
@@franciscooteiza lol, i comented on wrong video
UI builder in Unity is extrememtly non intuitive, and nearly impossible to understand how to do anything. Most guides that try to walk you through UI builder will tell you what to do to make a clickable button that does nothing, and that is as far as they go. They also assume you already know everything and every term, they expect you to know what classes, arrays, etc are. I want a damn drag and drop interface builder, why can't I drag the button where I want it? And what is the difference between making a button on the canvas and making a button in UI builder? Do they work together? if so HOW and why? I just don't get how no one has made a competent UI building app yet. I am getting sick of web based app creation also, it's not a thing and needs to just go away. Honestly it's easier and faster to create a UI using just game objects and a background images with scripts attached that are written by AI. I made more progress this way in an hour than I have in 3 days trying to use UI builder in unity.
1
name your main menu items better. Makes it so confusing
I'm curious if you have any suggestions for what I could have named them instead?
@@AIAdev oh i never thought you'd actually reply. Its cool, i was just frustrated since I was looking for a more basic and simpler implementation. Good stuff .
@@AIAdev hi, would you mind help me figure out how to create labels for my 3d models? Its my first time using unity and i have to make an AR app which has to label parts of a cat's organ
Good quality but extremely hard to follow video. You do so many things and click so many items that you don't verbally say. I had to pause the video and re-watch loads of times just to find the hidden buttons you clicked without saying anything.
just taught you the stuff u could figure out
then why are you here?
its an "introduction" afterall
I hate this system so much..
everyone does, idk who ever came up with it certainly didn't think of usability or ease of use.