Make Your MAIN MENU Quickly! | Unity UI Tutorial For Beginners
HTML-код
- Опубликовано: 7 май 2023
- In this Unity tutorial we'll make a Main Menu.
How to make a PLAY button , OPTIONS button and QUIT button in Unity ?
Enjoy the video ☕
----------------------------
🖐 Hi Game developer
Welcome to Rehope Games I'm Murat
I share unity tutorial videos on my channel. if you want to make a game with unity (especially 2d platformer game), the videos here will definitely interest you.
----------------------------
#unitytutorials, #unity2d, #unity2dplatformer
Important notice: if you can't drag your preferred background image onto the panel, it's probably because you haven't converted it to a sprite. Single click on it in your assets folder and open the inspector - the first option at the top is gonna be "Texture Type". Change it from "Default" to "Sprite (2D and UI)" and you're free to go on!
👌
you literally saved me, such an easy step was giving me so much trouble.
Thanks you brooo
yas
@@lucutes2936 Plastic?
This actually helped me. The whistle music is a little weird but all in all a good tutorial, thanks.
Thank you very much, this actually came in very handy, as I am just getting used to unity and game development!
Great video, tysm, in the middle of making a platfromer, and this has helped me figure out scenes, what they do, and how to use them, thanks to you, I'm able to make multiple levels to my game, because you showed me how to switch scenes! Again, thank you, you earned a sub.
Thanks for the motivated feedback.
I'm glad it helped you.
And Welcome to Rehope Games 😊
pretty good tutorial, this is so beginner friendly easy to follow and will learn a ton of stuff.
Thanks bro, I jsut learn game development and your video is the easiest to learn to make Main Menu. Really appreciate the work and have a good day.
Thanks for nice feedback bro 🙏
Thank you so much. This video is very helpful for beginner.
THANK you
Really useful tip for beginners ❤
Best tutorial video, thank you very much!
Thank you so much 🙏
Thank you my man! You save the day
YOU SAVED MY LIFE!!! I finally created my game's start menu with this :) this is my first game I've ever tried to make, and as a teen who is just starting out on gamedev this really helps :)
I'm glad to hear that, I wish you success in your game project 😊
Today i watched this video. Very Useful. Thank you.
Glad to hear that 😊
Thanks to you I was able to make a working menu, finally) Thank you
Nice 😊
Thanks for your feedback 🙏
Thank You So Much. Wonderful Tutorial. Helped A Lot🙏
Thanks for you motivational feedback.🙏
I'm glad hear that 😊
This was an excellent tutorial, thank you for sharing it. NOTE: If anyone was like me and couldn't find the, "on click" area under Play - you have to click Add Component and search, "button" to bring it up. I missed that part and was a little frustrated until I found it.
Great tutorial for getting acquainted with buttons and scenes. Thank you.
Thanks , glad to hear that 🙏
thanks a lot
your the best one so far i finally get it now
Thanks for your nice feedback 🙏😊
you is incredible, thanks !!!
Thank you so much dude , and welcome 😊
Bro I love you dude, new subscriber
Welcome bro ❤
Great video thank you
Great tutorial!
Great video thank you very mutch
thank you, very easy and infromative
Thanks 😊
Thank you, sir! It was useful. Can you show us how to create those button, please .🎉
This is the best tutorial!
Thanks 😊
That helped a lot, thanks!
Glad it helped! 😊
Thanks.
I hope you would have a video tutorial about when users click the options button, there's a toggle where they can adjust the music and sfx, wherein the music and sfx are from different scenes.
I have already watched your video about toggle for music and sfx but those two are from the same scene. I hope you will have a toggle where users can adjust the music and sfx from different scenes. Thank you so much
You are absolutely right, my friend.
I will add options to the settings panel for adjusting music and sound effects.
I will make a nice video about this topic, brother.
Thank you very much for your feedback 🙏😊
Thank you brother ❤
thank you this is good tutorial you Explained everything so good
I'm pleased to hear that. 😊
Thanks for your nice feedback 🙏
@@RehopeGames you'er welcome
good tutorial
Thank you so much.
Nice Helped me ALOT
I'm glad that , thanks for your bice feedback 🙏😊
Thank you bro
thanks. it works.
🙏
Great tutorials, subscribed to your channel
Thanks , and welcome 😊
Great video! But can you tell me how to make the fade in animation when you first load a scene (when you click PLay).
Hello, first thank you so much 😊
I explained that in this video 👉 ruclips.net/video/HBEStd96UzI/видео.html
cool video)
Sorry but how do you get the assets by the way great guide man.
Hello for some reason is some of my game not working like every thing is fine but when i start the game over the menu function (when i press the play butten yk) some things arent there per example my clouds are not spawning or the music is not working and i dont have a clue can anybody help me ? Great vid btw
非常好的教程,感谢
谢谢 🙏
THE GOAT
thank you
Thanks for the video, though I have a problem with my canvas.
When I go into the game tab, the camera shows only the bottom right part of my canva as if the canva was a gameobject even though I put its render mode in "Screen Space - Overlay"
Can you send me SS, if you still not solve it.
Thanks ...🙏
Great Tutorial! Do you mind to share your UI buttons?
I'll share all assets soon.
Thanks for your interest :)
Güzel video murat
hey dude nice video also r u a turk?????????????????
When resizing images for panels and buttons you can click "Set native size" at the bottom of the Image component it will automatically resize your object to the soze of the image.
Thanks for the information 👍
grazie amico molo utile
Grazie 😊
Health bar and animator will be nice🙂
I promise , I'm gonna do add health bar to the game 🙏😊
@@RehopeGames big thanks!🙂
thx
i have a problem that doesn't exist anywhere so basically when i press Play button for some reason my map turns into complete dark pitch black i tried everything no error message and i didnt set up any shaders im using unity urp 2023
I love you 💖
thx G🗿
can you do a tutorial for score board after a level is finished, thank you so much! your channel is very helpful for a game design student
What would you like to see on the scorer board?
Also thanks for nice feedback 😊🙏
i love your pfp
thanks!
🙏
Im unable to attach the main camera fromscene 1 to the button in scene 2 for play and quit...i tried everything idk why it wont work. but the rest does!
Where do I get the sprites that you have used?
This was a really great video but where could I get the Photoshop files for all the things thanks :)
Thanks for your interest 🙏
I'll share all project files soon
@@RehopeGames that’s great I am so excited :) could you tell me a more exact date ?
@@leoprzybilla8529 you can contact me with email 😉
@@RehopeGames what is your e-mail ? :)
@@leoprzybilla8529 rehopegames@gmail.com
Hi I think it was so cool but we need to press a key to show main menu while playing game and here that key is not present. thanks a lot
❤️
❤😊
its a great tutorial but its just i cant get with your speed or the way you speak so fast i think , but its a great tutorial thanks
Thank you so much for your feedback. 🙏
I will take it into consideration .
Teşekkür ederim video için
Teşekkürler 🙏
in my asset, there is no sprite folder, how to add sprite folder ?
i dont see the PlayGame() option in my main menu functions
Heyy can plz explain me how did you make work quit button.... Because I'm getting error of not building build plz explain where did you create a build folder
Can you show the error you get ?
Please can you make video of Vs code 2D game stated page please 😊
Could you please elaborate a little on what you want?
Thanks for your interest 😊
How did u make levels?
please when you upload a video if assests are free please give their link in des
Uluslararası oynuyor öz abime bak
Eyw adaş 😉
if the play button script is not working for you try settingthe number at the end to 0
yo can you put the script on the description they just keep giving me errors
What to do if the button is really big?? and when scalled down its bad quility
Did you design the buttons?
W vid
Hi brother, at 4:10 when i clicked on the play button, it is taking 5-6 seconds to open the level one. Any suggestion to reduce that delay?
Your pc just bad :/
is it bad, or will it take time to load the scenes, my friend.@@playlistmaster-thebestplay3605
You lost me at LoadSceneAsync... It won't work. What do I put in the (). It's saying that it doesn't know what scene I'm trying to bring in.
You can watch this video first ruclips.net/video/4fvQUK2pPds/видео.html
THANK U SO MUCH
i have error Assets\MainMenu.cs(4,13): error CS0234: The type or namespace name 'Engine' does not exist in the namespace 'Unity' (are you missing an assembly reference?)
Check the script name and class name, both must be the same
Please, make 3D games too.
I plan that for next time
Can someone Tell me how it works when i want to Load a different game when i press play? Like my owngame.exe? Thx!
1st like😊
Thanks bro 😊
yes but when i drag main camera or the mainmenu folder from the hierarchy to onclick, it dosent show me the mainmenu functions and i cant do it! it only gives me the gameobject, transform, camera and audiolistener categories! i am using unity 2022
Check the Method , it must be Public !
@RehopeGames @overkill1603
did you get an solution for that? because my method is public and it still doesn't work, my onclick thing looks completly different to the one showen in the video?
@@Jamie-il6tvit should be public void StartGame()
Is there any way to replay/restart the scene or is shut down and completely relaunch the only option?
Hello , I think answer of your question is here😊 : ruclips.net/video/MNUYe0PWNNs/видео.html
@@RehopeGames Perfect, exactly what I was looking for. Many thanks.
@@DextraVisual Your welcome bro 😊😊
İ created another world for the options button your version looks like scratch
Hey bro, when I put the text, what is written in the text doesn't come out
same here
@@maxine3617 lol
can you share the sprites please 🙏🏼
My MainCamera is not capture the menu scene😢 How to do it😊
Why can't I drop any images to the button in the Source Image? A red circle appears, what am I doing wrong?
Did you convert the image to sprite?
I have an issue it does not show me the application class like it does to you in the video
Check this library you Add? ( using UnityEngine; )
Check your code is correct ( Application.Quit(); )
thank you for your reply turns out i did not have unity linked correctly to VS@@RehopeGames
on click when I attach the main camera and open function, I cannot see the play game in main menu. why?
did u solve it ?
copy from another answer I gave:
It happened to me, but if you look carefully your MainCamera doesnt have the script, although you created the script as it is shown in the video. ALso another clue is that if you press right click on the created script "MainMenu" and click "Find references..." (scene and/or project) you will see that your script is nowhere added.
So just manually drag the script to the camera. After that you will be able to access the function.
I have previous experience with unreal and I work with artists, and being one myself, I advice to have what I call a "scientific approach", something has to be missing, there has to be some cause of the result we are having and when work involve programming, human error is the main cause of "errors", so always remember to double chcek not only your steps but also where is what and how. And in case everything is fine, to repeat again everything, checking carefully everything is where and how it has to be.
Yo totally irrelevant but you got that strong Bulgarian accent, are you from Bulgaria?
😅 No
Bro Why i cant see the MainMenu > Play ?
i already drag Main menu to Onclick of Play
Got it I miss " in code
where can i get the code?
Oh and ir is posible that you can update the video to now pls
Can you give detail pls what did you wanna ?
hi I have a big problem, when I click on the play button nothing happens and the changelog does not report any problem please give me help
Hi 👋
Did add the other scenes to the Build Settings Panel?
And did you add the click event to the Play Button?
@@RehopeGames hi thank you for this quick response but I only have the menu scene and yes I put the event. I already tried to make a menu in the past but it failed, I think I'm cursed
are you turkish?, your accent tells me that :D
Yea Alright I'm a Turkish , you caught me bro 😅😅
@@RehopeGames 😂🙌
I want the custom buttons that you have created
Kindly reply soon bro
Hi ,
I'm gonna share the all assets soon, thanks for your interest. 🙏
Please, can you share your buttons with us?
I'll share all assets soon thanks for your interest 🙏
I got error Assets\MainMenu.cs(9,9): error CS0103: The name 'SceneManager' does not exist in the current context
Hello , I think you forgot to add Scene Management Library (using UnityEngine.SceneManagement;)
@@RehopeGames it fixed but now I got UnityEditor.SceneView:ShowCompileErrorNotification ()
im facing a strange problem. the main manu is not there in the list of onclick()
same
It happened to me, but if you look carefully your MainCamera doesnt have the script, although you created the script as it is shown in the video. ALso another clue is that if you press right click on the created script "MainMenu" and click "Find references..." (scene and/or project) you will see that your script is nowhere added.
So just manually drag the script to the camera. After that you will be able to access the function.
I have previous experience with unreal and I work with artists, and being one myself, I advice to have what I call a "scientific approach", something has to be missing, there has to be some cause of the result we are having and when work involve programming, human error is the main cause of "errors", so always remember to double chcek not only your steps but also where is what and how. And in case everything is fine, to repeat again everything, checking carefully everything is where and how it has to be.
how to get playgame () option