Skip to main content

Widget Utils

Base:
class
Type:
FNWidgetUtils
Header File:
NexusUI/Public/NWidgetUtils.h

Thin adapter helpers that bridge between UMG wrapper types and raw Slate equivalents.

Methods​

To EVisibility​

Convert a UMG ESlateVisibility value into the equivalent Slate EVisibility value. UMG retains the enum split for editor purposes, but Slate-side code that has to pass through the value to a native widget needs the underlying type.

FORCEINLINE static EVisibility ToEVisibility(const ESlateVisibility Visibility);

Maps as follows:

ESlateVisibilityEVisibility
VisibleVisible
CollapsedCollapsed
HiddenHidden
HitTestInvisibleHitTestInvisible
SelfHitTestInvisibleSelfHitTestInvisible
(any other)Visible