unity-netcode

Configure Netcode for GameObjects multiplayer setup, prefabs, and host/server/client lifecycle in Unity.

Updated Jun 21, 2026
One-click install
npx skills add https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications --skill unity-netcode-du-qwq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-netcode
Source: https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications/tree/main/.agents/skills/unity-skills/skills/netcode
Command: npx skills add https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications --skill unity-netcode-du-qwq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up Unity multiplayer with Netcode for GameObjects (NGO 2.x) involves many error-prone steps: creating the NetworkManager, configuring transports, registering network prefabs, attaching NetworkObject components, and managing host/server/client lifecycle. This Skill automates those operations through verified skill calls and prevents common mistakes like spawning outside runtime code. ## Core Features & Use Cases - NetworkManager & Transport Setup: Create and configure NetworkManager, UnityTransport addresses, Relay server data, and debug latency simulation. - NetworkObject & Prefab Management: Attach NetworkObject/NetworkTransform/NetworkRigidbody/NetworkAnimator components, build NetworkPrefabsList assets, and set the player prefab. - Runtime Session Control: Start host, server, or client in PlayMode, query connection status, spawn manager state, and shut down sessions. - Use Case: A developer says "add multiplayer to my game" — the Skill checks the NGO package, creates the NetworkManager, registers the player prefab, generates a NetworkBehaviour script template, and starts a host session for testing. ## Quick Start Set up Netcode multiplayer in my Unity project by creating a NetworkManager, registering my Player prefab, and starting a host session.

Frequently Asked Questions about unity-netcode

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

FAQPage Schema
How do I set up Netcode for GameObjects multiplayer in Unity?

Create a NetworkManager with UnityTransport, configure the NetworkConfig (tick rate, topology, scene management), set the transport address and port, then register network prefabs in a NetworkPrefabsList. Finally attach NetworkObject components and start a host, server, or client in PlayMode.

How do I spawn network objects with Netcode for GameObjects?

Spawning is not exposed as an editor skill; it must happen in runtime NetworkBehaviour code using .Spawn() or NetworkManager.SpawnManager.InstantiateAndSpawn with server authority. The skills only handle prefab registration and NetworkManager lifecycle.

Does this work with Netcode for GameObjects 1.x?

No, this module targets NGO 2.x and was validated against version 2.11.0. Legacy 1.x projects with the old prefabs list layout and different RPC model are out of scope.

Why does netcode_start_host fail in the Unity editor?

All runtime control skills (start host, server, client, shutdown) require PlayMode and return an error when called from Edit Mode. Enter PlayMode first, then start the session.

Why must the player prefab be in a NetworkPrefabsList?

NGO 2.x enforces at runtime that the PlayerPrefab is registered in a NetworkPrefabsList. Add the prefab with netcode_add_to_prefabs_list before assigning it via netcode_set_player_prefab, and attach a NetworkObject component first.