Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UActorComponent
Description
Stop replicating a subobject and tell actor channels to delete the replica of this subobject next time the Actor gets replicated Note it is up to the caller to delete the local object on the authority. If you are using the legacy subobject replication method (ReplicateSubObjects() aka bReplicateUsingRegisteredSubObjectList=false) make sure the subobject doesn't get replicated there either.
| Name | DestroyReplicatedSubObjectOnRemotePeers |
| 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 DestroyReplicatedSubObjectOnRemotePeers
(
UObject * SubObject
)
Parameters
| Name | Remarks |
|---|---|
| SubObject | THe SubObject to delete |