Navigation
Unreal Engine C++ API Reference > Runtime > SlateCore > Types
References
Module | SlateCore |
Header | /Engine/Source/Runtime/SlateCore/Public/Types/SlateEnums.h |
Include | #include "Types/SlateEnums.h" |
Syntax
namespace EButtonPressMethod
{
enum Type
&123;
DownAndUp,
ButtonPress,
ButtonRelease,
&125;
}
Values
Name | Description |
---|---|
DownAndUp | User must press the button, then release while the button has focus to trigger the click. |
ButtonPress | Click will be triggered immediately on button press. |
ButtonRelease | Click will always be triggered when a button release occurs on the focused button, even if the button wasn't pressed while focused. |
Remarks
Enumerates different methods that a button can be triggered with keyboard/controller. Normally, DownAndUp is appropriate.