Navigation
API > API/Plugins > API/Plugins/MassSpawner > API/Plugins/MassSpawner/UMassEntityConfigAsset
Description
Returns a mutable instance of given trait class. If an instance of the given class can be found in the hosted FMassEntityConfig then that instance is returned. Otherwise one will be created, added to the FMassEntityConfig and returned.
| Name | AddTrait |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Public/MassEntityConfigAsset.h |
| Include Path | #include "MassEntityConfigAsset.h" |
| Source | /Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Private/MassEntityConfigAsset.cpp |
UMassEntityTraitBase * AddTrait
(
TSubclassOf < UMassEntityTraitBase > TraitClass
)