Skip to main content

Network Debug Component

The plNetworkDebugComponent provides in-game visualization of network state for debugging purposes. It renders text overlays showing the network ID, replication status, and network role of the game object.

Overview​

Add this component to any networked game object to see its network information rendered in the viewport. This is useful during development to verify that objects are being replicated correctly, identify authority, and spot replication issues.

Properties​

Visualization Toggles​

PropertyTypeDefaultDescription
ShowNetworkIdbooltrueDisplay the object's network ID
ShowReplicationStatebooltrueDisplay whether the component is dirty (pending replication)
ShowNetworkRolebooltrueDisplay the network role (Server, Client, etc.)

Display Settings​

PropertyTypeDefaultDescription
TextScalefloat1.0Scale of the debug text
TextOffsetplVec3(0, 0, 1)Offset from the object's position where text is rendered

Colors​

PropertyTypeDefaultDescription
ServerColorplColorLime GreenColor of debug text on the server
ClientColorplColorCornflower BlueColor of debug text on clients
DirtyColorplColorOrangeColor used when the component is dirty

Usage​

  1. Add plNetworkDebugComponent to any game object that has a plNetworkComponent.
  2. Run the game in play mode.
  3. Network information is rendered as text overlays above each object.

The component does not replicate any data itself -- it is purely a local visualization tool. Its NetworkSerialize() and NetworkDeserialize() are no-ops.

See Also​