Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UActorComponent
Description
Register a SubObject that will get replicated along with the actor component. The subobject needs to be manually removed from the list before it gets deleted.
| Name | AddReplicatedSubObject |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/ActorComponent.h |
| Include Path | #include "Components/ActorComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/ActorComponent.cpp |
void AddReplicatedSubObject
(
UObject * SubObject,
ELifetimeCondition NetCondition
)
Parameters
| Name | Remarks |
|---|---|
| SubObject | The subobject to replicate |
| NetCondition | Optional condition to select which type of connection we will replicate the object to. |