UE4 4.5 UMG Workaround: UI loses focus when clicking on no widget

In 4.5 UMG if you set a player controller’s input mode to UI Only when trying to show a modal widget, clicking in the empty/dead space of the viewport causes focus to shift back to the player controller. If you don’t want this behavior, the easiest workaround is to set the root CanvasPanel’s visibility in your modal widget to Visible instead of Self Hit Test Invisible. This will cause the CanvasPanel to absorb all click events, including the click event that would normally send your focus back to the player controller.

Canvas Panel Visibility

Michael Allar

Michael Allar
Unreal Engine 4 specialized engineer in Los Angeles. UE4 Marketplace Seller, Engine Contributor, and Forum Moderator. Whether its gameplay, middleware, UI, VR, or backend, as long as it involves UE4 engineering, he is your guy.

Opinion on Epic's Unreal Engine 4 Marketplace: Issues

I want to start by making it very clear that I think the marketplace team is doing great and that Stephanie Markoff has been absolutely f...… Continue reading

Updating UE4's Steam SDK

Published on February 29, 2016

Enabling UE4's Steam Integration

Published on February 26, 2016