Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffectTypes.h |
Include |
#include "GameplayEffectTypes.h" |
USTRUCT(BlueprintType)
struct FGameplayEffectContextHandle
Handle that wraps a FGameplayEffectContext or subclass, to allow it to be polymorphic and replicate properly
Name | Description | |
---|---|---|
|
FGameplayEffectContextHandle() |
|
|
FGameplayEffectContextHandle ( |
Constructs from an existing context, should be allocated by new |
Name | Description | |
---|---|---|
|
~FGameplayEffectContextHandle() |
Name | Description | ||
---|---|---|---|
|
AddActors ( |
Add actors to the stored actor list |
|
|
AddHitResult ( |
Add a hit result for targeting |
|
|
AddInstigator |
Sets the instigator and effect causer. |
|
|
AddOrigin ( |
Adds an origin point |
|
|
AddSourceObject ( |
Sets the object this effect was created from. |
|
|
Clear() |
||
|
FGameplayEff... |
Duplicate() |
Creates a deep copy of this handle, used before modifying |
|
FGameplayEff... |
Get() |
Returns Raw effet context, may be null |
|
const FGamep... |
Get() |
|
|
const UGamep... |
GetAbility() |
Returns the Ability CDO |
|
const UGamep... |
GetAbilityInstance_NotReplicated() |
Returns the Ability Instance (never replicated) |
|
GetAbilityLevel() |
Returns level this was executed at |
|
|
const TArray... |
GetActors() |
Returns actor list, may be empty |
|
AActor * |
GetEffectCauser() |
Returns the physical actor tied to the application of this effect |
|
const FHitRe... |
GetHitResult() |
Returns hit result, this can be null |
|
AActor * |
GetInstigator() |
Returns the immediate instigator that applied this effect |
|
UAbilitySyst... |
GetInstigatorAbilitySystemComponent() |
Returns the ability system component of the instigator of this effect |
|
const FVecto... |
GetOrigin() |
Returns origin point, may be invalid if HasOrigin is false |
|
AActor * |
GetOriginalInstigator() |
Should always return the original instigator that started the whole chain. |
|
UAbilitySyst... |
GetOriginalInstigatorAbilitySystemComponent() |
Returns the ability system component of the instigator that started the whole chain |
|
GetOwnedGameplayTags ( |
Returns the list of gameplay tags applicable to this effect, defaults to the owner's tags |
|
|
UObject *... |
GetSourceObject() |
Returns the object this effect was created from. |
|
HasOrigin() |
Returns true if GetOrigin will give valid information |
|
|
IsLocallyControlled() |
Returns if the instigator is locally controlled |
|
|
IsLocallyControlledPlayer() |
Returns if the instigator is locally controlled and a player |
|
|
IsValid() |
||
|
NetSerialize ( |
Custom serializer, handles polymorphism of context |
|
|
SetAbility ( |
Sets Abilit instance and CDO parameters on context |
|
|
ToString() |
Returns debug string |
Name | Description | ||
---|---|---|---|
|
operator!= ( |
Comparison operator |
|
|
operator= ( |
Sets from an existing context, should be allocated by new |
|
|
operator== ( |
Comparison operator |