Module |
|
Header |
/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/GameplayAbilityTargetActor.h |
Include |
#include "Abilities/GameplayAbilityTargetActor.h" |
[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(Blueprintable, Abstract, NotPlaceable)
class AGameplayAbilityTargetActor : public AActor
TargetActors are spawned to assist with ability targeting. They are spawned by ability tasks and create/determine the outgoing targeting data passed from one task to another
WARNING: These actors are spawned once per ability activation and in their default form are not very efficient For most games you will need to subclass and heavily modify this actor, or you will want to implement similar functions in a game-specific actor or blueprint to avoid actor spawn costs This class is not well tested by internal games, but it is a useful class to look at to learn how target replication occurs
Name | Description | ||
---|---|---|---|
|
bDebug |
Draw the debug information (if applicable) for this targeting actor. |
|
|
bDestroyOnConfirmation |
||
|
CanceledDelegate |
||
|
Filter |
||
|
GenericCancelHandle |
||
|
GenericConfirmHandle |
||
|
GenericDelegateBoundASC |
||
|
MasterPC |
||
|
OwningAbility |
||
|
TSubclassOf< AG... |
ReticleClass |
Reticle that will appear on top of acquired targets. |
|
ReticleParams |
Parameters for world reticle. Usage of these parameters is dependent on the reticle. |
|
|
ShouldProduceTargetDataOnServer |
The TargetData this class produces can be entirely generated on the server. |
|
|
AActor * |
SourceActor |
|
|
StartLocation |
Describes where the targeting action starts, usually the player character or a socket on the player character. |
|
|
TargetDataReadyDelegate |
Name | Description | |
---|---|---|
|
AGameplayAbilityTargetActor ( |
Name | Description | ||
---|---|---|---|
|
BindToConfirmCancelInputs() |
||
|
CancelTargeting() |
Outside code is saying 'stop everything and just forget about it' |
|
|
ConfirmTargeting() |
Outside code is saying 'stop and just give me what you have.' Returns true if the ability accepts this and can be forgotten. |
|
|
ConfirmTargetingAndContinue() |
Requesting targeting data, but not necessarily stopping/destroying the task. |
|
|
IsConfirmTargetingAllowed() |
||
|
OnReplicatedTargetDataReceived ( |
Replicated target data was received from a client. |
|
|
ShouldProduceTargetData() |
||
|
StartTargeting ( |
Initialize and begin targeting logic |
Name | Description | ||
---|---|---|---|
|
EndPlay ( |
Overridable function called whenever this actor is being removed from a level |
|
|
IsNetRelevantFor |
Checks to see if this actor is relevant for a specific network connection |