[UE5 How To] Disable F1-F5 Keys (Editor & Runtime) | Easiest Tutorial

1 min tutorial for disable the Unlit / Shader Complexity Viewmode. This method can solve crashing a running game when you enable the viewport debug mode also.

* Use Landscape Orientation in Mobile *

Get Started!

#1 - Open UE installation folder

Example: C:\Program Files\Epic Games\UE_5.0\Engine\Config\BaseInput.ini

#2 - (Optional) Create a backup of the file: BaseInput.ini

  • Create a copy and rename it to BaseInput.ini_BACKUP
  • Or you can save this website link for future usage 🙂
  • #3 - Open "BaseInput.ini" using notepad, and find this...

                +DebugExecBindings=(Key=F1,Command=“viewmode wireframe”, bIgnoreShift=True)
    +DebugExecBindings=(Key=F2,Command=“viewmode unlit”)
    +DebugExecBindings=(Key=F3,Command=“viewmode lit”)
    +DebugExecBindings=(Key=F4,Command=“viewmode lit_detaillighting”)
    +DebugExecBindings=(Key=F5,Command=“viewmode shadercomplexity”)
            

    #4 - Delete the related lines or modify settings to use different keys

    Result Example:

                // Part of the line
    
    +DebugExecBindings=(Key=F2,Command="viewmode unlit")
    +DebugExecBindings=(Key=F3,Command="viewmode lit")
            
                // Whole Section
    
    [/Script/Engine.PlayerInput]
    
    ; --- General bindings
    +DebugExecBindings=(Key=F11,Command="LevelEditor.ToggleImmersive", bIgnoreCtrl=True, bIgnoreAlt=True)
    +DebugExecBindings=(Key=F11,Command="MainFrame.ToggleFullscreen",Shift=True)
    +DebugExecBindings=(Key=F2,Command="viewmode unlit")
    +DebugExecBindings=(Key=F3,Command="viewmode lit")
    +DebugExecBindings=(Key=F9,Command="shot showui")
    +DebugExecBindings=(Key=Period,Command="RECOMPILESHADERS CHANGED",Control=True,Shift=True)
    +DebugExecBindings=(Key=Comma,Command="PROFILEGPU",Control=True,Shift=True)
    +DebugExecBindings=(Key=Slash,Command="DumpGPU",Control=True,Shift=True)
    +DebugExecBindings=(Key=Tab,Command="FocusNextPIEWindow",Control=True)
    +DebugExecBindings=(Key=Tab,Command="FocusLastPIEWindow",Control=True,Shift=True)
    +DebugExecBindings=(Key=PageDown,Command="PreviousDebugTarget")
    +DebugExecBindings=(Key=PageUp,Command="NextDebugTarget")
    ; Please remove EnableGDT command binding after removing deprecated GameplayDebugger module (we are going to use Gameplay Debugger plugin soon)
    +DebugExecBindings=(Key=Apostrophe,Command="EnableGDT")
    +DebugExecBindings=(Key=Quote,Command="EnableGDT")
    ; --- PIE only binding
    +DebugExecBindings=(Key=Semicolon,Command="ToggleDebugCamera")
            

    #5 - Save & Done

    FAQ

    #1 - No Empty Line

    It will break the whole file if you got a empty line, try to make it similar to my example

    Share

    Leave a reply

    Your email address will not be published. Required fields are marked