Navigation
API > API/Plugins > API/Plugins/MassSpawner > API/Plugins/MassSpawner/FMassEntityConfig
Description
Looks for a trait of the indicated type, accepting all child classes as well, unless bExactMatch == true. Walks the parent chain iteratively and detects cycles - logs an error and returns nullptr if a parent is reached twice.
| Name | FindTraitInternal |
| 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 * FindTraitInternal
(
TSubclassOf < UMassEntityTraitBase > TraitClass,
const bool bExactMatch
) const