Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/AActor > API/Runtime/Engine/GameFramework/AActor/TearOffReplicatedSubObjectOnRemo-
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h |
| Include | #include "GameFramework/Actor.h" |
| Source | /Engine/Source/Runtime/Engine/Private/ActorReplication.cpp |
void TearOffReplicatedSubObjectOnRemotePeers
&40;
UObject &42; SubObject
&41;
Remarks
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. Note that the subobject won't be replicated anymore, so it's final state on the client will be the one from the last replication update sent. If you are using the legacy subobject replication method (ReplicateSubObjects() aka bReplicateUsingRegisteredSubObjectList=false) make sure the subobject doesn't get replicated there either.
Parameters
| Name | Description |
|---|---|
| SubObject | The SubObject to tear off |