Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UActorComponent
Description
Stop replicating a subobject and tell actor channels who spawned a replica of this subobject to release ownership over it. This means that on the remote connection the network engine will stop holding a reference to the subobject and it's up to other systems to keep that reference active or the subobject will get garbage collected. If you are using the legacy subobject replication method (ReplicateSubObjects() aka bReplicateUsingRegisteredSubObjectList=false) make sure the subobject doesn't get replicated there either.
| Name | TearOffReplicatedSubObjectOnRemotePeers |
| 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 TearOffReplicatedSubObjectOnRemotePeers
(
UObject * SubObject
)
Parameters
| Name | Remarks |
|---|---|
| SubObject | The SubObject to tear off |