UAbilityTask_VisualizeTargeting

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/Tasks/AbilityTask_VisualizeTargeting.h

Include

#include "Abilities/Tasks/AbilityTask_VisualizeTargeting.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UAbilityTask_VisualizeTargeting : public UAbilityTask

Variables

Name Description

Protected variable

TWeakObjectPtr <...

 

TargetActor

The TargetActor that we spawned

Protected variable

TSubclassOf < AG ...

 

TargetClass

Public variable UProperty BlueprintAssignable

FVisualizeTarge ...

 

TimeElapsed

Protected variable

FTimerHandle

 

TimerHandle_OnTimeElapsed

Handle for efficient management of OnTimeElapsed timer

Constructors

Name Description

Public function

UAbilityTask_VisualizeTargeting

(
    const FObjectInitializer & ObjectIn...
)

Functions

Name Description

Public function UFunction BlueprintCallable, Category, Meta

bool

 

BeginSpawningActor

(
    UGameplayAbility * OwningAbilit...,
    TSubclassOf < AGameplayAbilityTarget ...,
    AGameplayAbilityTargetActor *& ...
)

Protected function Const

void

 

FinalizeTargetActor

(
    AGameplayAbilityTargetActor * S...
)

Public function UFunction BlueprintCallable, Category, Meta

void

 

FinishSpawningActor

(
    UGameplayAbility * OwningAbilit...,
    AGameplayAbilityTargetActor * S...
)

Protected function Const

void

 

InitializeTargetActor

(
    AGameplayAbilityTargetActor * S...
)

Public function

void

 

OnTimeElapsed()

Protected function

void

 

SetDuration

(
    const float Duration
)

Protected function Const

bool

 

ShouldSpawnTargetActor()

Public function Static UFunction BlueprintCallable, Category, Meta

UAbilityTask ...

 

VisualizeTargeting

(
    UGameplayAbility * OwningAbilit...,
    TSubclassOf < AGameplayAbilityTarget ...,
    FName TaskInstanceName,
    float Duration
)

Spawns target actor and uses it for visualization.

Public function Static UFunction BlueprintCallable, Category, Meta

UAbilityTask ...

 

VisualizeTargetingUsingActor

(
    UGameplayAbility * OwningAbilit...,
    AGameplayAbilityTargetActor * T...,
    FName TaskInstanceName,
    float Duration
)

Visualize target using a specified target actor.

Overridden from UGameplayTask

Name Description

Public function Virtual

void

 

Activate()

Called to trigger the actual task once the delegates have been set up Note that the default implementation does nothing and you don't have to call it

Protected function Virtual

void

 

OnDestroy

(
    bool bInOwnerFinished
)

End and CleanUp the task - may be called by the task itself or by the task owner if the owner is ending.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback