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.
Properties
Section titled “Properties”FText Name
Blueprint read-only
The ability’s display name.
Ability Tag
Section titled “Ability Tag”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.
Resource Cost
Section titled “Resource Cost”TMap<FGameplayTag, float> ResourceCost
Blueprint read-only
Resource cost to use the ability, keyed by resource tag, as display values.
Cooldown
Section titled “Cooldown”float Cooldown · default 0.0f
Blueprint read-only
Total cooldown time in seconds.
Cooldown Remaining
Section titled “Cooldown Remaining”float CooldownRemaining · default 0.0f
Blueprint read-only
Seconds left before the ability can be used again. 0 when it is ready.
Target Type
Section titled “Target Type”ESeinAbilityTargetType TargetType · default ESeinAbilityTargetType::None
Blueprint read-only
What the ability needs to be aimed at, such as nothing, a point or an entity.
Disabled Reason
Section titled “Disabled Reason”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.
Is Enabled
Section titled “Is Enabled”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.
Is Active
Section titled “Is Active”bool bIsActive · default false
Blueprint read-only
True while the ability is running.
Is Passive
Section titled “Is Passive”bool bIsPassive · default false
Blueprint read-only
True for passive abilities, which are never triggered by a button.
Is On Cooldown
Section titled “Is On Cooldown”bool bIsOnCooldown · default false
Blueprint read-only
True while the ability is cooling down.