Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UActorComponent
Description
Unregister a SubObject to stop replicating it's properties to clients. This does not remove or delete it from connections where it was already replicated. By default a replicated subobject gets deleted on clients when the original pointer on the authority gets invalidated. If you want to immediately remove it from client use the DestroyReplicatedSubObjectOnRemotePeers or TearOffReplicatedSubObject functions instead of this one.
| Name | RemoveReplicatedSubObject |
| 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 RemoveReplicatedSubObject
(
UObject * SubObject
)
Parameters
| Name | Remarks |
|---|---|
| SubObject | The SubObject to remove |