Hello, I tried to remap my settings with the below blueprint, but it’s doesn’t work. I don’t know what could be the problem.
Here is the bp and the Input Axis what I want to set:
I’m wondering about two things:
-
Is that get axis node returning anything?
-
Do you need to save between removing one mapping and adding the other?
Can you try giving it a normal name without whitespaces and brackets, and try if that way it works? Like MoveForwardKey1
.
I tried but it didn’t work.
Then I guess the problem is that first you remove the axis mapping, then you try to re-add it by using the array get(0) node, but at that point you have already removed the axis mapping, so the array will be empty.
I believe if you put the result of the get(0) in a local variable before removing the mapping, and use that for removing / adding instead, then it’ll work (just be sure to do it with the name MoveForward
to make sure spaces and special characters don’t cause an issue).
I checked the returning values and they are correct. I tested it in the “new editor window” instead of the “standalone game” and there was good the adding and removing node but I don’t need to save it. But then what about the “standalone game”? Any idea?
Hmmm… that I don’t know I’m afraid…
I tried to only add axis mapping without removing then save but it’s didn’t worked in standalone game but in new editor window mode it’s worked fine with the removing node too. I found a [video][1] about it and there he is using variables just like u said.
This is how I tried to do:
In the first image, I set the variable values when the Event is Construct.
I changed the Axis name to MoveForwardKey1.
I launch the project from his map and checked there too the remapping and worked. So I guess this problem is only in Standalone Game.