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 DestroyReplicatedSubObjectOnRemotePeers
(
UObject * SubObject
)
Remarks
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.
Parameters
| Name | Description |
|---|---|
| SubObject | THe SubObject to delete |