Illusive_S
(Illusive_S)
November 11, 2014, 11:27pm
1
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?
VSZ
(VSZ)
December 19, 2014, 7:18pm
2
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.
Hello, So I’m trying to add components in C++, but in OnConstruction(), which is equivalent to the construction script in BP. I want to display temporary stuff by spawning some components whenever the user moves the BP actor in the scene. Inside...