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 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 :)
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.
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.
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. 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 🙏😊
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class Menu : MonoBehaviour { public void PlayGame() { SceneManager.LoadSceneAsync(1); } public void QuitGame() { Application.Quit(); } }
@@kasihsitompul3011 i forgot the solution. It was a problem 9 months ago. Now I postponed gamedev. Also Am interested about your gamedev journey and what game your working on rn?
I have a problem, When I change to the options panel the background is supposed to change at the same time, Wouldn't changing to a scene where the option panels is already open work, and when you close it you'll be back at the main menu, the thing is that I don't know if that would make the options saved not apply in all scenes
For the ones struggling to put their image: 1. click on your image, 2. On the inspector tab, click on texture type and select "Sprite (2d and Ui)", 3. Save your changes and try again, hope this helps!
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.
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!
@@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
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"
The image which I'm importing for the button is getting blurred when I'm going to the game section to see the result. Can you please help me with that?
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
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
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
@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?
@@gr29215 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();
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.
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
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?)
Wasnt making a main menu, just came here for the options, but it helped me so much!! you're a saviour sir!
same
@@boogaplays123 hey,guy!i am a newcomer,i want to know the image format is png or jpg?
@@liiii_jy i prefer png, because it's help high-quality image, i don't know much about jpg, and i also a newcomer like u :v
@@quangphamminh1063 thanks
This actually helped me. The whistle music is a little weird but all in all a good tutorial, thanks.
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?
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 😊
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 😊
I came here to make the play button but you taught me more than I expected. Thanks.
Today i watched this video. Very Useful. Thank you.
Glad to hear that 😊
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 so much. This video is very helpful for beginner.
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 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 🙏
Thanks to you I was able to make a working menu, finally) Thank you
Nice 😊
Thanks for your feedback 🙏
Bro I love you dude, new subscriber
Welcome bro ❤
Thank you for the straight forward and easy to follow video!
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 👍
Thank you! Your lessons are very clear)
This is the best tutorial!
Thanks 😊
Thank You So Much. Wonderful Tutorial. Helped A Lot🙏
Thanks for you motivational feedback.🙏
I'm glad hear that 😊
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 🙏😊
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
Probably easiest solution is to have all your title screen ui in your level 1 and use code to hide it and show it all
Very helpful, thank you!
Great video thank you
Thanks. I build my first game❤️.
In the "on click" section, when i try to select a function, it shows nothing.
same bro
you is incredible, thanks !!!
Thank you so much dude , and welcome 😊
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Menu : MonoBehaviour
{
public void PlayGame()
{
SceneManager.LoadSceneAsync(1);
}
public void QuitGame()
{
Application.Quit();
}
}
Thank you my man! You save the day
i dont see the PlayGame() option in my main menu functions
same
@@MrBalls12323 😭
same, do you get the solution?
@@kasihsitompul3011 i forgot the solution. It was a problem 9 months ago. Now I postponed gamedev. Also Am interested about your gamedev journey and what game your working on rn?
thanks a lot
your the best one so far i finally get it now
Thanks for your nice feedback 🙏😊
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 you
Really useful tip for beginners ❤
Great tutorial!
thank you so much bro
Nice Helped me ALOT
I'm glad that , thanks for your bice feedback 🙏😊
I have a problem, When I change to the options panel the background is supposed to change at the same time, Wouldn't changing to a scene where the option panels is already open work, and when you close it you'll be back at the main menu, the thing is that I don't know if that would make the options saved not apply in all scenes
This was very helpful thank you, but I feel like you go way too fast through the scripts please slow down a bit next time 👍
thank you, very easy and infromative
Thanks 😊
For the ones struggling to put their image: 1. click on your image, 2. On the inspector tab, click on texture type and select "Sprite (2d and Ui)", 3. Save your changes and try again, hope this helps!
I do it but still I can't
good tutorial
Hey bro, when I put the text, what is written in the text doesn't come out
same here
@@maxine3617 lol
if the level still empty, can i still make the main menu, and when i click the button it stay move to the empty level? or the level cannot be empty?
cool video)
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.
@Pjoor_YT Because your Main Camera doesn't have a script
thanks. it works.
🙏
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!
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
Great tutorial for getting acquainted with buttons and scenes. Thank you.
Thanks , glad to hear that 🙏
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 ...🙏
The image which I'm importing for the button is getting blurred when I'm going to the game section to see the result. Can you please help me with that?
Using pixel art? Change filter mode to "point(no filter").
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
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
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
There’s no onplay() selection in the button on click main menu script
Hi can you do with a login page and can put character creation and room creation?
what font do u use to make the button?
Great tutorials, subscribed to your channel
Thanks , and welcome 😊
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
That helped a lot, thanks!
Glad it helped! 😊
Ty it helped so much
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()
Güzel video murat
Thank you, sir! It was useful. Can you show us how to create those button, please .🎉
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
Güzel video eline sağlık
Thank you so much.
Thank you brother ❤
What to do if the button is really big?? and when scalled down its bad quility
Did you design the buttons?
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?
@@gr29215 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();
Health bar and animator will be nice🙂
I promise , I'm gonna do add health bar to the game 🙏😊
@@RehopeGames big thanks!🙂
in my asset, there is no sprite folder, how to add sprite folder ?
Great video thank you very mutch
thank you very much
Very good video
When I clicked add new scene it deleted my original scene I worked on, and now all progress is gone... 😭
me too
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 😊😊
Where can we download these buttons?
Hi , I haven't shared it yet ,
Thanks for your interest 🙏
@@RehopeGames can u share it please?
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?
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 found the solve, do you already save the code in visual studio? if not yet, save first, and repeat drag the code
Why is my button different to urs when I spawn it
I love you 💖
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
THANK U SO MUCH
Awsome
Where do I get the sprites that you have used?
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 ?
Thank you!!
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?
@@RehopeGamesI am having the same issue and I am not sure what you mean 😅
Can I download the script, I know nothing about coding
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
IT WORKS
😊
can you please share button images?
My MainCamera is not capture the menu scene😢 How to do it😊
THE GOAT
非常好的教程,感谢
谢谢 🙏
Can someone Tell me how it works when i want to Load a different game when i press play? Like my owngame.exe? Thx!
Why did my textures change to all black
Sorry but how do you get the assets by the way great guide man.