Navigation
API > API/Plugins > API/Plugins/TargetingSystem > API/Plugins/TargetingSystem/Tasks
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UTargetingTask
- UTargetingSortTask_Base
- USimpleTargetingSortTask
References
| Module | TargetingSystem |
| Header | /Engine/Plugins/Experimental/GameplayTargetingSystem/Source/GameplayTargetingSystem/Public/Tasks/SimpleTargetingSortTask.h |
| Include | #include "Tasks/SimpleTargetingSortTask.h" |
Syntax
UCLASS (EditInlineNew, Abstract, Blueprintable)
class USimpleTargetingSortTask : public UTargetingSortTask_Base
Remarks
This is a blueprintable TargetingTask class made for reordering Targets in the results list. Override the GetScoreForTarget Blueprint Function to provide a score for each element and then Targets will be sorted by score.
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | BP_GetScoreForTarget
(
const FTargetingRequestHandle& TargetingHandle, |
Called on every target to get a Score for sorting. |
Overridden from UTargetingSortTask_Base
| Type | Name | Description | |
|---|---|---|---|
| float | GetScoreForTarget
(
const FTargetingRequestHandle& TargetingHandle, |
Called on every target to get a Score for sorting. |