Make Your MAIN MENU Quickly! | Unity UI Tutorial For Beginners

Поделиться
HTML-код
  • Опубликовано: 21 янв 2025

Комментарии • 328

  • @MsmGab
    @MsmGab 6 месяцев назад +23

    Wasnt making a main menu, just came here for the options, but it helped me so much!! you're a saviour sir!

    • @boogaplays123
      @boogaplays123 5 месяцев назад

      same

    • @liiii_jy
      @liiii_jy Месяц назад

      @@boogaplays123 hey,guy!i am a newcomer,i want to know the image format is png or jpg?

    • @quangphamminh1063
      @quangphamminh1063 Месяц назад

      @@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

    • @liiii_jy
      @liiii_jy Месяц назад

      @@quangphamminh1063 thanks

  • @aturner
    @aturner Год назад +43

    This actually helped me. The whistle music is a little weird but all in all a good tutorial, thanks.

  • @MateuszOsmański
    @MateuszOsmański Год назад +143

    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!

  • @Amelia_112amk
    @Amelia_112amk 9 месяцев назад +16

    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 :)

    • @RehopeGames
      @RehopeGames  9 месяцев назад +1

      I'm glad to hear that, I wish you success in your game project 😊

  • @TippyReal
    @TippyReal Год назад +9

    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.

    • @RehopeGames
      @RehopeGames  Год назад +1

      Thanks for the motivated feedback.
      I'm glad it helped you.
      And Welcome to Rehope Games 😊

  • @Hamsta185
    @Hamsta185 3 месяца назад

    I came here to make the play button but you taught me more than I expected. Thanks.

  • @iamQuicklearner
    @iamQuicklearner 10 месяцев назад +3

    Today i watched this video. Very Useful. Thank you.

    • @RehopeGames
      @RehopeGames  10 месяцев назад

      Glad to hear that 😊

  • @leonardovaldivia5200
    @leonardovaldivia5200 11 месяцев назад +3

    Thank you very much, this actually came in very handy, as I am just getting used to unity and game development!

  • @noodlesonsuit
    @noodlesonsuit 8 месяцев назад +4

    pretty good tutorial, this is so beginner friendly easy to follow and will learn a ton of stuff.

  • @sumonadkeya8905
    @sumonadkeya8905 9 месяцев назад +3

    Thank you so much. This video is very helpful for beginner.

  • @Mr_Professional_Guy
    @Mr_Professional_Guy 10 месяцев назад +2

    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.

  • @crypeton
    @crypeton Год назад +2

    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.

    • @RehopeGames
      @RehopeGames  Год назад +1

      Thanks for nice feedback bro 🙏

  • @HungHoang-sv9lt
    @HungHoang-sv9lt Год назад +6

    Best tutorial video, thank you very much!

  • @urdaza1379
    @urdaza1379 Год назад +2

    Thanks to you I was able to make a working menu, finally) Thank you

    • @RehopeGames
      @RehopeGames  Год назад

      Nice 😊
      Thanks for your feedback 🙏

  • @OliviaGacha1
    @OliviaGacha1 Год назад +2

    Bro I love you dude, new subscriber

  • @kimfaiai
    @kimfaiai 4 месяца назад

    Thank you for the straight forward and easy to follow video!

  • @renaudst-hilaire7178
    @renaudst-hilaire7178 Год назад +4

    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.

    • @RehopeGames
      @RehopeGames  Год назад +1

      Thanks for the information 👍

  • @pav_pan
    @pav_pan 3 месяца назад

    Thank you! Your lessons are very clear)

  • @dazefpe4135
    @dazefpe4135 11 месяцев назад +1

    This is the best tutorial!

  • @Harekrishna2666
    @Harekrishna2666 Год назад +1

    Thank You So Much. Wonderful Tutorial. Helped A Lot🙏

    • @RehopeGames
      @RehopeGames  Год назад

      Thanks for you motivational feedback.🙏
      I'm glad hear that 😊

  • @randomstuff691
    @randomstuff691 Год назад +7

    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

    • @RehopeGames
      @RehopeGames  Год назад +2

      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 🙏😊

  • @VineethMari
    @VineethMari Год назад +1

    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?

    • @playlistmaster-thebestplay3605
      @playlistmaster-thebestplay3605 Год назад

      Your pc just bad :/

    • @VineethMari
      @VineethMari Год назад

      is it bad, or will it take time to load the scenes, my friend.@@playlistmaster-thebestplay3605

    • @1smael9151
      @1smael9151 29 дней назад

      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

  • @Melvin_Master_of_Rainbows
    @Melvin_Master_of_Rainbows 2 месяца назад

    Very helpful, thank you!

  • @Osoclever
    @Osoclever 11 месяцев назад +2

    Great video thank you

  • @Sarour_Gaming
    @Sarour_Gaming 2 месяца назад +1

    Thanks. I build my first game❤️.

  • @jimmmybacon9043
    @jimmmybacon9043 6 месяцев назад +3

    In the "on click" section, when i try to select a function, it shows nothing.

  • @vinivini2651
    @vinivini2651 Год назад +1

    you is incredible, thanks !!!

    • @RehopeGames
      @RehopeGames  Год назад

      Thank you so much dude , and welcome 😊

  • @AMINEI-wl9rk
    @AMINEI-wl9rk 3 месяца назад +11

    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();
    }
    }

  • @mariovazquezperez4181
    @mariovazquezperez4181 8 месяцев назад

    Thank you my man! You save the day

  • @skibidoo99
    @skibidoo99 11 месяцев назад +2

    i dont see the PlayGame() option in my main menu functions

    • @MrBalls12323
      @MrBalls12323 3 месяца назад +1

      same

    • @skibidoo99
      @skibidoo99 3 месяца назад

      @@MrBalls12323 😭

    • @kasihsitompul3011
      @kasihsitompul3011 2 месяца назад +1

      same, do you get the solution?

    • @skibidoo99
      @skibidoo99 2 месяца назад

      @@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?

  • @BasicJeff_mc
    @BasicJeff_mc Год назад +1

    thanks a lot
    your the best one so far i finally get it now

    • @RehopeGames
      @RehopeGames  Год назад

      Thanks for your nice feedback 🙏😊

  • @TristanLahnala95
    @TristanLahnala95 Год назад +2

    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.

    • @RehopeGames
      @RehopeGames  Год назад

      You can watch this video first ruclips.net/video/4fvQUK2pPds/видео.html

  • @Meteor_X
    @Meteor_X 8 месяцев назад

    THANK you
    Really useful tip for beginners ❤

  • @frankiejrey
    @frankiejrey 8 месяцев назад

    Great tutorial!

  • @Tofi-green-screen
    @Tofi-green-screen 19 дней назад +1

    thank you so much bro

  • @LeonMMYT
    @LeonMMYT Год назад +1

    Nice Helped me ALOT

    • @RehopeGames
      @RehopeGames  Год назад

      I'm glad that , thanks for your bice feedback 🙏😊

  • @Infinite-Omega
    @Infinite-Omega 7 месяцев назад

    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

  • @hungryentertainment-real
    @hungryentertainment-real Месяц назад +1

    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 👍

  • @lama6682
    @lama6682 Год назад +1

    thank you, very easy and infromative

  • @Sharkyytheone
    @Sharkyytheone 3 месяца назад +1

    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!

    • @Baz_Dev
      @Baz_Dev Месяц назад

      I do it but still I can't

  • @jpeterptv8029
    @jpeterptv8029 11 месяцев назад +2

    good tutorial

  • @Real_Dreak
    @Real_Dreak Год назад +2

    Hey bro, when I put the text, what is written in the text doesn't come out

  • @kasihsitompul3011
    @kasihsitompul3011 Месяц назад

    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?

  • @sabinatv6464
    @sabinatv6464 9 месяцев назад +2

    cool video)

  • @DevPlayHub
    @DevPlayHub 10 месяцев назад +2

    im facing a strange problem. the main manu is not there in the list of onclick()

    • @Pjoor_YT
      @Pjoor_YT 9 месяцев назад +2

      same

    • @javideas
      @javideas 9 месяцев назад

      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.

    • @guangduolu
      @guangduolu 29 дней назад

      @Pjoor_YT Because your Main Camera doesn't have a script

  • @Abdul_rahman_von_yasin
    @Abdul_rahman_von_yasin Год назад +1

    thanks. it works.

  • @trriipy
    @trriipy 9 месяцев назад

    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!

  • @RoBoGo-off
    @RoBoGo-off Год назад

    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

    • @RehopeGames
      @RehopeGames  Год назад

      Hi 👋
      Did add the other scenes to the Build Settings Panel?
      And did you add the click event to the Play Button?

    • @RoBoGo-off
      @RoBoGo-off Год назад

      @@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

  • @Pepcooo
    @Pepcooo Год назад +2

    Great tutorial for getting acquainted with buttons and scenes. Thank you.

    • @RehopeGames
      @RehopeGames  Год назад +1

      Thanks , glad to hear that 🙏

  • @poloi3440
    @poloi3440 Год назад +2

    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"

    • @RehopeGames
      @RehopeGames  Год назад

      Can you send me SS, if you still not solve it.
      Thanks ...🙏

  • @aryaaraiii
    @aryaaraiii Месяц назад

    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?

    • @Jiji_1464
      @Jiji_1464 26 дней назад

      Using pixel art? Change filter mode to "point(no filter").

  • @tuanvietnguyen734
    @tuanvietnguyen734 Год назад +4

    Great video! But can you tell me how to make the fade in animation when you first load a scene (when you click PLay).

    • @RehopeGames
      @RehopeGames  Год назад +1

      Hello, first thank you so much 😊
      I explained that in this video 👉 ruclips.net/video/HBEStd96UzI/видео.html

  • @lbee394
    @lbee394 8 месяцев назад +1

    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

  • @seesooner3112
    @seesooner3112 Год назад

    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

  • @XmanandAthena
    @XmanandAthena 2 дня назад

    There’s no onplay() selection in the button on click main menu script

  • @DENEPEW
    @DENEPEW 2 месяца назад

    Hi can you do with a login page and can put character creation and room creation?

  • @kasihsitompul3011
    @kasihsitompul3011 Месяц назад

    what font do u use to make the button?

  • @markgray7053
    @markgray7053 Год назад

    Great tutorials, subscribed to your channel

  • @SpiritoftheForestDev
    @SpiritoftheForestDev Год назад +1

    thank you this is good tutorial you Explained everything so good

  • @alivalishov
    @alivalishov Год назад

    That helped a lot, thanks!

  • @CrimSnake
    @CrimSnake 4 месяца назад

    Ty it helped so much

  • @overkill1603
    @overkill1603 Год назад

    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
      @RehopeGames  Год назад

      Check the Method , it must be Public !

    • @Jamie-il6tv
      @Jamie-il6tv Год назад +1

      @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?

    • @PlasmaUwU
      @PlasmaUwU 9 месяцев назад

      @@Jamie-il6tvit should be public void StartGame()

  • @Mr.Faelon
    @Mr.Faelon 8 месяцев назад

    Güzel video murat

  • @ronaldagamaescobedo3980
    @ronaldagamaescobedo3980 9 месяцев назад

    Thank you, sir! It was useful. Can you show us how to create those button, please .🎉

  • @TotallylegitYH
    @TotallylegitYH Год назад

    I have an issue it does not show me the application class like it does to you in the video

    • @RehopeGames
      @RehopeGames  Год назад +1

      Check this library you Add? ( using UnityEngine; )
      Check your code is correct ( Application.Quit(); )

    • @TotallylegitYH
      @TotallylegitYH Год назад

      thank you for your reply turns out i did not have unity linked correctly to VS@@RehopeGames

  • @unsus3D
    @unsus3D Месяц назад

    Güzel video eline sağlık

  • @jaykishansingh1
    @jaykishansingh1 9 месяцев назад +1

    Thank you so much.

  • @zizotoons543
    @zizotoons543 9 месяцев назад

    Thank you brother ❤

  • @KappLXD
    @KappLXD Год назад +1

    What to do if the button is really big?? and when scalled down its bad quility

  • @BeamingABeam
    @BeamingABeam Год назад +2

    This does not work for me. I have no errors but the scenes will not change. Can anybody help?

    • @BeamingABeam
      @BeamingABeam Год назад +2

      Never mind I fixed it.

    • @RehopeGames
      @RehopeGames  Год назад

      👍😊

    • @gr29215
      @gr29215 Год назад +1

      Same problem here, what did you do?

    • @BeamingABeam
      @BeamingABeam Год назад

      @@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();

  • @biged606
    @biged606 Год назад +5

    Health bar and animator will be nice🙂

    • @RehopeGames
      @RehopeGames  Год назад +3

      I promise , I'm gonna do add health bar to the game 🙏😊

    • @biged606
      @biged606 Год назад

      @@RehopeGames big thanks!🙂

  • @syawalsofi5140
    @syawalsofi5140 8 месяцев назад

    in my asset, there is no sprite folder, how to add sprite folder ?

  • @eyejar234
    @eyejar234 8 месяцев назад

    Great video thank you very mutch

  • @EscapeApricot
    @EscapeApricot Месяц назад

    thank you very much

  • @Plapp_
    @Plapp_ 5 месяцев назад

    Very good video

  • @Srycurrentlybeingbatman
    @Srycurrentlybeingbatman 4 месяца назад

    When I clicked add new scene it deleted my original scene I worked on, and now all progress is gone... 😭

  • @DextraVisual
    @DextraVisual Год назад

    Is there any way to replay/restart the scene or is shut down and completely relaunch the only option?

    • @RehopeGames
      @RehopeGames  Год назад

      Hello , I think answer of your question is here😊 : ruclips.net/video/MNUYe0PWNNs/видео.html

    • @DextraVisual
      @DextraVisual Год назад

      @@RehopeGames Perfect, exactly what I was looking for. Many thanks.

    • @RehopeGames
      @RehopeGames  Год назад

      @@DextraVisual Your welcome bro 😊😊

  • @Reelology47
    @Reelology47 Год назад +2

    Where can we download these buttons?

    • @RehopeGames
      @RehopeGames  Год назад +1

      Hi , I haven't shared it yet ,
      Thanks for your interest 🙏

    • @Reelology47
      @Reelology47 Год назад

      @@RehopeGames can u share it please?

  • @Yolanda-ly4kl
    @Yolanda-ly4kl Год назад +1

    Great Tutorial! Do you mind to share your UI buttons?

    • @RehopeGames
      @RehopeGames  Год назад

      I'll share all assets soon.
      Thanks for your interest :)

  • @loukas527
    @loukas527 7 месяцев назад

    Why are my shaders from my level 1 in 3D all fucked after i put in the UI?

  • @noor-e-nama8075
    @noor-e-nama8075 10 месяцев назад

    on click when I attach the main camera and open function, I cannot see the play game in main menu. why?

    • @reemyasser3043
      @reemyasser3043 9 месяцев назад

      did u solve it ?

    • @javideas
      @javideas 9 месяцев назад +2

      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.

    • @kasihsitompul3011
      @kasihsitompul3011 2 месяца назад

      i found the solve, do you already save the code in visual studio? if not yet, save first, and repeat drag the code

  • @YT-Demon
    @YT-Demon 5 месяцев назад

    Why is my button different to urs when I spawn it

  • @damaas9094
    @damaas9094 Год назад +1

    I love you 💖

  • @ali7979-v5u
    @ali7979-v5u 9 месяцев назад +1

    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

  • @VrGameingevans
    @VrGameingevans Год назад +1

    THANK U SO MUCH

  • @khodemeti
    @khodemeti 7 месяцев назад

    Awsome

  • @AndreSilva-yv8ng
    @AndreSilva-yv8ng 8 месяцев назад

    Where do I get the sprites that you have used?

  • @eshasingh4129
    @eshasingh4129 Год назад

    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

    • @RehopeGames
      @RehopeGames  Год назад

      Can you show the error you get ?

  • @magdalenamishevska
    @magdalenamishevska 3 месяца назад

    Thank you!!

  • @denissegarcia8892
    @denissegarcia8892 Год назад

    Why can't I drop any images to the button in the Source Image? A red circle appears, what am I doing wrong?

    • @RehopeGames
      @RehopeGames  Год назад +1

      Did you convert the image to sprite?

    • @aaronh4731
      @aaronh4731 7 месяцев назад

      @@RehopeGamesI am having the same issue and I am not sure what you mean 😅

  • @naseh446
    @naseh446 11 месяцев назад +1

    Can I download the script, I know nothing about coding

  • @winklfrix9761
    @winklfrix9761 Год назад

    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?)

    • @RehopeGames
      @RehopeGames  Год назад +2

      Check the script name and class name, both must be the same

  • @esgaming332
    @esgaming332 Год назад +1

    IT WORKS

  • @chemistryofcat2485
    @chemistryofcat2485 7 месяцев назад +1

    can you please share button images?

  • @chanakankanokmaneerat1788
    @chanakankanokmaneerat1788 11 месяцев назад

    My MainCamera is not capture the menu scene😢 How to do it😊

  • @DanBeanz
    @DanBeanz 10 месяцев назад

    THE GOAT

  • @kkrjfx
    @kkrjfx Год назад +1

    非常好的教程,感谢

  • @theone8165
    @theone8165 Год назад

    Can someone Tell me how it works when i want to Load a different game when i press play? Like my owngame.exe? Thx!

  • @David_beast
    @David_beast 18 дней назад

    Why did my textures change to all black

  • @ninjaknight612
    @ninjaknight612 11 месяцев назад

    Sorry but how do you get the assets by the way great guide man.