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★ 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.gameobjectsCLI 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
- Sessions first. Implement session flows as step 4 routes them. Use the underlying
Lobbies,MatchmakerorRelayclients only when the user asks or sessions can't do it, because sessions compose them. - 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.
- 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.
- Raw Unity Transport is not a gameplay layer without an
Установить build-multiplayer-game в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
WebFetchWebSearchВложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub