Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UActorComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/ActorComponent.h |
| Include | #include "Components/ActorComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/ActorComponent.cpp |
void AddReplicatedSubObject
(
UObject * SubObject,
ELifetimeCondition NetCondition
)
Remarks
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.
Parameters
| Name | Description |
|---|---|
| SubObject | The subobject to replicate |
| NetCondition | Optional condition to select which type of connection we will replicate the object to. |