/Engine/Source/Runtime/Engine/Classes/Components/ChildActorComponent.h
Sets then class to use for the child actor providing an optional Actor to use as the template. If called on a template component (owned by a CDO) and NewChildActorTemplate is not null, the new child actor template will be created using the supplied Actor as template. If called on a template component and NewChildActorTemplate is null, the properties of any existing child actor template will be copied as best possible to the template. If called on a component instance in a world with NewChildActorTemplate not null, then if registered a new child actor will be created using the supplied Actor as template, otherwise if not registered it will ensure. If the class also changed, then future ChildActors created by this component the class defaults will be used. If called on a component instance in a world with NewChildActorTemplate null and the class is changing, the created ChildActor will use the class defaults as template.
void SetChildActorClass ( [TSubclassOf](API\Runtime\CoreUObject\Templates\TSubclassOf)< [AActor](API\Runtime\Engine\GameFramework\AActor) > InClass, [AActor](API\Runtime\Engine\GameFramework\AActor) * NewChildActorTemplate )