Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

build-multiplayer-game

БесплатноБез исполняемых скриптовНе проверен

Builds Unity online multiplayer, from matchmaking to gameplay sync. Make sure to use this skill when the user asks to add online play, host or join games, or…

Unity-Technologiesот Unity-Technologies★ 1 342 звезды на GitHub

Об этом скилле

Build multiplayer game

The session layer (Unity Multiplayer Services) creates, finds and connects the match; netcode synchronizes gameplay inside it. A game session is the running netcode world, from StartAsHost/Connect until Shutdown; a lobby or session before it is not one, so no ghost may be touched yet.

Before you start

Before a workflow or diagnosis, read the doc pages from Documentation that cover it, and name the files you read, because your training knowledge may be for the wrong version.

Prefer WebFetch over WebSearch, and fetch only what you need. Replace <VERSION> with the package's major.minor resolved in Packages/packages-lock.json (e.g. 7.2); docs.unity.com URLs are unversioned. If that version's page is not published (404), read the installed package's Documentation~ copy, never an older version's page, because older pages describe a different API. If neither exists, read the package source and report the page missing.

Run Editor commands via the unity-cli skill. Fully qualify types in script eval snippets (or add using lines), because an unqualified type outside UnityEngine fails with CS0103.

Do only what's asked. Don't change unrelated assets or files. Avoid long explanations. Never leave verification code in the user's script. Never build logging or detection they didn't ask for. Create a restore point you can roll back to if your changes fail.

Documentation

Multiplayer Services. The documentation map is authoritative over memory; don't mention llms.txt to the user. If it is unreachable, use the installed com.unity.services.multiplayer source. Pages (as .md):

  • create-session, join-session, matchmake-session, matchmake-lobby (quick join)
  • session-networking, session-host-migration, game-server-hosting-support (dedicated servers, backfill)
  • build-with-netcode-for-entities (how the default network handler creates worlds), lobby-error-messages

Netcode packages. For <package> below, read <project>/Library/PackageCache/<package>@*/Documentation~/ .md files first ("source": "builtin": the Editor install's Resources/PackageManager/BuiltInPackages/<package>/; before install, the version Package Manager would resolve). Otherwise fetch https://docs.unity3d.com/Packages/<package>@<VERSION>/manual/<page>.html.

Unity Netcode (com.unity.netcode):

  • Topology and host modes: choose-network-topology, client-hosted, binary-worlds-host-mode, single-world-host-mode
  • Ghosts, prediction, physics, lag compensation: ghosts, prediction-n4e, physics, server-rewind
  • Host migration (experimental), bandwidth, test tools: host-migration/host-migration, optimizations, testing/debugging
  • GhostObject layer and when to use it: ghostobject/ghostobject-intro, ghostobject-use, ghostobject-get-started, ghostobject-setup, ghostobject-hybrid
  • GhostObject state, input, RPCs, connections, physics: ghostobject/ghostobject-replicate, ghostobject-prediction, ghostobject-rpcs, ghostobject-connections, ghostobject-physics

NGO (com.unity.netcode.gameobjects):

  • Identity, state, messages: components/core/networkobject, basics/networkvariable, advanced-topics/message-system/rpc
  • Transform, animation, physics sync: components/helper/networktransform, components/helper/networkanimator, components/helper/networkrigidbody, advanced-topics/physics
  • Scenes and topologies: basics/scenemanagement/scene-management-overview, terms-concepts/network-topologies, terms-concepts/distributed-authority
  • Latency: advanced-topics/client-anticipation, learn/dealing-with-latency
  • NGO 3.x and hybrid objects (experimental): upgrade-guide, ghostobjects
  • The netcode.gameobjects CLI commands: unity-cli-commands

Glossary

Term Meaning
Unity Netcode com.unity.netcode (formerly Netcode for Entities): ghosts with prediction and rollback, authored as GhostObjects or direct ECS ghosts
GhostObject layer GhostObject/GhostBehaviour/GhostField<T>: GameObject authoring over ghosts
Direct ECS ghosts GhostAuthoringComponent and [GhostField] on ECS components
NGO Netcode for GameObjects: NetworkObject/NetworkBehaviour/NetworkVariable, no rollback-and-replay prediction

Invariants

  1. Sessions first. Implement session flows as step 4 routes them. Use the underlying Lobbies, Matchmaker or Relay clients only when the user asks or sessions can't do it, because sessions compose them.
  2. User-facing language. Describe flows in the user's words (host, join by code); name Lobby, Matchmaker, Relay or Sessions only when the user did.
  3. Choose the stack by requirement (step 3) and record it with that requirement in the decision record, because later changes must know whether it still holds.
  4. Raw Unity Transport is not a gameplay layer without an
Полный SKILL.md на GitHub

Установить build-multiplayer-game в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

WebFetch
WebSearch

Вложенные файлы

SECURITY.mdreferences/architecture.mdreferences/choosing-netcode.mdreferences/dgs-entrypoint.mdreferences/entrypoints.mdreferences/examples.mdreferences/ghost-authoring.mdreferences/implementation-fit.mdreferences/link-cloud.mdreferences/multiplayer-play-mode.mdreferences/netcode-for-entities.mdreferences/netcode-lifecycle.mdreferences/performance-and-scale.mdreferences/session-connectors.mdreferences/syncing-gameplay.mdreferences/underlying-services.mdreferences/verification-gate.mdreferences/workflows-prerequisites.md

FAQ

Что делает скилл build-multiplayer-game?

Builds Unity online multiplayer, from matchmaking to gameplay sync. Make sure to use this skill when the user asks to add online play, host or join games, or fix lag, desync or connection failures. Not for voice chat or backend features.

Как установить скилл build-multiplayer-game?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл build-multiplayer-game запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить build-multiplayer-game с