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.
Functions
Section titled “Functions”Set Entity Context
Section titled “Set Entity Context”Gives the widget an entity to show. An invalid handle clears it, which resets pooled or detached widgets.
void SetEntityContext(FSeinEntityHandle Entity);Refresh Entity Presentation
Section titled “Refresh Entity Presentation”Update from current data after binding, restore or during ordinary widget ticks.
void RefreshEntityPresentation();Events and overrides
Section titled “Events and overrides”Get Progress Display
Section titled “Get Progress Display”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;On Entity Context Changed
Section titled “On Entity Context Changed”Implement in Blueprint
Context changed or cleared. Reset any game-specific display caches here. Default does nothing.
void OnEntityContextChanged(FSeinEntityHandle Entity);Properties
Section titled “Properties”Bound Entity
Section titled “Bound Entity”FSeinEntityHandle BoundEntity
Blueprint read-only
Current entity supplied by the caller. Validate it before reading game data.
Progress Bar Name
Section titled “Progress Bar Name”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.
Progress Label Name
Section titled “Progress Label Name”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.