unreal.ButtonPressMethod

class unreal.ButtonPressMethod

Bases: unreal.EnumBase

Enumerates different methods that a button can be triggered with keyboard/controller. Normally, DownAndUp is appropriate.

C++ Source:

  • Module: SlateCore

  • File: SlateEnums.h

BUTTON_PRESS

Click will be triggered immediately on button press.

Type

1

BUTTON_RELEASE

Click will always be triggered when a button release occurs on the focused button, even if the button wasn’t pressed while focused.

Type

2

DOWN_AND_UP

User must press the button, then release while the button has focus to trigger the click. This is the most common type of button.

Type

0