agency-unity-multiplayer-engineer

Implement server-authoritative Unity multiplayer systems with Netcode for GameObjects.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/augustoheiss/LogicDefense --skill agency-unity-multiplayer-engineer-augustoheiss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agency-unity-multiplayer-engineer
Source: https://github.com/augustoheiss/LogicDefense/tree/main/.gemini/skills/agency-unity-multiplayer-engineer
Command: npx skills add https://github.com/augustoheiss/LogicDefense --skill agency-unity-multiplayer-engineer-augustoheiss

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Designing robust Unity multiplayer games is challenging due to latency, desynchronization, and security gaps. This Skill provides a structured approach to building server-authoritative, lag-tolerant networks using Netcode for GameObjects (NGO) and Unity Gaming Services (UGS) with Relay and Lobby.

Core Features & Use Cases

  • Clear authority model decisions (server vs host) and reliable state synchronization patterns
  • Client-side prediction with reconciliation to maintain responsive controls under network delay
  • Integration guidance for NGO, Relay, and Lobby to enable NAT traversal, matchmaking, and scalable multiplayer
  • Anti-cheat validation and server-owned truth to prevent client manipulation in both cooperative and competitive modes

Quick Start

Set up a minimal NGO-host sample with Relay to validate server-authoritative movement and reconciliation.

Frequently Asked Questions about agency-unity-multiplayer-engineer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement client-side prediction and reconciliation in Unity multiplayer?

Server-authoritative movement in Unity uses Netcode for GameObjects to validate client inputs on the server, applying corrections via ClientRpc. This prevents client manipulation and ensures synchronized game state across cooperative and competitive sessions.

How do I set up Unity Relay and Lobby for NAT traversal and matchmaking?

Unity Relay and Lobby integration enables NAT traversal and scalable multiplayer by routing traffic through Relay servers, using Lobby for matchmaking. This setup pairs with Netcode for GameObjects to connect clients without exposing host IP addresses.

What is the best way to synchronize network state using NetworkVariable, ServerRpc, and ClientRpc?

Anti-cheat validation in Unity multiplayer is enforced by treating the server as the single source of truth. The server validates all client inputs before applying them, using Netcode for GameObjects ServerRpc patterns to reject unauthorized actions and prevent client manipulation.

Does this approach support both cooperative and competitive games?

Yes, the server-authoritative Netcode for GameObjects approach supports both cooperative and competitive games. It handles predictable lag-tolerant movement and reconciliation for co-op synchronization while enforcing strict anti-cheat validation for competitive integrity.

Why does my Unity multiplayer game suffer from desynchronization and latency issues?

Bandwidth monitoring in Unity multiplayer is handled by validating inputs and optimizing network state design with Netcode for GameObjects. Efficient use of NetworkVariable and targeted ClientRpc calls minimizes traffic while maintaining reliable synchronization.