I am trying to bind a custom action to the F1 key, however when I play the game in the editor it also triggers wireframe view. What is the best way to disable this behavior and only invoke my callback when playing in the editor window?
Try this in your project’s DefaultInput.ini…
-DebugExecBindings=(Key=F1,Command="viewmode wireframe", bIgnoreShift=True)
+DebugExecBindings=(Key=F1,Command="viewmode wireframe", Control=True)
+DebugExecBindings=(Key=F2,Command="viewmode unlit", Control=True)
+DebugExecBindings=(Key=F3,Command="viewmode lit", Control=True)
Hope this helps,
We think this post contains useful information which we would like to share with our public UE4 community. With your approval, we would like to make a copy of this post on the public AnswerHub which includes the discussion but strips out your username and company name. Please let us know if you are okay with this.
Sounds good, feel free to show this publicly. I’m assuming you mean cross posting this to the UE4 answer hub?
Yes, we’ll make a copy of this post on AnswerHub for UE4, but it’ll strip your name and company name. Thanks!