Example - Unity NGO
Netcode for GameObjects Integration
Prerequisites
// Package Manager
com.unity.netcode.gameobjects: 2.7.0+Game Mode Considerations
RTS / Strategy Games
Co-op / Horde / Survivor Games (e.g., Vampire Survivors-style)
Key Architecture Difference
Approach
Best For
Server Role
Client Role
Architecture Overview
Step 1: Create the Network Authority Implementation
Step 2: Implement Damage Authority
Step 3: Add RPCs to Network Authority
Step 4: Implement Command Authority
Step 5: Add Command RPCs
Step 6: Implement Spawn Authority
Step 7: Add Spawn RPCs
Step 8: State Synchronization
Step 9: Setup Anti-Cheat (Server Only)
Step 10: Scene Setup
Network Topology Options
Dedicated Server (Recommended for Competitive)
Host Mode (Good for Casual/Co-op)
Performance Tips
1. Batch Network Calls
2. Use Delta Compression
3. Prioritize Important Agents
4. Use Unreliable for Position Updates
Late-Joiner Synchronization
How It Works
What Gets Synced
Property
Description
Custom Late-Joiner Logic
NavMeshAgent Position Synchronization
The Solution: Server Authority
Tuning Position Sync
Scenario
Sync Interval
Correction Threshold
Client-Side Interpolation
Troubleshooting
Agents Teleporting
Commands Not Executing
Desync Issues
High Bandwidth Usage
Last updated