LNK 2019 CreateChildActor

doing

UnitDisplayer->CreateChildActor();

getting:

LNK2019: unresolved external symbol “public: void __cdecl UChildActorComponent::CreateChildActor(void)” (?CreateChildActor@UChildActorComponent@@QEAAXXZ) referenced in function “public: virtual void __cdecl AMyCharacter::BeginPlay(void)” (?BeginPlay@AMyCharacter@@UEAAXXZ) C:\Users\Illusive\Documents\Unreal Projects\FormationsPrototype\Intermediate\ProjectFiles\MyCharacter.cpp.obj FormationsPrototype

Any ideas?

Check out below threads on the same topic.

The gist is that CreateChildActor isn’t accessible, call childActorComponent->OnComponentCreated(); instead. The child actor should be automatically created but isn’t because of a bug.