unity-inspector

Design Unity Inspector field layouts with serialization attributes and validation rules.

6|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/dyCuong03/unity-agent-team --skill unity-inspector-dycuong03
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-inspector
Source: https://github.com/dyCuong03/unity-agent-team/tree/main/.claude/skills/unity-skills/skills/inspector
Command: npx skills add https://github.com/dyCuong03/unity-agent-team --skill unity-inspector-dycuong03

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps you avoid confusing or fragile Unity Inspector setups by recommending better attribute usage, clearer field organization, and safer editing defaults.

Core Features & Use Cases

  • Inspector UX improvements: reorganize fields with [Header], [Space], and [Tooltip] so authors can understand intent quickly.
  • Safer serialization and authoring: prefer [SerializeField] private, use [Range]/[Min] to constrain tuning values, and keep debug-only data separated from production authoring fields.
  • Validation and dependency guidance: use OnValidate for lightweight normalization, OnValidate-friendly defaults, and [RequireComponent] for mandatory sibling components.

Quick Start

Ask the AI to redesign your MonoBehaviour’s Inspector fields using best-practice attributes, default exposure rules, and lightweight OnValidate validation for safer authoring.

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 to make component authoring clearer?

Organize Unity Inspector fields by applying attributes like [Header], [Space], and [Tooltip] to group related data and expose authoring intent. This reorganization helps developers understand component configuration quickly and reduces editing errors.

What is the best way to constrain tuning values in the Unity Inspector?

Constrain tuning values in the Unity Inspector by applying [Range] and [Min] attributes to serialized fields. This restricts editable values to safe limits, preventing designers from entering extreme numbers that break component behavior.

Should I use SerializeField private or public for Unity Inspector exposure?

Prefer [SerializeField] private over public for Unity Inspector exposure to maintain encapsulation while allowing editor serialization. This approach keeps your component architecture safer from external scripts while still enabling designer authoring.

How does OnValidate work for lightweight validation in Unity components?

OnValidate works in Unity by automatically executing whenever an Inspector field changes, allowing lightweight validation and data normalization. You can use it to enforce dependencies, clamp values, or reset invalid configurations during editor time.

When do I need RequireComponent for Unity Inspector authoring?

You need [RequireComponent] when your MonoBehaviour depends on sibling components to function correctly. Adding this attribute prevents broken Inspector setups by automatically ensuring mandatory dependencies are present and cannot be accidentally removed.