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.
Functions
Section titled “Functions”Bind To Entity Actor
Section titled “Bind To Entity Actor”Supply the entity actor explicitly, including before BeginPlay. None clears the widget.
void BindToEntityActor(ASeinActor* Actor);Get Entity Handle
Section titled “Get Entity Handle”Current living entity, including for listeners attached after BeginPlay.
FSeinEntityHandle GetEntityHandle() const;Get Entity Actor
Section titled “Get Entity Actor”Current entity actor, independent of widget or attachment hierarchy.
ASeinActor* GetEntityActor() const;Initialize Widget Context
Section titled “Initialize Widget Context”Read and broadcast the current context again for a newly attached widget listener.
void InitializeWidgetContext();Event dispatchers
Section titled “Event dispatchers”On Widget Entity Context
Section titled “On Widget Entity Context”FSeinWidgetEntityContext OnWidgetEntityContext · passes UUserWidget* Widget, FSeinEntityHandle Entity
Receives widget context for arbitrary widget classes. Entity Widget subclasses are initialized automatically.
Network functions
Section titled “Network functions”Refresh Widget Context
Section titled “Refresh Widget Context”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.