unity-netcode-design

Enforces safe Win32API coding standards and detects violations in your project's source code.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/krl76/MP-Study-Projects --skill unity-netcode-design
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-netcode-design
Source: https://github.com/krl76/MP-Study-Projects/tree/main/Practice1/.codex/skills/unity-skills/skills/netcode-design
Command: npx skills add https://github.com/krl76/MP-Study-Projects --skill unity-netcode-design

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Design rules help developers avoid hallucinated APIs and lifecycle-ordering bugs when working with Netcode for GameObjects, ensuring safe, server-authoritative patterns.

Core Features & Use Cases

  • Provides established guidelines for spawn/despawn, OnNetworkSpawn timing, RPC naming, and NetworkVariable usage to prevent common pitfalls.
  • Applies to NetworkBehaviour, RPCs, and prefab registration workflows in NGO 2.x across client/server scenarios.

Quick Start

Load this design guide before coding NGO components to align practices across NetworkBehaviour, RPC, and NetworkVariable usage.

Frequently Asked Questions about unity-netcode-design

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

FAQPage Schema
What are the design rules for Unity Netcode for GameObjects lifecycle and API pitfalls?

Unity Netcode for GameObjects design rules enforce server-authoritative spawn, correct OnNetworkSpawn timing, and safe NetworkVariable usage to prevent hallucinated APIs and lifecycle-ordering bugs. These rules apply to NGO 2.x.

How do I structure NetworkBehaviour and RPCs in NGO 2.x?

Structure NetworkBehaviour and RPCs in NGO 2.x by following established design guidelines for correct RPC naming and safe prefab registration workflows. This prevents common pitfall scenarios across client and server interactions.

When do I need to apply server-authoritative spawn logic in Unity Netcode?

You need server-authoritative spawn logic in Unity Netcode when writing spawn and despawn workflows to maintain safe network state. Enforcing this pattern prevents common lifecycle bugs during prefab instantiation.

Does OnNetworkSpawn timing affect NetworkVariable usage in Netcode for GameObjects?

OnNetworkSpawn timing directly affects NetworkVariable usage in Netcode for GameObjects. Correct timing ensures safe network state synchronization and prevents lifecycle-ordering bugs during client and server initialization.

What are common limitations when writing spawn and despawn workflows in Unity NGO?

Common limitations when writing spawn and despawn workflows in Unity NGO include hallucinated APIs and incorrect OnNetworkSpawn timing. Following established design rules prevents these lifecycle-ordering bugs across NGO 2.x components.