Skip to content

Sein Entity Widget

Class · USeinEntityWidget : UUserWidget

#include "Widget/SeinEntityWidget.h"

abstract: use a subclass · can be subclassed in Blueprint

Base class for a widget that shows one entity. Call Set Entity Context to give it an entity; it then refreshes every tick. The progress bar and label are filled from Get Progress Display, which you override to show health, work or any other measure. It hides itself when the progress display is not visible or the entity is gone.

Gives the widget an entity to show. An invalid handle clears it, which resets pooled or detached widgets.

void SetEntityContext(FSeinEntityHandle Entity);

Update from current data after binding, restore or during ordinary widget ticks.

void RefreshEntityPresentation();

Overridable in Blueprint, with a native default

Read a game-defined progress display. The default is hidden; override for health, work or another measure.

FSeinProgressDisplay GetProgressDisplay() const;

Implement in Blueprint

Context changed or cleared. Reset any game-specific display caches here. Default does nothing.

void OnEntityContextChanged(FSeinEntityHandle Entity);

FSeinEntityHandle BoundEntity

Blueprint read-only

Current entity supplied by the caller. Validate it before reading game data.

FName ProgressBarName · default TEXT("ProgressBar")

Editable in class defaults · Blueprint read-only

Name of the Progress Bar in this widget that Get Progress Display fills. Defaults to ProgressBar; set it to None to update the bar yourself in Blueprint.

FName ProgressLabelName · default NAME_None

Editable in class defaults · Blueprint read-only

Name of the Text Block in this widget that receives the progress label. None, the default, leaves the label to Blueprint.