Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AActor
Description
Register a SubObject that will get replicated along with the actor. 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/GameFramework/Actor.h |
| Include Path | #include "GameFramework/Actor.h" |
| Source | /Engine/Source/Runtime/Engine/Private/ActorReplication.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. |