Navigation
API > API/Plugins > API/Plugins/GameplayAbilities > API/Plugins/GameplayAbilities/Abilities
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- AActor
- AGameplayAbilityTargetActor
- AGameplayAbilityTargetActor_Trace
- AGameplayAbilityTargetActor_GroundTrace
- AGameplayAbilityTargetActor_ActorPlacement
- AGameplayAbilityTargetActor_SingleLineTrace
References
| Module | GameplayAbilities |
| Header | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/GameplayAbilityTargetActor_Trace.h |
| Include | #include "Abilities/GameplayAbilityTargetActor_Trace.h" |
Syntax
UCLASS (Abstract, Blueprintable, NotPlaceable, Config=Game)
class AGameplayAbilityTargetActor_Trace : public AGameplayAbilityTargetActor
Remarks
Intermediate base class for all line-trace type targeting actors.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bTraceAffectsAimPitch | Does the trace affect the aiming pitch. | |
| float | MaxRange | ||
| TWeakObjectPtr< AGameplayAbilityWorldReticle > | ReticleActor | ||
| FCollisionProfileName | TraceProfile |
Constructors
| Type | Name | Description | |
|---|---|---|---|
AGameplayAbilityTargetActor_Trace
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AimWithPlayerController
(
const AActor* InSourceActor, |
||
| bool | ClipCameraRayToAbilityRange
(
FVector CameraLocation, |
||
| void | LineTraceWithFilter
(
FHitResult& OutHitResult, |
Traces as normal, but will manually filter all hit actors | |
| FGameplayAbilityTargetDataHandle | MakeTargetData
(
const FHitResult& HitResult |
||
| FHitResult | PerformTrace
(
AActor* InSourceActor |
||
| void | SweepWithFilter
(
FHitResult& OutHitResult, |
Sweeps as normal, but will manually filter all hit actors |
Overridden from AGameplayAbilityTargetActor
| Type | Name | Description | |
|---|---|---|---|
| void | Requesting targeting data, but not necessarily stopping/destroying the task. | ||
| void | StartTargeting
(
UGameplayAbility* Ability |
Initialize and begin targeting logic |
Overridden from AActor
| Type | Name | Description | |
|---|---|---|---|
| void | EndPlay
(
const EEndPlayReason::Type EndPlayReason |
Overridable function called whenever this actor is being removed from a level | |
| void | Tick
(
float DeltaSeconds |
Function called every frame on this Actor. |