Navigation
API > API/Plugins > API/Plugins/MassGameplayEditor
Subsystem to store information about Mass traits so that we can make helpful suggestions to users like which traits supply a fragment they need. It also serves to post trait validation information and fix options to the MessageLog.
| Name | UMassTraitRepository |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassGameplayEditor/Public/MassTraitRepository.h |
| Include Path | #include "MassTraitRepository.h" |
Syntax
UCLASS ()
class UMassTraitRepository : public UEditorSubsystem
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UDynamicSubsystem → UEditorSubsystem → UMassTraitRepository
Structs
| Name | Remarks |
|---|---|
| FTraitAndElements |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| GlobalInvestigationWorld | TWeakObjectPtr< UWorld > | MassTraitRepository.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TWeakObjectPtr< UClass > GetTraitClass
(
const FName TraitClassName |
MassTraitRepository.h | ||
| MassTraitRepository.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Deinitialize() |
MassTraitRepository.h | ||
virtual void Initialize
(
FSubsystemCollectionBase& Collection |
MassTraitRepository.h | ||
void InitRepository () |
The method gathers all existing trait classes and processed them. | MassTraitRepository.h | |
void OnDebugEvent
(
const FName EventName, |
MassTraitRepository.h | ||
void OnNewTraitType
(
UMassEntityTraitBase& Trait |
Note that the function does nothing until InitRepository is called. | MassTraitRepository.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static UWorld * GetInvestigationWorld() |
MassTraitRepository.h |