Navigation
API > API/Plugins > API/Plugins/MassGameplayEditor
Inheritance Hierarchy
- UDynamicSubsystem
- UEditorSubsystem
- UMassTraitRepository
References
| Module | MassGameplayEditor |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassGameplayEditor/Public/MassTraitRepository.h |
| Include | #include "MassTraitRepository.h" |
Syntax
UCLASS ()
class UMassTraitRepository : public UEditorSubsystem
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsRepositoryInitialized | We initialize the repository's data lazily and this property indicates whether it has been already done. | |
| TMap< FName, TArray< FName > > | ElementTypeToTraitMap | ||
| TObjectPtr< UWorld > | InvestigationWorld | The World we use to host all the subsystems required to process traits | |
| FDelegateHandle | OnNewTraitTypeHandle | ||
| TMap< FName, FTraitAndElements > | TraitClassNameToDataMap |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Deinitialize () |
||
| UWorld * | |||
| TWeakObjectPtr< UClass > | GetTraitClass
(
const FName TraitClassName |
||
| TConstArrayView< FName > | GetTraitsNameAddingElements
(
const FName ElementName |
||
| void | Initialize
(
FSubsystemCollectionBase& Collection |
||
| void | The method gathers all existing trait classes and processed them. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FTraitAndElements |
Constants
| Name | Description |
|---|---|
| GlobalInvestigationWorld |