unity-netcode

Automates Netcode for GameObjects multiplayer setup and runtime control in Unity.

Updated Aug 31, 2026
One-click install
npx skills add https://github.com/pikachu0310/codex-agent-ops-public --skill unity-netcode-pikachu0310
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-netcode
Source: https://github.com/pikachu0310/codex-agent-ops-public/tree/main/.agents/skills/unity-skills/skills/netcode
Command: npx skills add https://github.com/pikachu0310/codex-agent-ops-public --skill unity-netcode-pikachu0310

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 driving host/server/client sessions. This Skill automates those operations through verified skill calls and prevents common hallucinated APIs. ## Core Features & Use Cases - Setup & Validation: Verify package installation, create and configure NetworkManager with UnityTransport, and bulk-edit NetworkConfig fields like TickRate and ConnectionApproval. - Prefab & Component Management: Create NetworkPrefabsList assets, register prefabs, set the player prefab, and attach NetworkObject, NetworkTransform, NetworkRigidbody, or NetworkAnimator components. - Runtime Control: Start host/server/client sessions, shut down, and query connection status in PlayMode, plus NGO 2.5+ features like AttachableBehaviour and ComponentController. - Use Case: Scaffold a multiplayer prototype by creating a NetworkManager, registering a player prefab, generating a NetworkBehaviour script template with RPCs and NetworkVariables, then starting a host session to verify connectivity. ## Quick Start Ask the AI to check the Netcode setup, create a NetworkManager with UnityTransport, register a player prefab, and start a host session in PlayMode.

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 NetworkConfig fields like TickRate, register prefabs in a NetworkPrefabsList, and set the player prefab. Then enter PlayMode and start a host, server, or client session.

How do I spawn objects in Netcode for GameObjects?

Spawning is not exposed as a 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, the module targets NGO 2.x and was validated against version 2.13.1. Legacy 1.x prefab list layouts and the old RPC model are out of scope.

Why does netcode_start_host fail outside PlayMode?

All runtime control skills (start host, server, client, shutdown) require PlayMode because they operate on a live NetworkManager. Calls from Edit Mode return an error by design.

What Unity version is required for Netcode for GameObjects automation?

Unity 6000.0 or newer with the com.unity.netcode.gameobjects 2.x package installed. AttachableBehaviour, AttachableNode, and ComponentController skills additionally require NGO 2.5.0 or later.