Navigation
API > API/Plugins > API/Plugins/GameplayAbilities
This is data that can be used to create an FGameplayAbilitySpec. Has some data that is only relevant when granted by a GameplayEffect
| Name | FGameplayAbilitySpecDef |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayAbilitySpec.h |
| Include Path | #include "GameplayAbilitySpec.h" |
Syntax
USTRUCT (BlueprintType )
struct FGameplayAbilitySpecDef
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGameplayAbilitySpecDef() |
GameplayAbilitySpec.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Ability | TSubclassOf< UGameplayAbility > | What ability to grant | GameplayAbilitySpec.h |
|
| AssignedHandle | FGameplayAbilitySpecHandle | This handle can be set if the SpecDef is used to create a real FGameplaybilitySpec | GameplayAbilitySpec.h | |
| InputID | int32 | Input ID to bind this ability to | GameplayAbilitySpec.h |
|
| LevelScalableFloat | FScalableFloat | What level to grant this ability at | GameplayAbilitySpec.h |
|
| RemovalPolicy | EGameplayEffectGrantedAbilityRemovePolicy | What will remove this ability later | GameplayAbilitySpec.h |
|
| SetByCallerTagMagnitudes | TMap< FGameplayTag, float > | SetbyCaller Magnitudes that were passed in to this ability by a GE (GE's that grant abilities) | GameplayAbilitySpec.h | |
| SourceObject | TWeakObjectPtr< UObject > | What granted this spec, not replicated or settable in editor | GameplayAbilitySpec.h |
|
Functions
Public
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FGameplayAbilitySpecDef& Other |
GameplayAbilitySpec.h | ||
bool operator==
(
const FGameplayAbilitySpecDef& Other |
GameplayAbilitySpec.h |