unity-netcode

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

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/ethanJPope/Our-Main-Hackathon-Game --skill unity-netcode-ethanjpope
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-netcode
Source: https://github.com/ethanJPope/Our-Main-Hackathon-Game/tree/main/.agents/skills/unity-skills/skills/netcode
Command: npx skills add https://github.com/ethanJPope/Our-Main-Hackathon-Game --skill unity-netcode-ethanjpope

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up Unity multiplayer with Netcode for GameObjects involves many error-prone manual steps: creating the NetworkManager, configuring transports, registering network prefabs, attaching NetworkObject components, and driving host/server/client sessions. This Skill automates those operations with source-verified skills for NGO 2.x, returning structured errors when the package is missing or a feature requires NGO 2.5.0+. ## Core Features & Use Cases - Manager & 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. - NGO 2.5+ Features: AttachableBehaviour, AttachableNode, and ComponentController support with version gating via netcode_version. - Use Case: You are prototyping a co-op game and need a NetworkManager on port 7777, a registered player prefab, and a generated NetworkBehaviour script with RPC and NetworkVariable templates before entering PlayMode to start a host. ## Quick Start Ask the AI to check the Netcode setup, create a NetworkManager with UnityTransport, register your player prefab in a NetworkPrefabsList, 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 and topology, set the transport address and port, then register prefabs in a NetworkPrefabsList. This Skill automates each step with netcode_create_manager, netcode_configure_manager, and netcode_add_to_prefabs_list.

How do I spawn a network object with 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; the skills only handle prefab registration and manager lifecycle.

Does this support Netcode for GameObjects 2.5 AttachableBehaviour features?

Yes, AttachableBehaviour, AttachableNode, and ComponentController skills are included but require NGO 2.5.0 or newer. Call netcode_version first; on older 2.x installs these skills return a structured requires-2.5.0+ error instead of failing.

Why does netcode_start_host fail in Unity Edit Mode?

Runtime control skills (start_host, start_server, start_client, shutdown) require PlayMode because they operate on a live NetworkManager. Enter PlayMode first with editor_play, then invoke the runtime control skills.

What happens if the Netcode for GameObjects package is not installed?

Every skill returns a NoNetcode() error with install instructions when com.unity.netcode.gameobjects is missing. Install the 2.x package via Unity Package Manager before calling any netcode skill.