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

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

  • @user-qp4iz4os1n
    @user-qp4iz4os1n 8 месяцев назад +79

    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 Месяц назад

      yas

    • @JakeS-UTTP
      @JakeS-UTTP 8 дней назад

      @@lucutes2936 Plastic?

  • @aturner
    @aturner 10 месяцев назад +20

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

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

  • @BublFR
    @BublFR 6 месяцев назад +8

    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  5 месяцев назад +1

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

  • @noodlesonsuit
    @noodlesonsuit 21 день назад +1

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

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

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

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

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

    THANK you
    Really useful tip for beginners ❤

  • @HungHoang-sv9lt
    @HungHoang-sv9lt 11 месяцев назад +6

    Best tutorial video, thank you very much!

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

      Thank you so much 🙏

  • @mariovazquezperez4181
    @mariovazquezperez4181 9 дней назад

    Thank you my man! You save the day

  • @Mia_theartist8
    @Mia_theartist8 Месяц назад +4

    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  Месяц назад

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

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

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

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

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

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

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

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

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

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

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

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

      Thanks , glad to hear that 🙏

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

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

    Bro I love you dude, new subscriber

  • @Osoclevergames
    @Osoclevergames 3 месяца назад +2

    Great video thank you

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

    Great tutorial!

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

    Great video thank you very mutch

  • @lama6682
    @lama6682 4 месяца назад +1

    thank you, very easy and infromative

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

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

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

    This is the best tutorial!

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

    That helped a lot, thanks!

  • @randomstuff691
    @randomstuff691 7 месяцев назад +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  7 месяцев назад +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 🙏😊

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

    Thank you brother ❤

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

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

    good tutorial

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

    Thank you so much.

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

    Nice Helped me ALOT

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

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

  • @nirojgamal7298
    @nirojgamal7298 17 дней назад

    Thank you bro

  • @Abdul_rahman_von_yasin
    @Abdul_rahman_von_yasin 6 месяцев назад +1

    thanks. it works.

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

    Great tutorials, subscribed to your channel

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

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

    cool video)

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

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

  • @lbee394
    @lbee394 12 дней назад +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

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

    非常好的教程,感谢

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

    THE GOAT

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

    thank you

  • @poloi3440
    @poloi3440 6 месяцев назад +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 ...🙏

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

  • @Mr.Genius.67
    @Mr.Genius.67 Месяц назад

    Güzel video murat

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

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

  • @renaudst-hilaire7178
    @renaudst-hilaire7178 4 месяца назад +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  4 месяца назад +1

      Thanks for the information 👍

  • @allycat-gk5zt
    @allycat-gk5zt 6 месяцев назад +1

    grazie amico molo utile

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

  • @lucutes2936
    @lucutes2936 Месяц назад +2

    thx

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

    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

  • @damaas9094
    @damaas9094 6 месяцев назад +1

    I love you 💖

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

    thx G🗿

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

  • @laetusbeats
    @laetusbeats 6 месяцев назад +1

    thanks!

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

  • @AndreSilva-yv8ng
    @AndreSilva-yv8ng 24 дня назад

    Where do I get the sprites that you have used?

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

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

    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

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

    ❤️

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

  • @berkaysimsek7529
    @berkaysimsek7529 6 месяцев назад

    Teşekkür ederim video için

  • @syawalsofi5140
    @syawalsofi5140 10 дней назад

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

  • @gamebzee
    @gamebzee 4 месяца назад +1

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

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

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

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

    How did u make levels?

  • @arbazjaved8664
    @arbazjaved8664 14 дней назад

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

  • @sakamurat
    @sakamurat 4 месяца назад +1

    Uluslararası oynuyor öz abime bak

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

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

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

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

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

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

  • @balazsosvay-szabo804
    @balazsosvay-szabo804 Месяц назад

    W vid

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

    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?

  • @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  5 месяцев назад

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

  • @VrGameingevans
    @VrGameingevans 4 месяца назад +1

    THANK U SO MUCH

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

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

    Please, make 3D games too.

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

      I plan that for next time

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

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

    1st like😊

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

  • @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😊 : ruclips.net/video/MNUYe0PWNNs/видео.html

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

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

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

      @@DextraVisual Your welcome bro 😊😊

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

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

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

  • @zainabiman-rw5ot
    @zainabiman-rw5ot Месяц назад

    can you share the sprites please 🙏🏼

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

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

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

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

  • @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 Месяц назад

      did u solve it ?

    • @javideas
      @javideas Месяц назад +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.

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

    Yo totally irrelevant but you got that strong Bulgarian accent, are you from Bulgaria?

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

  • @haikalhilmi5410
    @haikalhilmi5410 17 дней назад

    where can i get the code?

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

    Oh and ir is posible that you can update the video to now pls

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

      Can you give detail pls what did you wanna ?

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

  • @baydanemre
    @baydanemre 5 месяцев назад +1

    are you turkish?, your accent tells me that :D

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

      Yea Alright I'm a Turkish , you caught me bro 😅😅

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

      @@RehopeGames 😂🙌

  • @MohanRaj-gu3wh
    @MohanRaj-gu3wh 4 месяца назад

    I want the custom buttons that you have created

    • @MohanRaj-gu3wh
      @MohanRaj-gu3wh 4 месяца назад

      Kindly reply soon bro

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

      Hi ,
      I'm gonna share the all assets soon, thanks for your interest. 🙏

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

    Please, can you share your buttons with us?

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

      I'll share all assets soon thanks for your interest 🙏

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

  • @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 Месяц назад

      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.

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

    how to get playgame () option