unity-netcode
Unity Netcode for GameObjects skill for multiplayer networking, RPCs, state synchronization, and server-authoritative gameplay.
Best use case
unity-netcode is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Unity Netcode for GameObjects skill for multiplayer networking, RPCs, state synchronization, and server-authoritative gameplay.
Teams using unity-netcode should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/unity-netcode/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How unity-netcode Compares
| Feature / Agent | unity-netcode | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Unity Netcode for GameObjects skill for multiplayer networking, RPCs, state synchronization, and server-authoritative gameplay.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Unity Netcode Skill
Multiplayer networking using Unity Netcode for GameObjects.
## Overview
This skill provides capabilities for implementing multiplayer games using Unity's Netcode for GameObjects, including state synchronization, RPCs, and network topology configuration.
## Capabilities
### Network Architecture
- Configure client-server topology
- Set up network manager
- Handle player spawning
- Manage scene loading
### State Synchronization
- Implement NetworkVariables
- Configure sync modes
- Handle prediction
- Manage network transforms
### Remote Procedure Calls
- Implement ServerRpc methods
- Create ClientRpc methods
- Handle RPC parameters
- Manage RPC batching
### Player Management
- Handle player connections
- Implement player spawning
- Manage player state
- Handle disconnections
## Prerequisites
- Unity 2021.3+
- Netcode for GameObjects package
- Transport layer (UTP recommended)
## Usage Patterns
### Network Object
```csharp
public class PlayerNetworkBehaviour : NetworkBehaviour
{
private NetworkVariable<int> health = new NetworkVariable<int>(100);
public override void OnNetworkSpawn()
{
if (IsOwner)
{
// Initialize owned player
}
}
[ServerRpc]
public void TakeDamageServerRpc(int damage)
{
health.Value -= damage;
if (health.Value <= 0)
{
DieClientRpc();
}
}
[ClientRpc]
private void DieClientRpc()
{
// Play death effects on all clients
}
}
```
### Network Manager Setup
```csharp
// Configure in NetworkManager component
networkManager.ConnectionApprovalCallback = ApprovalCheck;
void ApprovalCheck(NetworkManager.ConnectionApprovalRequest request,
NetworkManager.ConnectionApprovalResponse response)
{
response.Approved = ValidatePlayer(request.Payload);
response.CreatePlayerObject = true;
}
```
## Best Practices
1. Use NetworkVariables for state
2. Validate all RPCs on server
3. Minimize network traffic
4. Handle disconnections gracefully
5. Test with simulated latency
## References
- [Netcode Documentation](https://docs-multiplayer.unity3d.com/)Related Skills
unity-vfx-graph
Unity Visual Effect Graph skill for GPU particle systems, procedural effects, and high-performance visual effects.
unity-urp
Universal Render Pipeline configuration skill for Unity, including custom shaders, lighting setup, post-processing effects, and render feature development.
unity-ui-toolkit
Unity UI Toolkit skill for runtime UI development, USS styling, UXML templates, and custom visual elements.
unity-shader-graph
Unity Shader Graph skill for visual shader authoring, custom nodes, and material effects.
unity-profiler
Unity Profiler skill for performance analysis, frame debugging, memory profiling, and optimization workflows.
unity-physics
Unity Physics skill for collision detection, rigidbody dynamics, raycasting, and physics configuration.
unity-input-system
Unity New Input System configuration skill for action maps, device bindings, control schemes, and cross-platform input handling.
unity-hdrp
High Definition Render Pipeline configuration for Unity, including ray tracing, volumetric effects, and high-fidelity graphics setup.
unity-ecs
Unity DOTS/ECS skill for data-oriented design, jobs system, burst compiler optimization, and high-performance gameplay systems.
unity-development
Unity Engine integration skill for project setup, C# scripting, scene management, prefab creation, and editor automation. Enables LLMs to interact with Unity Editor through MCP servers for asset manipulation, script generation, and automated workflows.
unity-cinemachine
Unity Cinemachine skill for virtual cameras, procedural camera control, and cinematic sequences.
unity-animation
Unity Animation skill for Animator controllers, Animation Rigging, Timeline integration, and animation state machines.