unity-game-development

Implement Unity gameplay systems, performance optimization, and multiplayer networking.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/duylinhdang1998/claude-template-agent --skill unity-game-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-game-development
Source: https://github.com/duylinhdang1998/claude-template-agent/tree/main/plugins/vfm-agent-company/skills/unity-game-development
Command: npx skills add https://github.com/duylinhdang1998/claude-template-agent --skill unity-game-development

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

Building games in Unity requires coordinating architecture, performance, and networking across platforms while avoiding common pitfalls like GC spikes, fragile coupling, and insecure network logic; this Skill provides actionable guidance and patterns to design, implement, and optimize Unity projects reliably.

Core Features & Use Cases

  • Architecture & Patterns: Component-based C# design, SOLID principles, ScriptableObjects for data-driven systems, and clear separation of input, logic, presentation, and networking.
  • Performance & Optimization: Guidance on profiling, avoiding GC in hot paths, object pooling, draw call reduction, and platform-specific optimisation strategies to target 60 FPS.
  • Networking & Multiplayer: Server-authoritative patterns, NetworkVariables and RPC usage, client-side prediction and reconciliation, LAN discovery, and bandwidth optimization using Netcode or Mirror.
  • Real-world Example: Implement a 2D top-down shooter with a pooled projectile system, authoritative server damage handling, and UI synced via NetworkVariables to maintain performance and correctness across clients.

Quick Start

Use the unity-game-development skill to create a performance-safe player controller, implement object pooling for frequently spawned objects, and configure Netcode for server-authoritative movement.

Frequently Asked Questions about unity-game-development

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

FAQPage Schema
How do I implement server-authoritative movement in Unity multiplayer to prevent cheating?

Server-authoritative movement in Unity multiplayer is implemented using NetworkVariables and RPCs in Netcode or Mirror to validate client inputs. This Skill provides patterns for client-side prediction and reconciliation to maintain responsive gameplay while keeping the server authoritative.

How do I avoid GC spikes in Unity hot paths to reach 60 FPS?

Avoiding GC spikes in Unity hot paths requires object pooling for frequently spawned objects and zero-GC allocation patterns in C# scripts. This Skill guides profiling-driven optimization to identify allocations, reduce draw calls, and sustain 60 FPS across PC, mobile, console, and WebGL.

What is the best way to structure data-driven Unity gameplay systems?

Data-driven Unity gameplay systems are best structured using ScriptableObjects for data separation and component-based C# architecture for logic. This Skill applies SOLID principles to separate input, logic, presentation, and networking, preventing fragile coupling in complex projects.

Does this Unity networking guidance work with both Netcode and Mirror?

Yes, this Unity networking guidance works with both Netcode and Mirror for implementing server-authoritative gameplay. It covers bandwidth optimization, LAN discovery, and NetworkVariable synchronization to ensure correct state replication across clients regardless of the chosen framework.

Can I use object pooling for projectiles in a 2D top-down shooter?

Yes, you can use object pooling for projectiles in a 2D top-down shooter to eliminate instantiation overhead. This Skill demonstrates implementing a pooled projectile system with authoritative server damage handling and UI synced via NetworkVariables for multiplayer correctness.

Why does my Unity game experience frame drops during frequent object spawning?

Unity games experience frame drops during frequent object spawning due to instantiation overhead and garbage collection spikes. This Skill addresses the limitation by implementing object pooling patterns and profiling-driven optimization to achieve zero-GC hot paths and maintain consistent frame rates.