unity-netcode

Configure Netcode for GameObjects multiplayer setup including NetworkManager, prefabs, and host lifecycle.

2|Updated May 18, 2026
One-click install
npx skills add https://github.com/pcone-mm/NewFPG --skill unity-netcode-pcone-mm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-netcode
Source: https://github.com/pcone-mm/NewFPG/tree/main/.agents/skills/unity-skills/skills/netcode
Command: npx skills add https://github.com/pcone-mm/NewFPG --skill unity-netcode-pcone-mm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up Unity multiplayer with Netcode for GameObjects (NGO 2.x) involves many error-prone manual steps: creating the NetworkManager, configuring transports, registering network prefabs, attaching NetworkObject components, and managing host/server/client lifecycles. This Skill automates those operations through verified skill calls and returns structured errors when the package is missing or version requirements are unmet. ## 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/NetworkAnimator components, build NetworkPrefabsList assets, and set the PlayerPrefab. - Runtime Session Control: Start host/server/client, shut down sessions, and query connection status in PlayMode, plus NGO 2.5+ AttachableBehaviour and ComponentController support. - Use Case: A developer says "add multiplayer to my Unity game" — the Skill checks the NGO install, creates the NetworkManager, registers the player prefab, generates a NetworkBehaviour script with RPCs, 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 prefabs in a NetworkPrefabsList. Finally attach NetworkObject components and start a host, server, or client in PlayMode.

How do I spawn objects in Netcode for GameObjects?

Spawning is not exposed as an editor skill because it requires a running NetworkManager. Call .Spawn() or NetworkManager.SpawnManager.InstantiateAndSpawn from NetworkBehaviour runtime code with server authority.

Does this work with Netcode for GameObjects 1.x?

No, only NGO 2.x is supported, validated against version 2.13.1. Features like AttachableBehaviour, AttachableNode, and ComponentController additionally require NGO 2.5.0 or newer, which you can verify with the version query skill.

Why does starting a host fail in Unity Edit Mode?

Runtime control skills such as start host, start server, start client, and shutdown require PlayMode because they need an active NetworkManager instance. Enter PlayMode first, then invoke the runtime control calls.

What is the difference between Address and ServerListenAddress in UnityTransport?

On a client, Address is the target server IP to connect to. On a server, ServerListenAddress is the bind address, typically 0.0.0.0 to listen on all interfaces. Confusing the two causes connection failures.