Skip to content

Sein Ability Info

Struct · FSeinAbilityInfo

#include "ViewModel/SeinEntityViewModel.h"

Lightweight info struct for a single ability, suitable for UI display. Avoids exposing the full USeinAbility UObject to the render layer.

FText Name

Blueprint read-only

The ability’s display name.

FGameplayTag AbilityTag

Blueprint read-only

The tag that identifies the ability. Use it to look the ability up again or to trigger it.

TObjectPtr<UTexture2D> Icon · default nullptr

Blueprint read-only

The ability’s icon texture.

TMap<FGameplayTag, float> ResourceCost

Blueprint read-only

Resource cost to use the ability, keyed by resource tag, as display values.

float Cooldown · default 0.0f

Blueprint read-only

Total cooldown time in seconds.

float CooldownRemaining · default 0.0f

Blueprint read-only

Seconds left before the ability can be used again. 0 when it is ready.

ESeinAbilityTargetType TargetType · default ESeinAbilityTargetType::None

Blueprint read-only

What the ability needs to be aimed at, such as nothing, a point or an entity.

ESeinAbilityUnavailableReason DisabledReason · default ESeinAbilityUnavailableReason::None

Blueprint read-only

Why the ability cannot be used right now, when Is Enabled is false. Use it for a tooltip such as requires tech, on cooldown or cannot afford. Not meaningful while Is Enabled is true.

bool bIsEnabled · default false

Blueprint read-only

True if the ability could be used right now: it is off cooldown, not blocked by tags, prerequisites are met, its own conditions pass and the player can afford it. Target checks such as range and line of sight are not included, since no target is chosen yet. Use it to enable or grey out a button.

bool bIsActive · default false

Blueprint read-only

True while the ability is running.

bool bIsPassive · default false

Blueprint read-only

True for passive abilities, which are never triggered by a button.

bool bIsOnCooldown · default false

Blueprint read-only

True while the ability is cooling down.