struct
NetworkObjectComponent
Marks an entity as participating in network replication. The server authoritatively sets networkId at spawn time and sends a Spawn packet so a client materializes a corresponding ghost entity. From then on the server emits snapshot deltas at the configured tick rate and the client applies them to its ghost.
- Module
- Networking
- Header
#include "Networking/Components/NetworkObjectComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
ownerPeerId controls authority for input + client-side prediction: peer 0 = server, anything else = the connected client that "drives" this object. An entity is ALWAYS relevant to its owner, whatever the distance — a client never loses its own pawn.
prefabPath is the resource path the client uses to instantiate the ghost. Empty spawns a bare Transform-only ghost.
Properties
| Type | Name | Description |
|---|---|---|
NetworkId | networkId | Default INVALID_NETWORK_ID. |
uint32_t | ownerPeerId | Default 0. |
std::string | prefabPath | |
uint64_t | placedGuid | Identity of a SCENE-PLACED network object, stamped once when the scene is saved and stable across every load of it. Both peers load the same scene, so the server's Spawn names this id and the client binds the packet to the exact local entity that carries it. 0 means "not authored" — a runtime spawn, or a scene written before the field existed — and sends the client back to matching by prefab path and nearest pose, which pairs interchangeable twins wrongly once they have moved. Default 0. |
bool | replicateTransform | Default true. |
NetRelevancyMode | relevancy | Default NetRelevancyMode::Distance. |
float | netCullDistance | <= 0 falls back to the net.cull_distance cvar. Default 0.0f. |
float | netPriority | UE's NetPriority: the send order under a tight budget is netPriority * (1 + ticks since this client last got an update). Default 1.0f. |
NetPriorityTier | netPriorityTier | Default NetPriorityTier::Normal. |
uint32_t | netRelevancyGroups | Relevancy groups (UE's connection filters / Iris groups): a bitmask of the groups this object belongs to. 0 = no restriction. Non-zero = only peers whose group mask (ReplicationManager::SetPeerRelevancyGroups) shares a bit see it, whatever the relevancy mode — a team-only marker, a squad's private objective. The owner always sees its own object. Default 0. |
float | netUpdateFrequency | UE's NetUpdateFrequency: how many times a second this object's continuous state is even looked at for a snapshot; <= 0 = every replication tick. A prop that moves once a minute was diffed for every client on every tick. Default 0.0f. |
bool | netDormant | UE's dormancy: a dormant object's continuous state is neither diffed nor sent until it wakes; ReplicationManager::FlushNetDormancy sends one update without waking it. Its Spawn still reaches a client it becomes relevant to, and its discrete state still ships on change. Default false. |
bool | netFlushDormancy | Default false. |
bool | netDueThisTick | Default true. |
uint32_t | netNextUpdateTick | Default 0. |
bool | netPushModel | UE's push model: the object promises to call ReplicationManager::MarkNetDirty after every change to its replicated state, and in return a due object that has not been marked since a peer last converged on it is not diffed for that peer at all. An unmarked change is NOT sent — the opt-in is the promise. Default false. |
uint32_t | netChangeSerial | Starts at 1 so a peer record that has never converged (clean serial 0) can never match it. Default 1. |
uint32_t | netState | Replicated DISCRETE gameplay state word — a game packs health / ammo / a small state enum / flags here. Unlike the continuous transform it ships on the RELIABLE channel (reliably-until-acked): a single dropped snapshot must never leave a client stuck on a stale discrete value. Default 0. |
bool | spawnedRemotely | Default false. |
Generated from Networking/Components/NetworkObjectComponent.h via networking.json · Nov 4, 2026Version 1.0.0