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

КОМЕНТАРІ • 262

  • @user-qp4iz4os1n
    @user-qp4iz4os1n 8 місяців тому +83

    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!

    • @RehopeGames
      @RehopeGames  8 місяців тому +2

      👌

    • @denissegarcia8892
      @denissegarcia8892 7 місяців тому +1

      you literally saved me, such an easy step was giving me so much trouble.

    • @jenyamiln
      @jenyamiln 6 місяців тому +1

      Thanks you brooo

    • @lucutes2936
      @lucutes2936 2 місяці тому

      yas

    • @JakeS-UTTP
      @JakeS-UTTP 14 днів тому

      @@lucutes2936 Plastic?

  • @aturner
    @aturner 10 місяців тому +22

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

  • @BublFR
    @BublFR 6 місяців тому +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  6 місяців тому +1

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

  • @leonardovaldivia5200
    @leonardovaldivia5200 3 місяці тому +3

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

  • @noodlesonsuit
    @noodlesonsuit 28 днів тому +2

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

  • @mariovazquezperez4181
    @mariovazquezperez4181 15 днів тому

    Thank you my man! You save the day

  • @crypeton
    @crypeton 10 місяців тому +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  10 місяців тому +1

      Thanks for nice feedback bro 🙏

  • @HungHoang-sv9lt
    @HungHoang-sv9lt Рік тому +6

    Best tutorial video, thank you very much!

  • @sumonadkeya8905
    @sumonadkeya8905 2 місяці тому +2

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

  • @Mia_theartist8
    @Mia_theartist8 2 місяці тому +5

    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  2 місяці тому

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

  • @Meteor_X
    @Meteor_X Місяць тому

    THANK you
    Really useful tip for beginners ❤

  • @believe113
    @believe113 7 місяців тому +1

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

    • @RehopeGames
      @RehopeGames  7 місяців тому

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

  • @urdaza1379
    @urdaza1379 7 місяців тому +2

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

    • @RehopeGames
      @RehopeGames  7 місяців тому

      Nice 😊
      Thanks for your feedback 🙏

  • @10ev696
    @10ev696 10 місяців тому +1

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

    • @RehopeGames
      @RehopeGames  10 місяців тому

      Thanks for your nice feedback 🙏😊

  • @vinivini2651
    @vinivini2651 4 місяці тому +1

    you is incredible, thanks !!!

    • @RehopeGames
      @RehopeGames  4 місяці тому

      Thank you so much dude , and welcome 😊

  • @iamQuicklearner
    @iamQuicklearner 2 місяці тому +2

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

  • @frankiejrey
    @frankiejrey Місяць тому

    Great tutorial!

  • @alivalishov
    @alivalishov 8 місяців тому

    That helped a lot, thanks!

  • @Osoclevergames
    @Osoclevergames 3 місяці тому +2

    Great video thank you

  • @eyejar234
    @eyejar234 Місяць тому

    Great video thank you very mutch

  • @studytime9663
    @studytime9663 Рік тому +2

    Bro I love you dude, new subscriber

  • @Pepcooo
    @Pepcooo 9 місяців тому +2

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

    • @RehopeGames
      @RehopeGames  9 місяців тому +1

      Thanks , glad to hear that 🙏

  • @zizotoons543
    @zizotoons543 Місяць тому

    Thank you brother ❤

  • @jaykishansingh1
    @jaykishansingh1 Місяць тому +1

    Thank you so much.

  • @lama6682
    @lama6682 4 місяці тому +1

    thank you, very easy and infromative

  • @dazefpe4135
    @dazefpe4135 4 місяці тому +1

    This is the best tutorial!

  • @randomstuff691
    @randomstuff691 8 місяців тому +6

    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  8 місяців тому +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 🙏😊

  • @LikeLeonmm
    @LikeLeonmm 8 місяців тому +1

    Nice Helped me ALOT

    • @RehopeGames
      @RehopeGames  8 місяців тому

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

  • @nirojgamal7298
    @nirojgamal7298 24 дні тому

    Thank you bro

  • @SpiritoftheForestDev
    @SpiritoftheForestDev 10 місяців тому +1

    thank you this is good tutorial you Explained everything so good

    • @RehopeGames
      @RehopeGames  10 місяців тому

      I'm pleased to hear that. 😊
      Thanks for your nice feedback 🙏

    • @SpiritoftheForestDev
      @SpiritoftheForestDev 10 місяців тому

      @@RehopeGames you'er welcome

  • @khodemeti
    @khodemeti День тому

    Awsome

  • @Mr.Genius.67
    @Mr.Genius.67 Місяць тому

    Güzel video murat

  • @sabinatv6464
    @sabinatv6464 2 місяці тому +2

    cool video)

  • @Abdul_rahman_von_yasin
    @Abdul_rahman_von_yasin 6 місяців тому +1

    thanks. it works.

  • @jpeterptv8029
    @jpeterptv8029 3 місяці тому +2

    good tutorial

  • @seesooner3112
    @seesooner3112 5 місяців тому

    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

  • @markgray7053
    @markgray7053 Рік тому

    Great tutorials, subscribed to your channel

  • @biged606
    @biged606 Рік тому +1

    1st like😊

  • @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 👉 ua-cam.com/video/HBEStd96UzI/v-deo.html

  • @kkrjfx
    @kkrjfx Рік тому +1

    非常好的教程,感谢

  • @trriipy
    @trriipy Місяць тому

    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!

  • @ronaldagamaescobedo3980
    @ronaldagamaescobedo3980 2 місяці тому

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

  • @DanBeanz
    @DanBeanz 2 місяці тому

    THE GOAT

  • @lbee394
    @lbee394 18 днів тому +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

  • @Mr_Professional_Guy
    @Mr_Professional_Guy 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.

  • @poloi3440
    @poloi3440 7 місяців тому +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  6 місяців тому

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

  • @PolusSandbox
    @PolusSandbox 9 місяців тому +1

    thank you

  • @gamebzee
    @gamebzee 4 місяці тому +1

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

  • @damaas9094
    @damaas9094 7 місяців тому +1

    I love you 💖

  • @syawalsofi5140
    @syawalsofi5140 16 днів тому

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

  • @renaudst-hilaire7178
    @renaudst-hilaire7178 5 місяців тому +2

    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  5 місяців тому +1

      Thanks for the information 👍

  • @Elementor1001.
    @Elementor1001. 4 місяці тому

    thx G🗿

  • @laetusbeats
    @laetusbeats 6 місяців тому +1

    thanks!

  • @lucutes2936
    @lucutes2936 2 місяці тому +2

    thx

  • @berkaysimsek7529
    @berkaysimsek7529 6 місяців тому

    Teşekkür ederim video için

  • @theone8165
    @theone8165 5 місяців тому

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

  • @AndreSilva-yv8ng
    @AndreSilva-yv8ng Місяць тому

    Where do I get the sprites that you have used?

  • @biged606
    @biged606 Рік тому +4

    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!🙂

  • @alirj9546
    @alirj9546 Місяць тому +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

  • @Yolanda-ly4kl
    @Yolanda-ly4kl 7 місяців тому +1

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

    • @RehopeGames
      @RehopeGames  7 місяців тому

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

  • @loukas527
    @loukas527 5 днів тому

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

  • @NinjaKnight612
    @NinjaKnight612 3 місяці тому

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

  • @allycat-gk5zt
    @allycat-gk5zt 6 місяців тому +1

    grazie amico molo utile

  • @winklfrix9761
    @winklfrix9761 10 місяців тому

    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  10 місяців тому +2

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

  • @VrGameingevans
    @VrGameingevans 4 місяці тому +1

    THANK U SO MUCH

  • @TristanLahnala95
    @TristanLahnala95 6 місяців тому +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  6 місяців тому

      You can watch this video first ua-cam.com/video/4fvQUK2pPds/v-deo.html

  • @balazsosvay-szabo804
    @balazsosvay-szabo804 Місяць тому

    W vid

  • @eshasingh4129
    @eshasingh4129 9 місяців тому

    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  9 місяців тому

      Can you show the error you get ?

  • @kou2558
    @kou2558 11 місяців тому +4

    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

    • @RehopeGames
      @RehopeGames  11 місяців тому

      What would you like to see on the scorer board?
      Also thanks for nice feedback 😊🙏

    • @bb1kari
      @bb1kari 7 місяців тому

      i love your pfp

  • @KappLXD
    @KappLXD Рік тому +1

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

  • @madhukamelan7014
    @madhukamelan7014 11 місяців тому +1

    ❤️

  • @mnkvr317
    @mnkvr317 Місяць тому

    yo can you put the script on the description they just keep giving me errors

  • @DextraVisual
    @DextraVisual 11 місяців тому

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

    • @RehopeGames
      @RehopeGames  11 місяців тому

      Hello , I think answer of your question is here😊 : ua-cam.com/video/MNUYe0PWNNs/v-deo.html

    • @DextraVisual
      @DextraVisual 11 місяців тому

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

    • @RehopeGames
      @RehopeGames  11 місяців тому

      @@DextraVisual Your welcome bro 😊😊

  • @overkill1603
    @overkill1603 6 місяців тому

    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  6 місяців тому

      Check the Method , it must be Public !

    • @Jamie-il6tv
      @Jamie-il6tv 5 місяців тому

      @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 Місяць тому

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

  • @donavanbealer641
    @donavanbealer641 4 місяці тому

    How did u make levels?

  • @leoprzybilla8529
    @leoprzybilla8529 10 місяців тому +1

    This was a really great video but where could I get the Photoshop files for all the things thanks :)

    • @RehopeGames
      @RehopeGames  10 місяців тому +1

      Thanks for your interest 🙏
      I'll share all project files soon

    • @leoprzybilla8529
      @leoprzybilla8529 10 місяців тому

      @@RehopeGames that’s great I am so excited :) could you tell me a more exact date ?

    • @RehopeGames
      @RehopeGames  10 місяців тому

      @@leoprzybilla8529 you can contact me with email 😉

    • @leoprzybilla8529
      @leoprzybilla8529 10 місяців тому

      @@RehopeGames what is your e-mail ? :)

    • @RehopeGames
      @RehopeGames  10 місяців тому

      @@leoprzybilla8529 rehopegames@gmail.com

  • @denissegarcia8892
    @denissegarcia8892 7 місяців тому

    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  7 місяців тому +1

      Did you convert the image to sprite?

  • @BuggieBoiOfficial
    @BuggieBoiOfficial 4 місяці тому

    if the play button script is not working for you try settingthe number at the end to 0

  • @CatnipOfDestiny
    @CatnipOfDestiny 4 місяці тому

    hey dude nice video also r u a turk?????????????????

  • @chanakankanokmaneerat1788
    @chanakankanokmaneerat1788 3 місяці тому

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

  • @VineethMari
    @VineethMari 5 місяців тому

    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?

  • @The_Real_Dreak
    @The_Real_Dreak 5 місяців тому +2

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

  • @DevPlayHub
    @DevPlayHub 2 місяці тому +1

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

    • @Pjoor_YT
      @Pjoor_YT 2 місяці тому +1

      same

    • @javideas
      @javideas 2 місяці тому

      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.

  • @saqibjaved1900
    @saqibjaved1900 6 місяців тому +1

    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

    • @RehopeGames
      @RehopeGames  6 місяців тому

      Thank you so much for your feedback. 🙏
      I will take it into consideration .

  • @sakamurat
    @sakamurat 4 місяці тому +1

    Uluslararası oynuyor öz abime bak

  • @haikalhilmi5410
    @haikalhilmi5410 24 дні тому

    where can i get the code?

  • @abhiramks9890
    @abhiramks9890 3 місяці тому

    how to get playgame () option

  • @zainabiman-rw5ot
    @zainabiman-rw5ot Місяць тому +1

    can you share the sprites please 🙏🏼

  • @bhope7888
    @bhope7888 3 місяці тому

    Bro Why i cant see the MainMenu > Play ?
    i already drag Main menu to Onclick of Play

    • @bhope7888
      @bhope7888 3 місяці тому

      Got it I miss " in code

  • @Hogrider12313
    @Hogrider12313 Рік тому

    I got error Assets\MainMenu.cs(9,9): error CS0103: The name 'SceneManager' does not exist in the current context

    • @RehopeGames
      @RehopeGames  Рік тому

      Hello , I think you forgot to add Scene Management Library (using UnityEngine.SceneManagement;)

    • @Hogrider12313
      @Hogrider12313 Рік тому

      @@RehopeGames it fixed but now I got UnityEditor.SceneView:ShowCompileErrorNotification ()

  • @isimsizoyuncular30orj
    @isimsizoyuncular30orj 10 місяців тому +2

    İ created another world for the options button your version looks like scratch

  • @Plante-aromatiqeu
    @Plante-aromatiqeu 6 місяців тому

    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  6 місяців тому

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

    • @Plante-aromatiqeu
      @Plante-aromatiqeu 6 місяців тому

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

  • @KeraMJ-dn4fs
    @KeraMJ-dn4fs 8 місяців тому +1

    Please can you make video of Vs code 2D game stated page please 😊

    • @RehopeGames
      @RehopeGames  8 місяців тому

      Could you please elaborate a little on what you want?
      Thanks for your interest 😊

  • @BeamingABeam
    @BeamingABeam 10 місяців тому +2

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

    • @BeamingABeam
      @BeamingABeam 10 місяців тому +2

      Never mind I fixed it.

    • @RehopeGames
      @RehopeGames  10 місяців тому

      👍😊

    • @sj29215
      @sj29215 10 місяців тому +1

      Same problem here, what did you do?

    • @BeamingABeam
      @BeamingABeam 10 місяців тому

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

  • @arbazjaved8664
    @arbazjaved8664 20 днів тому

    please when you upload a video if assests are free please give their link in des

  • @noor-e-nama8075
    @noor-e-nama8075 2 місяці тому

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

    • @reemyasser3043
      @reemyasser3043 2 місяці тому

      did u solve it ?

    • @javideas
      @javideas 2 місяці тому +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.

  • @TotallylegitYH
    @TotallylegitYH 6 місяців тому

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

    • @RehopeGames
      @RehopeGames  6 місяців тому +1

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

    • @TotallylegitYH
      @TotallylegitYH 6 місяців тому

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

  • @naseh446
    @naseh446 3 місяці тому

    Can I download the script, I know nothing about coding

  • @ferasalfarsi897
    @ferasalfarsi897 8 місяців тому

    Please, make 3D games too.

    • @RehopeGames
      @RehopeGames  8 місяців тому

      I plan that for next time

  • @CAM-IS-NOT-REC
    @CAM-IS-NOT-REC 11 місяців тому

    when i press the play button the game doesnt load for me, why?

    • @RehopeGames
      @RehopeGames  11 місяців тому

      Can you show me the error message you got?