unity

Guides Unity and C# game development with performance optimization patterns.

Updated Jun 30, 2026
One-click install
npx skills add https://github.com/kaitoartz/dotfiles --skill unity-kaitoartz
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: unity
Source: https://github.com/kaitoartz/dotfiles/tree/main/dot_gemini/config/skills/unity%20-%20Copy
Command: npx skills add https://github.com/kaitoartz/dotfiles --skill unity-kaitoartz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing Unity game code that follows engine conventions and avoids performance pitfalls requires deep knowledge of C# patterns, component architecture, and optimization techniques that many developers struggle to apply consistently. ## Core Features & Use Cases - C# and Unity Standards: Enforces MonoBehaviour usage, ScriptableObjects for data-driven design, TryGetComponent patterns, and TextMeshPro for text rendering. - Performance Optimization: Applies object pooling, draw call batching, LOD systems, component caching, and garbage collection minimization. - Game Systems Guidance: Covers physics, Input System, UI implementation, and state machines for complex behaviors. - Use Case: When building a Unity game with frequent projectile spawning, use this Skill to implement object pooling and cached component references instead of repeated Instantiate calls that cause frame drops. ## Quick Start Ask the AI to write a Unity C# script for a player controller using the Input System with proper naming conventions and performance best practices.

Frequently Asked Questions about unity

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

FAQPage Schema
How do I optimize performance in Unity games?▼

Unity performance optimization involves object pooling for frequently instantiated objects, draw call batching, LOD systems, and caching component references. Use the Unity Profiler to identify bottlenecks and minimize garbage collection allocations during gameplay.

What are Unity C# naming conventions?▼

Unity C# conventions use PascalCase for public members and camelCase for private members. Prefix variables with m_, constants with c_, and statics with s_ to keep code readable and consistent across the project.

When should I use ScriptableObjects in Unity?▼

Use ScriptableObjects as data containers for data-driven design, such as item stats, enemy configurations, or game settings. They decouple data from MonoBehaviour logic, making projects modular and easier to maintain.

Should I use GameObject.Find or direct references in Unity?▼

Prefer direct references over GameObject.Find because Find is slow and error-prone at runtime. Use TryGetComponent to safely access components and avoid null reference exceptions.

Why does my Unity game have frame rate drops when spawning objects?▼

Frame drops during spawning usually come from repeated Instantiate and Destroy calls causing garbage collection spikes. Implement object pooling to reuse pre-allocated instances instead of creating new ones at runtime.