Skip to content

Sein Entity Widget Component

Class · USeinEntityWidgetComponent : UWidgetComponent

#include "Widget/SeinEntityWidgetComponent.h"

can be subclassed in Blueprint · can be added from the Components panel

A world widget component that shows a widget for an entity. By default it follows the entity of the actor that owns it; Bind To Entity Actor points it at a different actor. If the widget is a Sein Entity Widget, it is given the entity automatically.

Supply the entity actor explicitly, including before BeginPlay. None clears the widget.

void BindToEntityActor(ASeinActor* Actor);

Current living entity, including for listeners attached after BeginPlay.

FSeinEntityHandle GetEntityHandle() const;

Current entity actor, independent of widget or attachment hierarchy.

ASeinActor* GetEntityActor() const;

Read and broadcast the current context again for a newly attached widget listener.

void InitializeWidgetContext();

FSeinWidgetEntityContext OnWidgetEntityContext · passes UUserWidget* Widget, FSeinEntityHandle Entity

Receives widget context for arbitrary widget classes. Entity Widget subclasses are initialized automatically.

void RefreshWidgetContext();

Re-reads the entity and updates the widget. Runs every tick and when the entity binding changes; not meant to be called directly.