Implement multiplayer games with Unity Netcode, Mirror, or Photon. Masters client-server architecture, state synchronization, and lag compensation. Use for multiplayer features, networking issues, or real-time synchronization.
Multiplayer networking for Unity using Netcode for GameObjects, Mirror, or Photon frameworks.
Foundation Required: unity-csharp-fundamentals (TryGetComponent, FindAnyObjectByType, null-safe coding)
Core Topics:
using Unity.Netcode;
public class Player : NetworkBehaviour
{
private NetworkVariable<int> mHealth = new NetworkVariable<int>(100);
public override void OnNetworkSpawn()
{
if (IsOwner)
{
// Only owner can control
HandleInput();
}
mHealth.OnValueChanged += OnHealthChanged;
}
[ServerRpc]
void TakeDamageServerRpc(int damage)
{
mHealth.Value -= damage;
}
[ClientRpc]
void ShowDamageEffectClientRpc()
{
// Visual feedback on all clients
}
}
Core networking concepts:
npx skills add creator-hian/unity-networking下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer