Navigation
API > API/Plugins > API/Plugins/TargetingSystem
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.
| Name | USimpleTargetingSortTask |
| Type | class |
| Header File | /Engine/Plugins/Experimental/GameplayTargetingSystem/Source/GameplayTargetingSystem/Public/Tasks/SimpleTargetingSortTask.h |
| Include Path | #include "Tasks/SimpleTargetingSortTask.h" |
Syntax
UCLASS (MinimalAPI, EditInlineNew, Abstract, Blueprintable)
class USimpleTargetingSortTask : public UTargetingSortTask_Base
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UTargetingTask → UTargetingSortTask_Base → USimpleTargetingSortTask
Functions
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float BP_GetScoreForTarget
(
const FTargetingRequestHandle& TargetingHandle, |
Called on every target to get a Score for sorting. | Tasks/SimpleTargetingSortTask.h |
|
Overridden from UTargetingSortTask_Base
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual float GetScoreForTarget
(
const FTargetingRequestHandle& TargetingHandle, |
Called on every target to get a Score for sorting. | Tasks/SimpleTargetingSortTask.h |