Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Components/ChildActorComponent.h |
Include |
#include "Components/ChildActorComponent.h" |
void SetChildActorClass
(
TSubclassOf< AActor > InClass
)
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.
Parameter |
Description |
---|---|
InClass |
The Actor subclass to spawn as a child actor |