Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UChildActorComponent > API/Runtime/Engine/Components/UChildActorComponent/SetChildActorClass
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/ChildActorComponent.h |
| Include | #include "Components/ChildActorComponent.h" |
void SetChildActorClass
&40;
TSubclassOf< AActor > InClass
&41;
Remarks
Sets the class to use for the child actor. If called on a template component (owned by a CDO), 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 (and the class is changing), the created ChildActor will use the class defaults as template.
Parameters
| Name | Description |
|---|---|
| InClass | The Actor subclass to spawn as a child actor |