unity-netcode

Configure Unity Netcode for GameObjects multiplayer setup and generate NetworkBehaviour templates.

6|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/dyCuong03/unity-agent-team --skill unity-netcode-dycuong03
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: unity-netcode
Source: https://github.com/dyCuong03/unity-agent-team/tree/main/.claude/skills/unity-skills/skills/netcode
Command: npx skills add https://github.com/dyCuong03/unity-agent-team --skill unity-netcode-dycuong03

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the manual, error-prone setup work needed to configure Unity Netcode for GameObjects (NGO) so you can reliably build Host/Server/Client flows and wire up the required networking components.

Core Features & Use Cases

  • Create and configure core networking objects: Generates a NetworkManager with UnityTransport and bulk-edits key NetworkConfig fields like TickRate, ConnectionApproval, EnableSceneManagement, NetworkTopology, and ClientSynchronizationMode.
  • Wire up gameplay networking components: Attaches NetworkObject plus common synchronization components such as NetworkTransform, NetworkRigidbody/NetworkRigidbody2D, and NetworkAnimator to existing GameObjects.
  • Manage prefab registration and code templates: Creates and maintains NetworkPrefabsList entries (including PlayerPrefab) and generates NetworkBehaviour script templates with optional RPCs, NetworkVariables, and ownership callbacks.
  • Run the session lifecycle in PlayMode: Starts host/server/client and reads runtime status, while enforcing PlayMode requirements and preventing unsupported operations (like Spawn/Despawn skills).

Use it when you need to quickly turn a Unity scene into a working NGO multiplayer prototype, for example setting up a PlayerController prefab, registering it in NetworkPrefabsList, generating the appropriate NetworkBehaviour skeleton, and then starting a host and verifying connection state.

Quick Start

Run the unity-netcode flow by checking setup, creating NetworkManager, configuring NetworkConfig and transport, registering your PlayerPrefab in a NetworkPrefabsList, generating a NetworkBehaviour template, then entering PlayMode and starting host.

Frequently Asked Questions about unity-netcode

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

FAQPage Schema
How do I automate Unity Netcode for GameObjects setup in my scene?▼

Automating Unity Netcode for GameObjects setup involves generating a NetworkManager, configuring NetworkConfig fields like TickRate and ClientSynchronizationMode, attaching NetworkObject and NetworkTransform components, and registering PlayerPrefabs in a NetworkPrefabsList.

What do I need to configure before building a multiplayer Host and Client flow in Unity?▼

You need the com.unity.netcode.gameobjects 2.x package available. Configuring a NetworkManager with UnityTransport, setting NetworkConfig fields, and registering a PlayerPrefab in a NetworkPrefabsList are required before starting a Host or Client.

Can I generate NetworkBehaviour script templates with RPCs and NetworkVariables automatically?▼

Yes, generating NetworkBehaviour script templates automatically creates code skeletons with optional RPCs, NetworkVariables, and ownership callbacks. These templates provide the structure needed for Host/Server/Client runtime control in your multiplayer gameplay.

Why can't I spawn NetworkObjects directly from the editor outside of PlayMode?▼

You cannot spawn NetworkObjects directly because NGO enforces PlayMode-only lifecycle control. The Skill provides guardrails preventing unsupported actions like direct Spawn/Despawn operations, requiring you to start a Host, Server, or Client session in PlayMode first.

How do I add NetworkRigidbody and NetworkAnimator to existing GameObjects for multiplayer synchronization?▼

Adding multiplayer synchronization components is handled by attaching NetworkObject, NetworkTransform, NetworkRigidbody, and NetworkAnimator to existing GameObjects. This ensures physics and animation states sync across the network for connected clients.