RealDocs

UButton::GetClickMethod

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

Description

Returns the mouse action currently required to trigger the button's click — down, up, or precise-click.

Caveats & Gotchas

  • Not UFUNCTION-tagged; Blueprint reads the equivalent value through the deprecated ClickMethod property's native getter binding instead.
  • The returned enum affects only mouse interaction — see GetTouchMethod and GetPressMethod for touch and keyboard/gamepad equivalents.

Signature

EButtonClickMethod::Type GetClickMethod() const;

Return Type

EButtonClickMethod::Type

Example

Check click behavior C++
if (Button->GetClickMethod() == EButtonClickMethod::PreciseClick)
{
    // Requires press and release inside the button bounds
}

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.