unity-inspector

Design Unity Inspector layouts with serialized fields and validation attributes.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/Rayzerrek/dotfiles --skill unity-inspector-rayzerrek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-inspector
Source: https://github.com/Rayzerrek/dotfiles/tree/main/.pi/agent/skills/unity-skills/skills/inspector
Command: npx skills add https://github.com/Rayzerrek/dotfiles --skill unity-inspector-rayzerrek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you design Unity components so the Inspector is easier to understand, safer to configure, and faster to review.

Core Features & Use Cases

  • Field Exposure Strategy: Choose between private serialized fields, public fields, and design-time assets based on intent.
  • Inspector Organization: Recommend headers, tooltips, spacing, ranges, and other attributes that improve readability.
  • Validation and Safety: Suggest lightweight OnValidate checks, required component constraints, and safe default values.
  • Use Case: Useful when a script has too many settings, unclear references, or an awkward custom editor and you want a cleaner authoring experience.

Quick Start

Ask for Unity Inspector guidance for a specific component and describe the fields, validation needs, and editor UX problems you want improved.

Frequently Asked Questions about unity-inspector

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

FAQPage Schema
How do I organize Unity Inspector fields using SerializeField and headers?

Organize Unity Inspector fields by applying SerializeField to private variables and using Header and Tooltip attributes to group and describe settings. This strategy clarifies component configuration and separates authoring controls from runtime logic for maintainable editor display.

What's the best way to add validation to Unity serialized fields in the Inspector?

Add validation to Unity serialized fields by implementing OnValidate in your MonoBehaviour to check values and log warnings. RequireComponent ensures necessary dependencies exist, while Range attributes restrict numeric inputs directly in the Inspector for safer configuration.

When should I use private serialized fields versus public fields in Unity scripts?

Use private serialized fields when exposing data to the Unity Inspector without making it accessible to other scripts, preserving encapsulation. Use public fields when other classes need direct access, choosing the strategy based on intent and component architecture.

Can I improve a custom editor layout for Unity components with too many settings?

Improve custom editor layouts for Unity components by applying inspector-facing attributes like Range, Space, and Tooltip to reduce clutter. For complex scripts, design custom editor display logic to group related fields and guide authoring workflows effectively.

Does this Unity Inspector guidance work without installing additional editor packages?

Yes, this guidance applies built-in Unity attributes like SerializeField, OnValidate, and CreateAssetMenu without requiring additional editor packages. It leverages standard inspector-facing attributes to improve component readability and validation natively.

Unity Inspector is cluttered and unclear, how do I make it easier to configure?

Make the Unity Inspector easier to configure by adding Tooltip and Header attributes to explain fields, Range attributes to constrain inputs, and OnValidate checks to catch invalid values. Organizing serialized fields with clear defaults improves the authoring experience.