Navigation
API > API/Plugins > API/Plugins/MassSpawner > API/Plugins/MassSpawner/FMassEntityTemplateBuildContext
References
| Module | MassSpawner |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Public/MassEntityTemplateRegistry.h |
| Include | #include "MassEntityTemplateRegistry.h" |
| Source | /Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Private/MassEntityTemplateRegistry.cpp |
bool SetTraitBeingProcessed
(
const UMassEntityTraitBase * Trait
)
Remarks
Return true if the given trait can be used. The function will fail if a trait instance of the given class has already been processed. The function will also fail the very same trait instance is used multiple times. Note that it's ok for Trait to be nullptr to indicate the subsequent additions to the build context are procedural in nature and are not associated with any traits. In that case it's ok to have multiple SetTraitBeingProcessed(nullptr) calls.