UE5 Common UI Guide: A Complete Guide to Inputs & Widgets

Поділитися
Вставка
  • Опубліковано 24 лип 2024
  • Welcome to our UE5 Common UI crash course! If you're diving into game development or just curious about creating cool interfaces in Unreal Engine 5, you're in the right place.
    Buy Me a Coffee: buymeacoffee.com/mrbutier
    Join my Discord: / discord
    Xelu's FREE Controller Prompts: thoseawesomeguys.com/prompts/
    Here's the scoop:
    UI Basics:
    - We're starting simple, making sure everyone can follow.
    Inputs: Learn how to make your game react to players in real time.
    Widgets: We'll play with some fun UI elements that bring your game to life.
    Why tune in?
    Easy Steps:
    - I'll walk you through everything, clear and straightforward.
    Real Examples: See how these tools work in actual games.
    Join Us: Got questions or ideas? Drop them in the comments!
    Extras:
    - Grab some handy resources and tips from the video to level up your UI game.
    Chapters:
    0:00 Introduction
    1:52 Project Settings
    7:15 Input Blueprints
    17:33 Controller Input Data
    24:33 Main Menu Level
    28:27 Common Ui Widgets
    36:45 Common Ui Buttons
    43:09 Common Text Styles
    45:04 Create Functional Widget
    47:24 Common Activatable Stack
    50:59 Create a Main Menu
    56:42 Demo Controller Inputs on Buttons
    57:45 Set Default Input to Gamepad
    1:00:07 Create PopUp Stack
    1:03:23 PopUp Widgets
    1:29:02 Outro

КОМЕНТАРІ • 72

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

    This video was made on Unreal Engine 5.3 and I highly recommend when using Common Ui to upgrade to 5.4 as it address many issues that appeared in 5.3 with Common Ui in blueprints such as default confirm/back buttons unable to change, common button base events being fixed/renamed, ComboBox' item backgrounds are changeable, and more!
    Those who wanted to make sure the Widget did not disappear when using the back button, check out the video going over this here:
    ua-cam.com/video/j8FSscTNoj4/v-deo.html&ab_channel=MrButier

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

    Damn this is awesome!
    I'm glad to see that there are finally guides an tutorial complete enough for this framework :D
    I'm also working on a tutorial series about how to use CommonUI by implementing a part of the Main Menu of The Last of Us Part II.

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

      Oooo would love to see it when its out! Any additional guides for Common Ui is extremely helpful, would love to know when its out.

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

    Another amazing tutorial thank you soo much for these. If dev work doesn't work out, you 100% have a future in teaching. Keep up the amazing vids 💪

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

      Thank you!! The ongoing support by everyone is what keeps me going 💪

  • @KoraOnEarth
    @KoraOnEarth 12 днів тому

    Thank you so much for the video!

    • @MrButiier
      @MrButiier  12 днів тому +1

      Hi Kora!
      1. I would still highly recommend using Common UI in a project with keyboard/mouse only, the ability to add styles in widgets is extremely useful. Just under the settings of Common UI -> Platform Input -> Select whichever platform you're trying to support -> turn off "Supports Gamepad.
      2. This one is a bit tricky, I haven't released a video of a solution to 100% cover ideal mouse/keyboard functionality but it is a solution right now that still does 95% of the job. I go over here here: ua-cam.com/video/aDoNLyUVy2o/v-deo.html

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

    Thank you so much for this video!!! Helped a lot!!

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

    This is just what i needed :)

  • @mingmingxu-oe4is
    @mingmingxu-oe4is 3 місяці тому

    i really thank you so much !!!! that help me a lot !!!!!! thanks for your sharing!!!!love you !!!!!

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

      Haha thank you! I’m glad it was useful to you.

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

    Great video! Thank you! Did you ever figure out how to add LeftTab, RightTab events what work with ShoulderButtons/ArrowKeys interchangeably? That's the part I was most interested in.

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

      Ah I’ll be doing a separate video going over how to use tab list in the next week which should cover this.

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

    1:08:15 If you're on 4.27.2 and can't get back handling working, you're not crazy - I've recreated the exact steps in a UE5 and it looks like an issue exclusive to the older UE version. No idea if they'll fix it, but in the interim you can use a function override to deactivate self on the button press instead.

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

    You can assign global default styles in project settings.

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

    great video

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

    Great tutorial. Will be tutorial with keyboard support menu navigation?

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

      I'm currently working on a simple as possible version of keyboard support without the many workarounds others do but will make a video once ready!

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

      A bit late, but I have released a keyboard support video!
      ua-cam.com/video/aDoNLyUVy2o/v-deo.html

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

    23:45 Will this break the existing UI that I have in my game? I made a Main Menu Level but it's 3D widgets all over. If I go down this path, will I still retain functionality? My UI is complete, all I'm looking for is a way to navigate using Keyboard/Gamepad when UI is active.

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

      In short, it wouldn't break your Ui by enabling this and you'd maintain your functionality but depending on how you set everything up it may not function 100% immediately, you may need to make adjustments on which widgets are focusable etc. One note is keyboard arrow keys are rather difficult to work with, I'm still working on a clean solution for using the arrow keys but just make note of that in the meantime.

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

    I need help. I can switch between buttons with the directional cross of the Gamepad not with L1 an R1. Can You help me ?

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

      Ah to change buttons based on L1 or R1 requires different common ui widgets and functions that are not showed in this video, I’ll be covering this in another video but have not released it yet.

  • @unsupporteddevice
    @unsupporteddevice 26 днів тому

    I dont seem to have "Game - Common Input Settings" in my project settings, or "CommonGameViewportClient" in the default classes. How do i get them?

    • @MrButiier
      @MrButiier  26 днів тому +1

      Ah! Make sure to turn on the plugin "Common Ui", these are automatically included when adding the plugin

    • @unsupporteddevice
      @unsupporteddevice 25 днів тому

      ​@@MrButiier oh! thank you so much

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

    amazing video, everything works great, however i feel like i'm going crazy as i cant get the back handler to work. any suggestions on what the problem could be?

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

      Hmm what key is the back handler set to?

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

      @@MrButiier B on the Xbox series controller and backspace on the keyboard, it's strange everything else has worked so smoothly up until this point, (honestly THANKYOU so much your tutorial has been the easiest to follow so far!!, I'll be checking out more of your content for sure!) I've made it in a clean project too and followed the instructions exactly. I plan to start again from scratch today to see if it's down to user error.

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

      @@MrButiier I dont know whether to laugh or cry... turns out its was definitely user error. i had a regular stack for my PopUp instead of Common Stack. In the words of young Skywalker... "ITS WORKING! IT's WORKING!!" thank you so much for this Tutorial!

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

      @@josephclarke2422 lmao this was such a great read, glad you got it to work!

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

    So you are using Dualsense controller on Editor? How on earth have you gotten it to work?

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

      Ooo I’m using a program called “DS4Windows”

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

      @@MrButiier aah yeah. I think that solution will work for editor purposes only, but if you wanna ship a game with Dualsense support, it isn't that helpful.

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

      @@ilarinikkarikoski4765 yeah, just explaining what I was using to make it work for demo purposes :)
      Dualsense controllers are special in the sense that they try very hard to not work with anything but PlayStation's. You can find various tutorials on how to set it up properly.
      For example here's a good quick one: ua-cam.com/video/QhhX-mfhtfQ/v-deo.html&ab_channel=Reality2Games

  • @smarton1600
    @smarton1600 7 днів тому

    Hey, let's say I want the thumbstick of the gamepad t be able to move in the main menu. So far I tried everything but the mouse cursor vanishes. Can you see if you have a handy way to make that work maybe?
    The answer is not input type I think and also not "show mouse cursor bool true".
    Thanks a million for any answer! :)

    • @smarton1600
      @smarton1600 7 днів тому

      PS: I am using enhanced input.

    • @MrButiier
      @MrButiier  3 дні тому

      Ah I know exactly the issue, I'm currently looking into what would be a great blueprint solution and will follow up on this comment once I have one. Only responding since its been 4 days and don't want you to feel forgotten :)

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

      @@MrButiier Thanks a million for even considering looking into it!

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

    When i hit "level 1" or "level 2" button, it starts my topdawn level, but the controls aint working((

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

      bcs when you load level, the player controller and pawn class are still from main menu...you need to change game mode to gameplay/original one in world settings-overide in each of maps you want to load to

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

      Exactly what @matka5130 said, if you still run into issues make sure you set the input mode to game only or game and ui when starting the level :)

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

      @@MrButiier i'm blind=( can you show me a printscreen?

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

      @@matka5130 tnx, i got it, level blueprint=)

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

      tnx, i made it, tnx for lesson=)

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

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

    Epic leaving us to sparse documents and crap videos. Whatever happened to Zak and Wes. Did Epic fire all those good guys and gals that tought us so much years ago, or what.

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

      No idea honestly, just forced us all to read the documents, test the product ourself, and make the videos 🤷‍♂

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

      ​@@MrButiier I can't wait until they give us an ai assistant that will answer these questions on the fly and provide links to source materials and youtube tutorials based on the specific challenges you are facing, they can even give you the time stamp of when your questions are answered. Hopefully someone builds a plug in soon, although anything above a research assistant is being highly regulated in the industry at the moment 😅

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

      Perplexity is close and gpt4o can recognize and debug blueprints if u show it your screen ​@IM2awsme

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

      ​@IM2awsme that's kinda how it used to be like 20 years ago except with people. I go on reddit and ask the same way and I'm ridiculed and directed to youtube.

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

      @@Bee_Mavrick I completely forgot asking other people for help was a thing. I have no friends.

  • @EstebanLopez-bn9pd
    @EstebanLopez-bn9pd 3 місяці тому

    If it wasn't because I have a wife, I would be asking you to marry me.
    Thank you for these tutorials!

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

      HAHA im dying, thanks man 🤣

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

    Hello there, great video and great run down of common UI, however I'm having an issue which I can't seem to fix, and would love if someone could help me out. On 1:07:15, I only have an "IsFocusable" button, no "DesiredFocusWidget". To get the focus I used the GetDesiredFocusTarget method and by debuggind I believe it's working well. Despite this, I cannot select nor hover over the prompt buttons. I've checked all the "non-hit testable" options, but with no luck. Has anybody gone through the same, that may be able to help? Thanks

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

      Well, I just fixed it. All the widgets were good, except for the buttons, who were using non-hit testable (self and children). 🤦🤦🤦
      Will leave this here, in case somebody needs it
      Keep up the great work :))

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

      Glad you found the answer :) if you ever get stuck feel free to send screenshots within the discord and I’m happy to help debug! Keep up the good work ✌🏼

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

      @@MrButiier Thanks for the answer! I might swing by the discord eventually :)

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

    I have a question, it seems unreal forced to use face button bottom as "confirm"/"click" and I can't remap any key to action defined in InputActionDataTable, also back handler doesnt work. I found many people on unreal forum have the same issue but none of them have a solution, any idea?

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

      Hm I ran into the same thing, I'm currently investigating some ideas but I'll come back once I find some more info on it.

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

      @@MrButiier I guess it has something to do with enhanced input plugin, once I disabled it, the back handler worked fine

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

      Hey! I had an issue with the default click and back handler button would only work as the default ones and required me to change 1 line of c++ code. c++ source code file "NavigationConfig.h" and change the bool value of "bAnalogNavigation" to equal true. This allowed me to have the confirm or back button as anything.

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

      @@MrButiier wow, thank you for investigating this problem, I‘ll check it later see if it help. Could you tell me how did you find this info? I can't even get a hint in search result, I'll never know it cause it is hidden that deep

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

      @@perori_neko I found it in a random reddit post actually haha, this one below:
      www.reddit.com/r/UnrealEngine5/comments/17en6wy/input_key_selector_getting_overruled_by_ui/