How To Make Gamepad Navigation For Menu/UI Widgets In Unreal Engine 5

Поділитися
Вставка
  • Опубліковано 14 січ 2025

КОМЕНТАРІ • 36

  • @jiwik731
    @jiwik731 4 місяці тому +10

    Btw: every time you use "set timer by event" it is good to promote the return value to variable and once you do not need the timer anymore just use it to "clear and invalidate timer by handle" becasue if you use this in widget in game (like inventory or something) the timer will go forever until you turn off the game, change map etc.

    • @musicdudem6673
      @musicdudem6673 9 днів тому

      where would you call that, on Event BeginPlay in the level BP or at the end of the Timer Event Call after setting the Hovered Color?

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

    Ah, I figured it out. Make sure to go to the project settings > Common Input Settings > Windows and then make sure "Enabled Enhanced Input Support" is checked. I don't think it automatically does this even if you check it in the plugins.

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

    Hey just a quick tip if you hold control when you chose the anchors it will set everything to zero saving you a step.

  • @derf0007
    @derf0007 4 місяці тому +5

    odd, it's not working for me. I mean, the color change isn't working. Everything else is, but the buttons' background color doesn't change.

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

      Same

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

      @@Joseph_Richard did you figure out a workaround?

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

      @@derf0007 I have the same issue did you find a workaround

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

      @@harvzgames9622 yes, you have to go to project settings and make sure it is enabled lol. It doesn’t enable by default

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

      @@derf0007 what setting do I change in project settings

  • @PopsArcade
    @PopsArcade 10 днів тому +1

    This works on controller but keyboard navigation is set to the arrow keys. Does anyone know how to get this to work with WASD as well?

  • @quartzz-shorts
    @quartzz-shorts 5 місяців тому

    I really need this video.

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

    how do you make control rumble on menu select?

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

    Timer doesn't work when the game is paused.

  • @Caroline-wk8zs
    @Caroline-wk8zs 7 днів тому

    I do the same as in the video and the button blurs too :(

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

    Love this video. Can you do one without the button showing?

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

    I have a problem. My UI hides the mouse and only uses the keyboard to control the buttons. It enters the interface by default. Although the keyboard is focused, it cannot respond to the Enter key for interaction. The Enter key only works after pressing the arrow keys to switch buttons. Although the mouse is hidden, after I click the mouse, the Enter key does not work again. I need to switch the button again. I don’t know how to solve it.

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

    please teach using interface instead of casting

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

    Great video, can You make like toturiol for shader, like one used in bodycam Game, yo make Game more realistic... Please

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

    it works perfectly for me. but the game is not paused. if I add the set game pause node, then changing the button colors no longer works.

    • @ТкачевВладимир-ш4ы
      @ТкачевВладимир-ш4ы 5 місяців тому

      Hi. Have you solved this problem? I have a similar situation.

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

      @@ТкачевВладимир-ш4ы maybe the timer that triggers the function stops when paused? don´t know if theres a onfocus event but that seams a more reasonable place to put that instead of checking on a timer

    • @ТкачевВладимир-ш4ы
      @ТкачевВладимир-ш4ы 4 місяці тому

      @@orlandobascunan7531 how to do it?

  • @Smokey-A
    @Smokey-A 27 днів тому

    Too many tutorials use bad practises like timers for keyboard focus. There's many built in functions for event driven logic you could've used.

    • @eriqblack
      @eriqblack 22 дні тому +1

      Please walk us through it

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

    The only issue i have eight now is that if i click on the background so anything else that isn't the buttons the mouse cursor disappears

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

      I worked around this problem by creating a boolean variable.
      After the Custom Event "Focus", I set the bool to false.
      After the Branch of the "Loop Body" "true", I set the boolean to true.
      Then, in the For Each Loop "Completed", I added a branch that checks the boolean, and in the false, it sets the focus to the play button.
      I don't know if I like it, but worked by now.

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

      You can try with the node: input mode UI only, this example has the Game and UI, so you can still interact with the background.

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

    If this doesnt work for you try putting the same logic he did on a tick event. Hope this helps someone. God bless you =)