How To Create A Main Menu System In Unreal Engine 4 | UE4 Tutorial

Sdílet
Vložit
  • čas přidán 3. 07. 2024
  • Hey guys, in today's video I'm going to be showing you how to set up and create a working main menu system for your game. This will include a main menu, credits, options and graphics settings, and a quit button.
    #Ue4 #UnrealEngine4 #Ue4Tutorial
    ___________________________________________________________________________
    00:00 - Intro
    01:32 - Creating The Main Menu
    08:09 - Creating The Options And Credits Menu
    12:02 - Coding The Functionality And Buttons
    17:00 - Opening The Main Menu (With Music)
    19:23 - Final Overview
    20:36 - Outro
    ___________________________________________________________________________
    If you enjoy make sure to subscribe: / @mattaspland
    Join My Discord Server: / discord
    Follow Me On Twitter: / matt_aspland
    Follow Me On Instagram: / matt_aspland_
    All My Social Media Links: linktr.ee/MattAspland
    ___________________________________________________________________________
    If you want to support me, there are many different ways of doing so. This is by no means expected or required. It is just a nice support :)
    Patreon: / mattaspland
    PayPal: paypal.me/mattaspland?country...
    Ko-Fi: ko-fi.com/mattaspland
    Thank you :)
    ___________________________________________________________________________
    To access the project files and screenshots from the video, check out my Patreon above!
    My Public Video List: trello.com/b/7vJgXzBm
    Unreal Engine 4 Tutorials Playlist: • Unreal Engine 4 Tutorials
    The Basics Of Nodes Playlist: • The Basics Of Nodes In...
    ___________________________________________________________________________
    ♫Outro Song♫
    ●Kronicle - Chill Noons

Komentáře • 123

  • @RobinDale50
    @RobinDale50 Před 2 lety +38

    Yes we really NEED a good save/load tutorial that can simply show how it works

    • @MattAspland
      @MattAspland  Před 2 lety +20

      Thanks - I'll definitely make one soon!

  • @PatrickTheDM
    @PatrickTheDM Před rokem +1

    I finally got to a point where I had to make a start menu and you came through 100% again Matt! I can't thank you enough.

  • @samuraiyt4453
    @samuraiyt4453 Před 2 lety +1

    Saw the intro and the menu looks NICE!

  • @hakanwennlof9739
    @hakanwennlof9739 Před rokem +2

    Thanks a million, this was great! You take it so nicely step-by-step, and the end result is exactly what I needed :)

  • @CAB355
    @CAB355 Před 2 lety

    Matt thanks for the video, you're on top as always, I'll be waiting for a continuation in this direction.

  • @zsolezk
    @zsolezk Před rokem

    Good tempo, and just enough explanation. Danke!

  • @geoffrey3668
    @geoffrey3668 Před 2 lety

    Nic tutorial! Looking forward for the series!

  • @subrootsound
    @subrootsound Před 2 lety

    Another great video, much appreciated Matt!

  • @Dawschitz
    @Dawschitz Před 2 lety +1

    Thanks for these great instructional videos. Everything is short, clear and understandable. Shake your hand.

  • @-Chadnik
    @-Chadnik Před 4 měsíci

    Just started creating my first game and so far your videos have been a massive help. You are definitely going into the credits xD

  • @nkorochinaechetam2516

    wonderful and straight guide!

  • @dkns-indiegamedevjourneyso3113

    Another great tutorial.. thank you Matt. 😃

  • @R1GBYdev
    @R1GBYdev Před 2 lety +19

    looks great so far, definetly make an options and mauktiple save files, that would be dope! Keep up the great work!

  • @r_e_d_squirrel367
    @r_e_d_squirrel367 Před 2 lety

    your making my game look good! thanks

  • @fosterboy1587
    @fosterboy1587 Před 2 lety

    thanks mate i would love too see more of this would be amazing

  • @BlackScreen0000
    @BlackScreen0000 Před rokem +1

    THANK YOU SOO MUCH! You helped me a lot

  • @ChuckstaGaming
    @ChuckstaGaming Před rokem

    Awesome stuff!
    Blimey, I have gotten so much help from these vids that I may have to add Matt's name to the list of developers of my game! He'll have to feature in the credits for sure!

  • @Edi_plays_horror_games
    @Edi_plays_horror_games Před 21 dnem +1

    IT ACTUALLY WORKED!

  • @Charlie_Chaos
    @Charlie_Chaos Před rokem

    great tutorial, i needed a main menu for my uni project so thanks, i have added your name to the credits for the design hope thats ok

  • @tyronejackson1491
    @tyronejackson1491 Před 2 lety +3

    Matt Aspland again with a very good tutorial! We love you dude, please continue making this!

    • @MattAspland
      @MattAspland  Před 2 lety +2

      Thank you so much for your support!

  • @inspiredexpired9137
    @inspiredexpired9137 Před měsícem

    Followed another tutorial somewhere along the way for saving and ruined my game. Not sure if i commented but going back through this one I have added to my list of good working tutorials. I went from UE5.3 back to last version being 4.27 and worked like a charm thanks again! starting over sucks but maybe ill learn one more time.

  • @soldierofodin6769
    @soldierofodin6769 Před 2 lety

    Great video again, thnx sir!

  • @thabudmaster
    @thabudmaster Před 2 lety

    GREAT! would love to see a bit more, options & save yes please :)

  • @risingwolf2112
    @risingwolf2112 Před 2 lety +3

    Thank you so much, yes how to save would be great. Thanks for taken the time to help me learn.😎

    • @MattAspland
      @MattAspland  Před 2 lety +3

      Glad it was helpful! I'll add that to my list!

  • @aleksboboychev
    @aleksboboychev Před 9 měsíci

    Thank you!

  • @justaceav8091
    @justaceav8091 Před rokem

    Bro, i love you so much!

  • @robertprescott9577
    @robertprescott9577 Před 2 lety

    Awesome 👌 thanks

  • @richest_in_the_world
    @richest_in_the_world Před 5 měsíci

    best tutorial 🥶🥶

  • @necroixes8206
    @necroixes8206 Před 2 lety +3

    This was amazing! I have been trying to learn how to make a game through Unreal Engine, but so many of the videos I find are many versions older than mine and I dont see what they see or something was added that hinders me from continuing because it wasn't a thing in previous versions I am glad you are making these kind of videos and I will follow along with each clip so that I one day could publish a game! Thank you so much for what you do!

  • @donutdevelopment
    @donutdevelopment Před rokem

    Thanks for the excellent tutorial! this really helped me make my first game.

  • @paladin995893
    @paladin995893 Před rokem

    worked first time
    😃

  • @aaronvalentinalferez2306

    Thank you for your grreat work!!! And yes! Do a tutorial on Importing and Using Custom Fonts, please.

  • @alexspeed8888
    @alexspeed8888 Před rokem

    Thanks!

  • @pufisd
    @pufisd Před 2 lety

    Hey Matt! I want to thank you so much for your tutorials!I almost finished my game.If you didnt make these tutorials i would never get here😄

  • @ADVANCEDWARS
    @ADVANCEDWARS Před rokem

    So i used this tutorial on ue5 and it works

  • @kazz4646
    @kazz4646 Před 2 lety +3

    Not sure if anyone else has said this, but you can also load the levels by Object Reference so you don't need to worry about typing out the level names!

  • @Ineedaburrito
    @Ineedaburrito Před rokem

    Thank You

  • @MrTreeGuy
    @MrTreeGuy Před 2 lety +1

    nice!

  • @tr1n1ty77
    @tr1n1ty77 Před 11 měsíci

    OMG thank you!!!11

  • @ChrisHavok
    @ChrisHavok Před 2 lety +6

    Interesting. Now the question is: How do we allow gamepad input on the main menu level?

    • @RandomDude00001
      @RandomDude00001 Před rokem +3

      try go to inputs of your engine settings and add the inputs you want

  • @MrTerrorM
    @MrTerrorM Před 2 lety

    Lovely

  • @besogociridze
    @besogociridze Před 2 lety

    thanks alot

  • @brianwheatley8520
    @brianwheatley8520 Před 2 lety

    Nice tutorial! How would you set up a key to take you back to the menu?

  • @gradertfamilymakes
    @gradertfamilymakes Před 2 lety +3

    I have this issue where when I load the Main Menu, the UI elements for health and stamina load on the menu as well.

  • @Thunderony
    @Thunderony Před 2 lety

    Hi i used your other tutorials a few days for the main menu is there any significant difference? I would really love a Save/load tutorial

  • @derf0007
    @derf0007 Před rokem

    Hey Matt, If I wanted to have a video play on loop as the background for the menu how would that be implemented?

  • @aydntamkafa984
    @aydntamkafa984 Před 2 lety

    Thaks Its great and work but how can i add Save/Load game button? Please upload a video with this content. Thanks again.

  • @cesarsarmientojr.5269

    Do you have a way of selecting the buttons with a controller? Works great on keyboard.

  • @wesleyferreira6412
    @wesleyferreira6412 Před rokem

    Gostei muito desse tutorial, parabens, está me ajudando muito a criar os meus menus.
    eu tenho uma duvida sobre Level Variant, tem como usar uma tecla "E" por exemplo, para trocar os objetos da cena?
    ___
    I really liked this tutorial, congratulations, it is helping me a lot to create my menus.
    I have a doubt about Level Variant, is there a way to use an "E" key, for example, to change objects in the scene?

  • @MartKart8
    @MartKart8 Před 2 lety

    So I would say in Credits animations by Matt Aspland, that's for the Vaulting mesh and crouching Mesh.

    • @MattAspland
      @MattAspland  Před 2 lety

      You wouldn't need to credit me for those animations as I believe I got those from mixamo.

  • @Moaedmsawer
    @Moaedmsawer Před rokem

    You The Better Ever ( Please Need Help ... When export it to android the Start button not Working so i need andrid blue print settings ) thnx

  • @zonian8782
    @zonian8782 Před rokem

    thank you for this been strugling with my 3d widget and went for direct viewport instead and found the bug it was the personalized button widget the button was hovering but not running the code😅

  • @ArcticThunderBF3
    @ArcticThunderBF3 Před rokem

    Could you finish this menu system and show how to save the sound sliders and volume settings??

  • @user-qd3ul9yh7n
    @user-qd3ul9yh7n Před rokem

    so sweet

  • @ErodonTV
    @ErodonTV Před 7 měsíci

    Great video! How do you run C++ code on canvas button press?? Have a great day!

  • @RandomDude00001
    @RandomDude00001 Před rokem

    Uhmm will this disable all of the hud widgets in ym level

  • @OgnenBlazhevski
    @OgnenBlazhevski Před rokem

    so this is a good tutorial but for the music background, i have followed your nodes but when i try to use it in my menu it doesnt want to play any solutions??

  • @SkemeKOS
    @SkemeKOS Před dnem

    I could only follow along until 12:10 because I dont have a BackButton variable(or a Background variable).
    Do I have to create them myself? If so, how?
    EDIT: Nevermind, I figured it out. When creating buttons using UE5.4.2, it doesnt have the tick for "Is Variable" enabled as default next to where you give the button its name, so I just had to go back and enable that tick for each button I created.

  • @israeloconnor7381
    @israeloconnor7381 Před 2 lety +1

    That looks great. could you make a loading screen with a progress bar at some point?

  • @tala4577
    @tala4577 Před 2 lety

    how to access again the main menu while playing the main game. You can quit the game by pressing the esc button but that when using the unreal editor. But after you packaged the game then the problem is how to access the menu again while inside or playing the game. Do i have to put a button inside the game?

  • @AurynGaming
    @AurynGaming Před 2 lety +2

    Confused with this video, you already made it a few months ago right? whats different?

  • @VickySharma-hd9if
    @VickySharma-hd9if Před 2 lety

    Heys Matt. I am facing a weird issue where my mouse cursor wont hide and i am not able to look around without clicking and dragging my mouse on the screen

  • @KratonWolf
    @KratonWolf Před rokem

    I did all the same things for this, and for some reason the button click to take me into the credits (or in my case, Settings. I don't have a separate credits widget page, I have the credit for made with unreal on the main menu in the corner, and have it saying for full credits see store page) widget, seems to not work. It's not adding the new widget, but is still removing the main menu widget. Not sure why.
    After testing, I get a warning "The Widget 'WB_MainMenu_C' was already added to the screen." after trying to add the settings menu widget. I have double checked my code and On Clicked (SettingsButton) calls the node Create WB Menu Settings Widget node, and the class is correctly set (obviously from the node name). I suspect it might be an issue with the Remove From Parent node maybe removing both. Not sure, but if one widget is creating another widget, is that second widget considered a child of that first widget? Cause if so, removing the parent would remove anything attached to it.

  • @pyt0nmusic363
    @pyt0nmusic363 Před rokem

    I have a problem here, I can't really see a widget while i'm checking it in editor but all blueprints are compiled correctly. I don't know what to do.

  • @Patrick-JohnVillanueva-Malard

    In Unreal Engine 5.2.1, I don't know how to active the advance feature of adding a line on the text block. Therefore, I added the spacer having 35 height size. 😅

  • @PsychoticSorcerer666
    @PsychoticSorcerer666 Před 20 dny

    This is why I swear by your tutorials: you have tutorials on how to do specific things, instead of a whole tutorial series that relies on watching previous videos and assumes the viewer wants to make the game in a very specific way.

  • @rangerforceproject4182
    @rangerforceproject4182 Před 11 měsíci

    Does this work for gamepad?

  • @zimai4201
    @zimai4201 Před rokem

    How to use ue4 button keeps state.

  • @mirrorglassgames
    @mirrorglassgames Před 2 lety +3

    If you can do a movie background menu, that would be perfection. i've seen some tutorials on it, but the new update of Unreal has made them obsolete

    • @Cpen5311
      @Cpen5311 Před 2 lety +1

      seconded on this! Would love to learn how you add in looping videos or gifs instead of a static image?

    • @mirrorglassgames
      @mirrorglassgames Před 2 lety +1

      @@Cpen5311 I actually figured out how to do it. Think i'm going to upload a tutorial on my page

    • @Cpen5311
      @Cpen5311 Před 2 lety

      @@mirrorglassgames Oh awesome! Please let me know either way! :)

    • @Cpen5311
      @Cpen5311 Před 2 lety +1

      @@mirrorglassgames any update on your tutorial?

  • @daedalus6433
    @daedalus6433 Před 4 měsíci

    For some reason loading into my top down level through the start button makes my input not register until I double-click. This is despite setting input to Game Only
    EDIT: Fixed it by setting input to be both Game and UI, and not hiding cursor during capture

  • @mootzartdev
    @mootzartdev Před 2 lety

    Sweet! Are you going to do a version of this for UE5? i know its likely the same. But not sure if there is a 'better way' to do this stuff in UE5 with the layers system and stuff...

    • @monster6236
      @monster6236 Před rokem +1

      I did it all in UE5, works as intended

    • @mootzartdev
      @mootzartdev Před rokem

      @@monster6236 yeah me to. Just sometimes there are new and smoother ways to do these types of things with updates.

  • @DanielPeskov
    @DanielPeskov Před 2 lety

    PROBLEM. The widget "Main Menu C was already added to the screen plz help

  • @arsenic3714
    @arsenic3714 Před 15 dny

    Quick question for anyone. My title and buttons are aligned where I want them in the editing screen or whatever it’s called but when I press and play the level, my buttons and title are shifted ? And I fixed it by shifting my title off the background image in the editor but I don’t think that’s the right way.

  • @stop-motion-verse
    @stop-motion-verse Před 6 měsíci

    This worked great, but broke the movement part of the game once I was through the menu.

  • @xherocommunity2412
    @xherocommunity2412 Před 2 lety

    Hey Matt, when I click the Play button it causes big lag as the loaded map has a lot of assets. Basically I can see the asset spawning/loading. In your example it seems to load very fast as the level is empty. Any solution for a more realistic map? Maybe show how to add a loading screen when clicking Play? Cheers.

  • @DeadEndGames
    @DeadEndGames Před rokem

    I'm using ue5 and whenever I press back from my pause menu, everything freezez except my cursor

  • @ted301
    @ted301 Před 2 lety +1

    i am pressing the start button, but the main menu screen doesnt disappear . What might be the problem?

    • @NovaBloxOfficial
      @NovaBloxOfficial Před rokem

      It Is My problem To Man.

    • @zeloshh
      @zeloshh Před rokem

      Instead of using "Open Level by Name" in your Blueprint try using "Open Level by Object Reference"

  • @captainsligou1797
    @captainsligou1797 Před 2 lety

    Hi Matt, Great job on your channel, I have a problem, when I play the Menu level, I hear the sounds of the footstep of the character, I have the music and the footstep in same time.
    I search everywhere long time but I can not find where is the problem. So if you are an idea ?

    • @dreambadger
      @dreambadger Před rokem +1

      Okay I fixed it by setting the default gamemode to the Base one, and then in my other levels in World Settings I set Gamemode override to the one I normally use. There's probably some easier way to sort this, but it's definitely game modes that causes this problem. Your default game mode was spawning the character even in the mainmenu, off screen, and looping through your footsteps sound cue.

  • @studiobaxter1242
    @studiobaxter1242 Před rokem

    Well that's very cool. Something I don't understand yet however, now that I have a new starting map with the menu, I can't hit F11 for full screen from the viewport, after that map is loaded. I have to hit F11 first, and then load the game.
    It's not a big issue, and it works fine in a standalone player, but curious whether this F11 thing would also happen in packaged game.

    • @MattAspland
      @MattAspland  Před rokem +1

      Firstly, thank you for your support! Secondly, that is strange, I've not encountered that myself before. If it doesn't happen in standalone, then it will be fine and working in a packaged game as well. It sounds like a PIE bug, which engine version are you using?

    • @studiobaxter1242
      @studiobaxter1242 Před rokem

      @@MattAspland
      5.1. I don't think it's a big issue, but curious. Thanks for the ongoing tutorials, immensely valuable and I'm have a great time learning.

  • @K_I_N_E_X
    @K_I_N_E_X Před 2 lety

    You should make a tutorial how to make a main menu but instead of a Picture you should put a video

  • @frankrecords98
    @frankrecords98 Před 2 lety

    Nice video as always :)
    I have the problem that the mouse keeps disappearing in the menu when clicking anything but the buttons.
    Is that normal?
    EDIT: Ok nevermind I found the problem on my own, forgot to connect a node :D

  • @Snnoothie
    @Snnoothie Před 2 lety

    hello matt aspland here such a case i gave an error and i can not understand why, i do not blame you just i only teach ue4, please answer me and help

  • @beastNick7713
    @beastNick7713 Před rokem

    i have a problem when i hit play i cant walk and shoot. HOW I FIX THIS PLEASE HELP!!!

    • @dreambadger
      @dreambadger Před rokem

      Did you figure it out? I'm guessing different gamemodes are what causes these kinds of issues.

  • @galberger3937
    @galberger3937 Před rokem

    Hi.
    When i code the start button and play the game my character fall from my map.
    How to fix it?

  • @imspencer06
    @imspencer06 Před rokem

    When I press play it just throws me into my game. How can I fix this? (Edit) I want to be able to work on my game level, but have the menu appear when I start it. So far this only works if I open up the menu level first.

    • @batman576
      @batman576 Před rokem

      PLEASE TELL ME YOUVE FOUND A FIX FOR THIS, IVE BEEN LOOKING EVERYWHERE PLEASE!!!

  • @simitmc
    @simitmc Před 2 lety

    Everything Happened But If We Click the Start Button, The Game Doesn't Enter, Only The Song Starts Again

  • @EOOOOOOOOOOOO
    @EOOOOOOOOOOOO Před 2 lety

    17:22

  • @hurtfulpump5063
    @hurtfulpump5063 Před rokem

    11:46 whenever I try to compile IT ALWAYS SAYS THIS STUPID DUMB MESSAGE *On CLiCKed ButToN 150 DoEs NoT hAve a VALId MatcHINg ComPoNeNT!11!* AND *On CLiCKed ButToN 89 DoEs NoT hAve a VALId MatcHINg ComPoNeNT!11!* HELP ME

  • @Hypy-Cat
    @Hypy-Cat Před 2 lety

    Haha, now the loading screen with loading progress bar? XD

  • @dmitr6926
    @dmitr6926 Před 4 měsíci

    ♪(^∇^*)(๑•̀ㅂ•́)و✧ Thank'ya!

  • @ryanpetten8066
    @ryanpetten8066 Před 2 lety +2

    when i launch the game and click on credits from my main menu it goes to black screen and gives error that says mainmenu_c is already open, any help? followed exactly as he did. im using ue5.0.1. the exit one works as it should

    • @ryanpetten8066
      @ryanpetten8066 Před 2 lety

      Update #1.
      Was thinking about it and for me I'm thinking that duplicating the main menu page may be the issue I'm having. I'm gonna try and make a new credits page without duplicating and see if that solves the issue. If it does then im guess the options page will have the same issue into the next video. Will update

    • @ryanpetten8066
      @ryanpetten8066 Před 2 lety +1

      Update #2
      nvm i fixed it, I didnt have the return value plugged into the target slot on the add to viewport widget for whatever reason, problem solved though!

    • @axelunder472
      @axelunder472 Před rokem

      @@ryanpetten8066 thx man same thing happened to me and this helped

  • @pescadilla2008
    @pescadilla2008 Před 2 lety

    Is this a system? Is too basic... xDD

  • @youtubedeletestheoppositio8188

    How do we make custom buttons instead of the standard rectangles. I want my main menu to display 3 different images so the user can then click one which will then take them into a short animation. So say there is a football, a golf club and a tennis racket. When the user first loads into the game, I created a main menu level but I want to be able to use those images as buttons so a person can click on the football let’s say and it takes them to a short animation.
    Does this make sense? Please help lol!