Navigation
API > API/Plugins > API/Plugins/MassSpawner > API/Plugins/MassSpawner/FMassEntityTemplateBuildContext
Description
Builds context from a list of traits
| Name | BuildFromTraits |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Public/MassEntityTemplateRegistry.h |
| Include Path | #include "MassEntityTemplateRegistry.h" |
| Source | /Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Private/MassEntityTemplateRegistry.cpp |
bool BuildFromTraits
(
TConstArrayView< UMassEntityTraitBase * > Traits,
const UWorld & World
)
true if there were no validation errors
Parameters
| Name | Remarks |
|---|---|
| Traits | is the list of all the traits to build an entity |
| World | owning the MassEntitySubsystem for which the entity template is built |