RealDocs

UButton::GetIsFocusable

function UMG Since 5.2
#include "Components/Button.h"
Access: public Specifiers: const

Description

Returns whether the button can receive keyboard/gamepad focus, or is restricted to mouse-click only interaction.

Caveats & Gotchas

  • Not UFUNCTION-tagged; Blueprint reads the equivalent value through the deprecated IsFocusable property's native getter binding instead.
  • There is no public setter — focusability is fixed via InitIsFocusable before the underlying SWidget is constructed, so it can't be toggled at runtime.

Signature

bool GetIsFocusable() const;

Return Type

bool

Example

Check focusability C++
if (!Button->GetIsFocusable())
{
    // This button only responds to mouse clicks, not gamepad navigation
}

Version History

Introduced in: 5.2

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.