Navigation
API > API/Plugins > API/Plugins/TargetingSystem > API/Plugins/TargetingSystem/Tasks
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UTargetingTask
- UTargetingSelectionTask_Trace
References
| Module | TargetingSystem |
| Header | /Engine/Plugins/Experimental/GameplayTargetingSystem/Source/GameplayTargetingSystem/Public/Tasks/TargetingSelectionTask_Trace.h |
| Include | #include "Tasks/TargetingSelectionTask_Trace.h" |
Syntax
UCLASS (Blueprintable)
class UTargetingSelectionTask_Trace : public UTargetingTask
Remarks
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).
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint8: 1 | bComplexTrace | Indicates the trace should perform a complex trace | |
| uint8: 1 | bIgnoreInstigatorActor | Indicates the trace should ignore the source actor | |
| uint8: 1 | bIgnoreSourceActor | Indicates the trace should ignore the source actor | |
| uint8: 1 | bMultiTrace | Indicates whether the trace should be a multi trace or a single trace | |
| FCollisionProfileName | CollisionProfileName | The collision profile name to use instead of trace channel (does not work for async traces) | |
| FVector | DefaultSourceOffset | The default source location offset used by GetSourceOffset | |
| FScalableFloat | DefaultSweptTraceBoxHalfExtentX | The default swept extents used by GetSweptTraceExtents when the trace type is set to Box | |
| FScalableFloat | DefaultSweptTraceBoxHalfExtentY | The default swept extents used by GetSweptTraceBoxHalfExtents when the trace type is set to Box | |
| FScalableFloat | DefaultSweptTraceBoxHalfExtentZ | The default swept extents used by GetSweptTraceBoxHalfExtents when the trace type is set to Box | |
| FScalableFloat | DefaultSweptTraceCapsuleHalfHeight | The default swept trace radius used by GetSweptTraceRadius when the trace type is set to Capsule | |
| FScalableFloat | DefaultSweptTraceRadius | The default swept trace radius used by GetSweptTraceRadius when the trace type is set to Sphere or Capsule | |
| FRotator | DefaultSweptTraceRotation | The default swept rotation (relative to the trace direction) used by GetSweptTraceRotation when the trace type is set to Capsule or Box | |
| FScalableFloat | DefaultTraceLength | The default trace length to use if GetTraceLength is not overridden by a child | |
| FVector | ExplicitTraceDirection | An explicit trace direction to use (default uses pawn control rotation or actor forward vector in GetTraceDirection) | |
| TEnumAsByte< ETraceTypeQuery > | TraceChannel | The trace channel to use | |
| ETargetingTraceType | TraceType | The trace type (i.e. shape) to use |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UTargetingSelectionTask_Trace
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | GetAdditionalActorsToIgnore
(
const FTargetingRequestHandle& TargetingHandle, |
Native Event to get additional actors the Trace should ignore | |
| FVector | GetSourceLocation
(
const FTargetingRequestHandle& TargetingHandle |
Native Event to get the source location for the Trace | |
| FVector | GetSourceOffset
(
const FTargetingRequestHandle& TargetingHandle |
Native Event to get a source location offset for the Trace | |
| FVector | GetSweptTraceBoxHalfExtents
(
const FTargetingRequestHandle& TargetingHandle |
Native Event to get the swept box trace half extents (only called if TraceType = ETargetingTraceType::Box) | |
| float | GetSweptTraceCapsuleHalfHeight
(
const FTargetingRequestHandle& TargetingHandle |
Native Event to get the swept trace capsule's half height (only called if TraceType = ETargetingTraceType::Capsule) | |
| float | GetSweptTraceRadius
(
const FTargetingRequestHandle& TargetingHandle |
Native Event to get the swept trace radius (only called if TraceType = ETargetingTraceType::Sphere or TraceType = ETargetingTraceType::Capsule) | |
| 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) | |
| FVector | GetTraceDirection
(
const FTargetingRequestHandle& TargetingHandle |
Native Event to get the direction for the Trace | |
| float | GetTraceLength
(
const FTargetingRequestHandle& TargetingHandle |
Native Event to get the length for the Trace |
Overridden from UTargetingTask
| Type | Name | Description | |
|---|---|---|---|
| void | Execute
(
const FTargetingRequestHandle& TargetingHandle |
Evaluation function called by derived classes to process the targeting request |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| bool | CanEditChange
(
const FProperty* InProperty |
Called by the editor to query whether a property of this object is allowed to be modified. |