FSlateApplicationBase::IsWidgetDirectlyHovered

Gets whether or not a particular widget is directly hovered.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

FSlateApplicationBase::IsWidgetDirectlyHovered()

FSlateApplication::IsWidgetDirectlyHovered()

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Application/SlateApplicationBase.h

Include

#include "Application/SlateApplicationBase.h"

Syntax

bool IsWidgetDirectlyHovered
(
    const TSharedPtr< const SWidget > Widget
) const

Remarks

Gets whether or not a particular widget is directly hovered. Directly hovered means that the widget is directly under the pointer, is not true for ancestors tho they are Hovered.

Returns

True if the widget is directly hovered, otherwise false.