UChildActorComponent::SetChildActorClass

Sets the class to use for the child actor.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/ChildActorComponent.h

Include

#include "Components/ChildActorComponent.h"

Syntax

void SetChildActorClass
(
    TSubclassOf< AActor > InClass
)

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

Parameter

Description

InClass

The Actor subclass to spawn as a child actor