I have Created a C++ class “MyMassSpawner” derived from “MassSpawner” in my project, and just override function
void AMyMassSpawner::SpawnGeneratedEntities(TConstArrayView<FMassEntitySpawnDataGeneratorResult> Results)
by adding two UE_LOG rows, but met errors:
ld.lld: error: undefined symbol: FMassSpawnedEntityType::GetEntityConfig() const
>>> referenced by MyMassSpawner.cpp:44 (/mnt/sdb1/VehicleSample/Source/VehicleSample/MyMassSpawner.cpp:44)
>>> /mnt/sdb1/VehicleSample/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/VehicleSample/MyMassSpawner.cpp.o:(AMyMassSpawner::SpawnGeneratedEntities(TArrayView<FMassEntitySpawnDataGeneratorResult const, int>))
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
These are my codes:
MyMassSpawner.cpp (3.4 KB)
MyMassSpawner.h (454 Bytes)