Navigation
API > API/Plugins > API/Plugins/TargetingSystem
Selection task that can perform a synchronous or asynchronous trace (line/sweep) to find all targets up to the first blocking hit (or its end point).
| Name | UTargetingSelectionTask_Trace |
| Type | class |
| Header File | /Engine/Plugins/Experimental/GameplayTargetingSystem/Source/GameplayTargetingSystem/Public/Tasks/TargetingSelectionTask_Trace.h |
| Include Path | #include "Tasks/TargetingSelectionTask_Trace.h" |
Syntax
UCLASS (MinimalAPI, Blueprintable)
class UTargetingSelectionTask_Trace : public UTargetingTask
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UTargetingTask → UTargetingSelectionTask_Trace
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UTargetingSelectionTask_Trace
(
const FObjectInitializer& ObjectInitializer |
Tasks/TargetingSelectionTask_Trace.h |
Functions
Public
Overridden from UTargetingTask
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Execute
(
const FTargetingRequestHandle& TargetingHandle |
Evaluation function called by derived classes to process the targeting request | Tasks/TargetingSelectionTask_Trace.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void GetAdditionalActorsToIgnore
(
const FTargetingRequestHandle& TargetingHandle, |
Native Event to get additional actors the Trace should ignore | Tasks/TargetingSelectionTask_Trace.h |
|
FVector GetSourceLocation
(
const FTargetingRequestHandle& TargetingHandle |
Native Event to get the source location for the Trace | Tasks/TargetingSelectionTask_Trace.h |
|
FVector GetSourceOffset
(
const FTargetingRequestHandle& TargetingHandle |
Native Event to get a source location offset for the Trace | Tasks/TargetingSelectionTask_Trace.h |
|
FVector GetSweptTraceBoxHalfExtents
(
const FTargetingRequestHandle& TargetingHandle |
Native Event to get the swept box trace half extents (only called if TraceType = ETargetingTraceType::Box) | Tasks/TargetingSelectionTask_Trace.h |
|
float GetSweptTraceCapsuleHalfHeight
(
const FTargetingRequestHandle& TargetingHandle |
Native Event to get the swept trace capsule's half height (only called if TraceType = ETargetingTraceType::Capsule) | Tasks/TargetingSelectionTask_Trace.h |
|
float GetSweptTraceRadius
(
const FTargetingRequestHandle& TargetingHandle |
Native Event to get the swept trace radius (only called if TraceType = ETargetingTraceType::Sphere or TraceType = ETargetingTraceType::Capsule) | Tasks/TargetingSelectionTask_Trace.h |
|
FRotator GetSweptTraceRotation
(
const FTargetingRequestHandle& TargetingHandle |
Native Event to get the swept trace rotation relative to trace direction (only called if TraceType = ETargetingTraceType::Capsule or TraceType = ETargetingTraceType::Box) | Tasks/TargetingSelectionTask_Trace.h |
|
FVector GetTraceDirection
(
const FTargetingRequestHandle& TargetingHandle |
Native Event to get the direction for the Trace | Tasks/TargetingSelectionTask_Trace.h |
|
float GetTraceLength
(
const FTargetingRequestHandle& TargetingHandle |
Native Event to get the length for the Trace | Tasks/TargetingSelectionTask_Trace.h |
|
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanEditChange
(
const FProperty* InProperty |
Tasks/TargetingSelectionTask_Trace.h |