Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/Abilities
Inheritance Hierarchy
- FGameplayAbilityTargetData
- FGameplayAbilityTargetData_SingleTargetHit
References
| Module | GameplayAbilities |
| Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/GameplayAbilityTargetTypes.h |
| Include | #include "Abilities/GameplayAbilityTargetTypes.h" |
Syntax
USTRUCT (BlueprintType )
struct FGameplayAbilityTargetData_SingleTargetHit : public FGameplayAbilityTargetData
Remarks
Target data with a single hit result, data is packed into the hit result
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bHitReplaced | ||
| FHitResult | HitResult | Hit result that stores data |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FGameplayAbilityTargetData_SingleTargetHit
(
FHitResult InHitResult |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | NetSerialize
(
FArchive& Ar, |
Overridden from FGameplayAbilityTargetData
| Type | Name | Description | |
|---|---|---|---|
| TArray< TWeakObjectPtr< AActor > > | GetActors () |
Returns all actors targeted, almost always overridden | |
| FVector | GetEndPoint () |
Override to return a target/end point | |
| const FHitResult * | GetHitResult () |
Override to return a hit result | |
| FTransform | GetOrigin () |
Override to return an origin point, which may be derived from other data | |
| UScriptStruct * | Returns the serialization data, must always be overridden | ||
| bool | HasEndPoint () |
Override to true if GetEndPoint/Transform will work | |
| bool | HasHitResult () |
Return true in subclasses if GetHitResult will work | |
| bool | HasOrigin () |
Override to true if GetOrigin will work | |
| void | ReplaceHitWith
(
AActor* NewHitActor, |