Choose your operating system:
Windows
macOS
Linux
| FFastArraySerializerItem
|
Module |
|
Header |
/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayAbilitySpec.h |
Include |
#include "GameplayAbilitySpec.h" |
USTRUCT(BlueprintType)
struct FGameplayAbilitySpec : public FFastArraySerializerItem
An activatable ability spec, hosted on the ability system component. This defines both what the ability is (what class, what level, input binding etc) and also holds runtime state that must be kept outside of the ability being instanced/activated.
Name | Description | ||
---|---|---|---|
|
Ability |
Ability of the spec (Always the CDO. This should be const but too many things modify it currently) |
|
|
ActivationInfo |
Activation state of this ability. |
|
|
ActiveCount |
A count of the number of times this ability has been activated minus the number of times it has been ended. |
|
|
uint8: 1 |
bActivateOnce |
This ability should be activated once when it is granted. |
|
DynamicAbilityTags |
Optional ability tags that are replicated. |
|
|
GameplayEffectHandle |
Handle to GE that granted us (usually invalid) |
|
|
Handle |
Handle for outside sources to refer to this spec by |
|
|
InputID |
InputID, if bound |
|
|
uint8: 1 |
InputPressed |
Is input currently pressed. Set to false when input is released |
|
Level |
Level of Ability |
|
|
NonReplicatedInstances |
Non replicating instances of this ability. |
|
|
uint8: 1 |
PendingRemove |
Pending removal due to scope lock |
|
uint8: 1 |
RemoveAfterActivation |
If true, this ability should be removed as soon as it finishes executing |
|
ReplicatedInstances |
Replicated instances of this ability.. |
|
|
SetByCallerTagMagnitudes |
Passed on SetByCaller magnitudes if this ability was granted by a GE |
|
|
UObject * |
SourceObject |
Object this ability was created from, can be an actor or static object. |
Name | Description | |
---|---|---|
|
FGameplayAbilitySpec() |
|
|
FGameplayAbilitySpec ( |
Version that takes an existing spec def |
|
FGameplayAbilitySpec ( |
Version that takes an ability class |
|
FGameplayAbilitySpec ( |
Version that takes an ability CDO, this exists for backward compatibility |
Name | Description | ||
---|---|---|---|
|
GetAbilityInstances() |
Returns all instances, which can include instance per execution abilities |
|
|
GetDebugString() |
||
|
UGameplayAbi... |
GetPrimaryInstance() |
Returns the primary instance, used for instance once abilities |
|
IsActive() |
Returns true if this ability is active in any way |
|
|
PostReplicatedAdd ( |
||
|
PreReplicatedRemove ( |
||
|
ShouldReplicateAbilitySpec() |
Interface function to see if the ability should replicated the ability spec or not |