How To Rebind Key/Action and Axis Mappings | Remapping and Rebinding Unreal Engine 4 Tutorial

  Рет қаралды 31,633

Matt Aspland

Matt Aspland

Күн бұрын

Hey guys, in today's video, I'm going to be showing you how to rebind key events for action mappings and axis mappings. This way the player can choose which buttons to press to use that key binding. This works with movement, interact, sprinting and anything you like.
Original Unreal Forum Post: forums.unrealengine.com/devel...
#Ue4 #UnrealEngine4 #Ue4Tutorial
___________________________________________________________________________
00:00 - Intro
00:16 - Overview
00:55 - Tutorial
12:09 - Overview
13:12 - Outro
___________________________________________________________________________
Unreal Engine 4 Tutorials Playlist: • Unreal Engine 4 Tutorials
The Basics Of Nodes Playlist: • The Basics Of Nodes In...
Blender Tutorials Playlist: • Blender Tutorials
___________________________________________________________________________
If you enjoy make sure to subscribe: / @mattaspland
Join My Discord Server: / discord
Follow Me On Instagram: / matt_aspland_
___________________________________________________________________________
If you want to support me, you can PayPal me at "matt.aspland.1@gmail.com". This is by no means expected or required. It is just a nice support :)
Link to PayPal: www.paypal.com/
You can also support me on Ko-Fi following this link: ko-fi.com/mattaspland
Thank you :) ___________________________________________________________________________
♫Music By♫
●Kronicle - Chill Noons
●Soundcloud - / the-chemist-10

Пікірлер: 64
@TrojanLube69
@TrojanLube69 3 жыл бұрын
VERY IMPORTANT FOR VIEWERS: Get in the habit of using “Save Key Mapping” blueprint node after you finish setting up the keybinds. Many games use an apply button and use that same logic that is inside that blueprint node. Otherwise it will only work in the editor only even with force boolean set as true, as because the add key mapping node only rewrites the default project .ini file and not the standalone built one. I remember having to do this in c++ before UE4 4.17 or somewhere along there where those blueprint nodes weren’t available. It will save you some headaches. Enjoy coding!
@S4NT1_27
@S4NT1_27 2 жыл бұрын
Thank you very much!
@LostFrameDevelopment
@LostFrameDevelopment Жыл бұрын
thanks for the note (: saved me some debugging time trying to fix problem haha
@samohickey
@samohickey 2 жыл бұрын
Awesome! Thank you so much! :D Been working on my settings menu and while I've been developing my project I've been pretty good about setting inputs in the Project Settings, so happy I've been doing that! Made this quick and easy. Your tutorials are always great!! *praise*
@unrealengineruseng9583
@unrealengineruseng9583 Жыл бұрын
The best tutorial ! Thank you!
@SanneBerkhuizen
@SanneBerkhuizen 3 жыл бұрын
This is one of the things I've been thinking about lately. Thanks 👍
@MattAspland
@MattAspland 3 жыл бұрын
Oh nice, glad I could provide it. No problem! :)
@Dworim
@Dworim 2 жыл бұрын
Amazing, thank you so much
@brublaza5690
@brublaza5690 2 жыл бұрын
this realy hepled me a lot thx
@pencilgun4934
@pencilgun4934 Жыл бұрын
Matt big thank you for the great tutorial do you have a tutorial where you show how to save these custom key binds out to save game versions and load them back in when you launch the game again? Or is it just as simple as settings variables up in a game state and then write those out to a save game object when saving? I am assuming its how you would do it right?
@sullivanthomas2704
@sullivanthomas2704 2 жыл бұрын
Thank you so much. It's very clear. But if you want to bind the "Gamepad Left Thumbstick Y-Axis", how to do it ? You explained how to bind Axis mappings but I'm just able to get a "Gamepad Left Thumbstick Up" (or Down) as result...
@c4rb0n46
@c4rb0n46 3 жыл бұрын
I was just going to search about it and you posted it It is a miracle 😂
@timsonss
@timsonss 3 жыл бұрын
He reads your mind mate, very shpookeah
@MattAspland
@MattAspland 3 жыл бұрын
Haha glad I got in there at the right time :D
@danj.haynes7411
@danj.haynes7411 Жыл бұрын
Thank you so much!
@DryreL
@DryreL Жыл бұрын
Hi! What if you have more than one key in the one action mapping? For example; "Pause"action mapping has 3 inputs. ESC key, P key and gamepad key. You are removing all with "for each loop" and adding only one input. This isn't proper or we can say that is uncompleted. Can you do part 2?
@zizhgames
@zizhgames 2 жыл бұрын
Hi! Thank you for your tutorial! It's great! And I have question about how to bind steering wheel, can you help me?
@timsonss
@timsonss 3 жыл бұрын
Matt once again conquering my recommended page
@MattAspland
@MattAspland 3 жыл бұрын
Thank you man, glad I could do that :)
@OmegaMouse
@OmegaMouse 5 ай бұрын
Thank you.
@pro_di_galson6889
@pro_di_galson6889 3 жыл бұрын
Thank you very much
@MattAspland
@MattAspland 3 жыл бұрын
No worries man! :)
@gamedevpaddy3944
@gamedevpaddy3944 2 жыл бұрын
Hey matt I was trying to add a mouse wheel up the key binding in a control menu but it won't detect the key being inputted even when changing the consume mouse wheel to never
@TommyS04
@TommyS04 Жыл бұрын
How do I use images instead of text? For example for left mouse button, or controller joystick?
@KratonWolf
@KratonWolf 10 ай бұрын
Tiny issue I can see with this is that it doesn't account for pressing the Same key when entering in the key bindings (IE two key bindings can have the same Key for input). How would you go about checking to find Action/Axis mappings that already contain the wanted key, and removing them if you try to enter that key into a different Action/Axis mapping?
@netocavalcanti
@netocavalcanti 2 жыл бұрын
Hello. Can we rebing the keys with the imput.ini file?
@brublaza5690
@brublaza5690 2 жыл бұрын
How do you make it so the text of the button stays to the name of the button
@JohnDaniels
@JohnDaniels 2 жыл бұрын
The problem with this is action mappings can have multiple values, like for Jump you may have button A on the controller and then also Keyboard Space key. The remove loop will remove both.
@benfala9984
@benfala9984 2 жыл бұрын
i would add a button called "add key" or something and make it only "add action mapping" instead of deleting them then adding them(like in this tutorial). I think this would worK? i dont use controller so im not going to test it
@BoodleBops
@BoodleBops 11 ай бұрын
Did you ever find a good solution to this? having the same issue!
2 жыл бұрын
Does someone knows how to use the same key for example: open and close a door and open and close a drawer? i'm having trouble with that
@TommyS04
@TommyS04 Жыл бұрын
Holding Shift,Ctrl,Alt,CMD does not do anything for me, I have the same code as you, how do I fix that?
@sofreshprod
@sofreshprod 2 жыл бұрын
cool
@nevabeensmart
@nevabeensmart Жыл бұрын
Been looking for a way to stop a key from being bound to multiple actions/axis, but so far no luck.
@selimsaidi378
@selimsaidi378 Жыл бұрын
nice one ! *problem is that it increment number of input inside input file
@AaOneRey
@AaOneRey Жыл бұрын
I identically made all that was in video, but my unreal editor crashes after that
@fade9966
@fade9966 3 жыл бұрын
is it saved than lets say you build that game and when you change the values in game and restart the game is it saved?
@TrojanLube69
@TrojanLube69 3 жыл бұрын
Use the node Save Key Mapping to it can save the config .ini file in a standalone build project. Otherwise it only works in the editor.
@fade9966
@fade9966 3 жыл бұрын
@@TrojanLube69 thanks man :)
@ratguntr
@ratguntr 7 ай бұрын
No, it doesn't work for me. It works good in editor and in standalone game. But when I packaged game for release, it doesn't save settings....
@Matthew.1994
@Matthew.1994 3 жыл бұрын
how can i get the current bindings and set the text of the key selector to the binding? so i can save and load the options menu with the correct bindings showing in them?
@RaneyDay
@RaneyDay 2 жыл бұрын
did you ever figure this out?
@martyrier
@martyrier 2 жыл бұрын
@@RaneyDay I did. make an Event where you set the no key specified text of every KeySelecter. You get the text from Get Input Settings > Get Action Mapping by Name > Get first element of the array > Break > Get key display name
@jairientrouve3060
@jairientrouve3060 2 жыл бұрын
@@martyrier Hello sorry to bother, i'm trying to do the same but i can't find the nodes you're referring to. Could you explain it in more details please
@martyrier
@martyrier 2 жыл бұрын
@@jairientrouve3060 Rightclick and type get input settings. Pull from there and type 'get action mapping by name'. There you have to type in the name of the keybinding (Attack, Build or what you have called it in the input settings) This gives you an array of type "Action key mappings" from which you just need the first element if you have done everything like in the video. So you pull from it and type 'get' and leave the index as 0. This gives you the first array element with the type "Action key mappings " so pull from it and say 'break'. And there you have the element "Key" from which you pull and say 'get key display name' which is the letter which triggers the event and you want to display as the No Key specified text
@jairientrouve3060
@jairientrouve3060 2 жыл бұрын
@@martyrier Everything work just fine, thanks a lot for your time and help.
@s3armoredyt849
@s3armoredyt849 Жыл бұрын
can u do one for controller?
@s3armoredyt849
@s3armoredyt849 Жыл бұрын
can u do an updated one? for ue5
@knightofbrokenglass9237
@knightofbrokenglass9237 Жыл бұрын
i love your tutorials bro, but should I just ignore them if they're for ue4? It seems the engine is completely different now...
@KratonWolf
@KratonWolf 10 ай бұрын
it's not. this still works. though this tutorial does miss a few common points, such as checking if the key inputted is already in use and what to do in that situation.
@jessiearnwine8314
@jessiearnwine8314 2 жыл бұрын
will this work in dragon ball unreal
@DiabloRealm
@DiabloRealm 2 жыл бұрын
How did you create the second Jump button it just appeared out of nowhere?
@itanocircus2077
@itanocircus2077 2 ай бұрын
Control+C (copy) and Control+V (paste).
@DiabloRealm
@DiabloRealm 2 жыл бұрын
It's not letting me drag a second Instance of Jump in, also in UE5 when you create the Widget a options windows pops up that didn't pop up on yours, I'm not sure what to select perhaps that's why I can't create a second Input Key Selector?
@trigmax
@trigmax 3 жыл бұрын
can you help me please How to create a real paid shop in UNREAL engine 4. pub or call of duty or other games. To buy a dress or skin you need to buy gems or pubg uc. the same is how the shop is created. please make a video about it.
@trigmax
@trigmax 3 жыл бұрын
you said you understood me. I hope so
@MattAspland
@MattAspland 3 жыл бұрын
Hi, I can add it to my list, not sure when I'll get around to it, but I can add micro-transactions and a store to my list yeah :)
@Matme-ug6jq
@Matme-ug6jq 3 жыл бұрын
Just to let you know. This video plays awful on the mobile KZbin app, but fine on the PC. Most likely due to KZbin limiting video data with what they consider to be "far right" keywords. Yours is "axis". Takes the piss.
@MattAspland
@MattAspland 3 жыл бұрын
Oh wow right okay, thank you for letting me know man. That's so stupid though, I feel like they could look into videos containing these words a little more instead of just doing that. But again thank you for making me aware, I'll try to avoid these words in the future I guess lol.
UE4 Graphics Settings Menu / Save And Load Made Easy
39:42
It's Me Bro
Рет қаралды 44 М.
О, сосисочки! (Или корейская уличная еда?)
00:32
Кушать Хочу
Рет қаралды 7 МЛН
He Threw A Banana Peel At A Child🍌🙈😿
00:27
Giggle Jiggle
Рет қаралды 19 МЛН
So I removed lags from Minecraft... (SATISFYING)
9:38
Element X
Рет қаралды 43 М.
How to Set Up Player Key Mappings in UE5
9:51
Savage Games
Рет қаралды 2,4 М.
UE4 Graphics Setting Menu + SAVE and LOAD Settings.
32:03
It's Me Bro
Рет қаралды 24 М.
Unreal Concepts - Blueprint Only Input Mapping ( UE4 )
40:52
Mathew Wadstein Tutorials
Рет қаралды 14 М.
I Struggled With Blueprint Interfaces for Years!! (Unreal Engine 5)
16:48
Glass Hand Studios
Рет қаралды 167 М.
How To Optimise Memory Usage In Your Unreal Engine 5 Game
10:02
Matt Aspland
Рет қаралды 12 М.
Input Mappings Deprecated in UE5.1 - Enhanced Input Tutorial
7:47
Peanut Games
Рет қаралды 19 М.
О, сосисочки! (Или корейская уличная еда?)
00:32
Кушать Хочу
Рет қаралды 7 МЛН