Navigation
API > API/Plugins > API/Plugins/GameplayAbilities
This is the base class for GameplayCue Translators. This is what games must extend from in order to add their own rules. These are not instantiated, and are basically just a holder for virtual functions that are called on the CDO.
There are two main things this class provides:
A set of translation rules. E.g., "I translate GameplayCue.A.B.C into GameplayCue.X.B.C", or rather "I translate A into X". (GetTranslationNameSpawns)
A runtime function to actually do the translation, based on the actors and parameters involved in the gameplay cue event. (GameplayCueToTranslationIndex)
| Name | UGameplayCueTranslator |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayCueTranslator.h |
| Include Path | #include "GameplayCueTranslator.h" |
Syntax
UCLASS (Abstract, MinimalAPI)
class UGameplayCueTranslator : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UGameplayCueTranslator
Derived Classes
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 GameplayCueToTranslationIndex
(
const FName& TagName, |
Runtime function to mapping Tag/Actor/Parameters to a translation index. The returned index here maps to the array was modified in GetTranslationNameSpawns | GameplayCueTranslator.h | |
virtual int32 GetPriority() |
Sorting priority. Higher number = first chance to translate a tag. | GameplayCueTranslator.h | |
virtual void GetTranslationNameSpawns
(
TArray< FGameplayCueTranslationNameSwap >& SwapList |
Return (via out param) list of tag swaps you will do. This should be deterministic/order matters for later! | GameplayCueTranslator.h | |
virtual bool IsEnabled() |
Whether this translator class should be enabled. Useful for disabling WIP translators. | GameplayCueTranslator.h | |
virtual bool ShouldShowInTopLevelFilterList() |
Whether this translator should be shown in the top level view of the filter tree in the gameplaycue editor. If false, we will only add this as children of top level translators. | GameplayCueTranslator.h |