UButton::IsPressed

Returns true if the user is actively pressing the button.

Windows
MacOS
Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Components/Button.h

Include

#include "Components/Button.h"

Source

/Engine/Source/Runtime/UMG/Private/Components/Button.cpp

Syntax

bool IsPressed() const

Remarks

Returns true if the user is actively pressing the button. Do not use this for detecting 'Clicks', use the OnClicked event instead.

Returns

true if the user is actively pressing the button otherwise false.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss