Make Your MAIN MENU Quickly! | Unity UI Tutorial For Beginners
Вставка
- Опубліковано 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.
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 😊
Thank you very much, this actually came in very handy, as I am just getting used to unity and game development!
pretty good tutorial, this is so beginner friendly easy to follow and will learn a ton of stuff.
Thank you my man! You save the day
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 🙏
Best tutorial video, thank you very much!
Thank you so much 🙏
Thank you so much. This video is very helpful for beginner.
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 😊
THANK you
Really useful tip for beginners ❤
Thank You So Much. Wonderful Tutorial. Helped A Lot🙏
Thanks for you motivational feedback.🙏
I'm glad hear that 😊
Thanks to you I was able to make a working menu, finally) Thank you
Nice 😊
Thanks for your feedback 🙏
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 😊
Today i watched this video. Very Useful. Thank you.
Glad to hear that 😊
Great tutorial!
That helped a lot, thanks!
Glad it helped! 😊
Great video thank you
Great video thank you very mutch
Bro I love you dude, new subscriber
Welcome bro ❤
Great tutorial for getting acquainted with buttons and scenes. Thank you.
Thanks , glad to hear that 🙏
Thank you brother ❤
Thank you so much.
thank you, very easy and infromative
Thanks 😊
This is the best tutorial!
Thanks 😊
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 🙏😊
Nice Helped me ALOT
I'm glad that , thanks for your bice feedback 🙏😊
Thank you bro
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
Awsome
Güzel video murat
cool video)
thanks. it works.
🙏
good tutorial
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
Great tutorials, subscribed to your channel
Thanks , and welcome 😊
1st like😊
Thanks bro 😊
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 👉 ua-cam.com/video/HBEStd96UzI/v-deo.html
非常好的教程,感谢
谢谢 🙏
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!
Thank you, sir! It was useful. Can you show us how to create those button, please .🎉
THE GOAT
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
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.
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 ...🙏
thank you
i dont see the PlayGame() option in my main menu functions
I love you 💖
in my asset, there is no sprite folder, how to add sprite folder ?
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 👍
thx G🗿
thanks!
🙏
thx
Teşekkür ederim video için
Teşekkürler 🙏
Can someone Tell me how it works when i want to Load a different game when i press play? Like my owngame.exe? Thx!
Where do I get the sprites that you have used?
Health bar and animator will be nice🙂
I promise , I'm gonna do add health bar to the game 🙏😊
@@RehopeGames big thanks!🙂
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
Great Tutorial! Do you mind to share your UI buttons?
I'll share all assets soon.
Thanks for your interest :)
Why are my shaders from my level 1 in 3D all fucked after i put in the UI?
Sorry but how do you get the assets by the way great guide man.
grazie amico molo utile
Grazie 😊
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
THANK U SO MUCH
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 ua-cam.com/video/4fvQUK2pPds/v-deo.html
W vid
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 ?
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
What to do if the button is really big?? and when scalled down its bad quility
Did you design the buttons?
❤️
❤😊
yo can you put the script on the description they just keep giving me errors
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😊 : ua-cam.com/video/MNUYe0PWNNs/v-deo.html
@@RehopeGames Perfect, exactly what I was looking for. Many thanks.
@@DextraVisual Your welcome 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()
How did u make levels?
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
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?
if the play button script is not working for you try settingthe number at the end to 0
hey dude nice video also r u a turk?????????????????
My MainCamera is not capture the menu scene😢 How to do it😊
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
Hey bro, when I put the text, what is written in the text doesn't come out
same here
@@maxine3617 lol
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.
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 .
Uluslararası oynuyor öz abime bak
Eyw adaş 😉
where can i get the code?
how to get playgame () option
can you share the sprites please 🙏🏼
Bro Why i cant see the MainMenu > Play ?
i already drag Main menu to Onclick of Play
Got it I miss " in code
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 ()
İ created another world for the options button your version looks like scratch
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
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 😊
This does not work for me. I have no errors but the scenes will not change. Can anybody help?
Never mind I fixed it.
👍😊
Same problem here, what did you do?
@@sj29215 I need more context. Like when you click play does your main menu scene say not loaded because if it does then you typed a number wrong in SceneManager.LoadSceneAsync();
please when you upload a video if assests are free please give their link in des
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.
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
Can I download the script, I know nothing about coding
Please, make 3D games too.
I plan that for next time
when i press the play button the game doesnt load for me, why?
Can you show me the error message you got?