Is there a better way to enter names or strings than doing this with every key?

Sorry for asking something again, but I can’t do anything else than work with this glorious engine in my free time. Is there a better way to enter names or strings than doing this with every key?

If not, there should be. This is just for a resolution setting, so there will be “only” 20 key events but if I wanted to have a chatbox … that’d be a nightmare!

Update: As of 4.16.2 this method appears to work without issue as the default key value is fixed. Thanks Epic! Leaving the original answer as is below.


The better way I have found is unfortunately blocked by a bug in the engine. The process is this:

  • Create a variable that is a Map, with Key and Integer (or String, w/e) types
  • In that Map, fill in each Key you want to respond to and the number you’d like to appear when the Key is hit
  • Listen on Any Key, then Find that key in your Map
  • Output the Value of the Integer associated with that Key in your Append node

The problem is that right now creating a Map variable with Key as the key variable means that you won’t be able to edit the first Key value, which means you can’t add a second, etc. See the attached screenshot, there should be a Key dropdown next to the 0 box but it won’t show up. I believe this is reflected in this issue but it has no planned fix date: Unreal Engine Issues and Bug Tracker (UE-42930)

Please vote for that issue if this helps.