unity-inspector

Define Unity Inspector field attributes and validation guardrails for serialized fields.

1|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/muddyrain/valley-mas --skill unity-inspector-muddyrain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-inspector
Source: https://github.com/muddyrain/valley-mas/tree/main/.codex/skills/unity-skills/skills/inspector
Command: npx skills add https://github.com/muddyrain/valley-mas --skill unity-inspector-muddyrain

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity developers often struggle to create clean, predictable, and safe editor UIs for serialized fields, leading to confusing Inspector layouts and hard-to-maintain code.

Core Features & Use Cases

  • Guidance on effective SerializeField usage, Tooltip/Header organization, and minimal yet expressive inspector UX.
  • Recommendations for guardrails like OnValidate, RequireComponent, and CreateAssetMenu to improve editor reliability and designer collaboration.
  • Real-world scenario: a complex MonoBehaviour with many serialized fields is transformed into a well-organized inspector with clear grouping and validation.

Quick Start

Enable the Unity Inspector Design Advisor and apply its recommended SerializeField, Tooltip, Header, and OnValidate improvements to a sample script.

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 Header and Tooltip attributes?

To organize Unity Inspector fields, you apply Header attributes to create visual grouping sections and Tooltip attributes to provide descriptive hover text for serialized fields, ensuring a clear and predictable editor UI for designer collaboration.

How do I use OnValidate in Unity to add editor-time validation for serialized fields?

OnValidate in Unity allows you to implement editor-time validation by checking serialized field values whenever they change in the Inspector, enabling guardrails that prevent invalid component configurations and improve editor reliability.

What is the best way to expose private variables in the Unity Inspector?

The best way to expose private variables in the Unity Inspector is using the SerializeField attribute, which allows specific private fields to be serialized and edited while maintaining proper encapsulation in your MonoBehaviour scripts.

Can I use RequireComponent and CreateAssetMenu to improve Unity editor reliability?

You can use RequireComponent to enforce necessary component dependencies and CreateAssetMenu to streamline scriptable object creation, both acting as guardrails that improve editor reliability and designer collaboration across Unity projects.

Why does my Unity Inspector layout look cluttered and how can I fix it?

A cluttered Unity Inspector layout is fixed by applying proper field attributes like Header for grouping, Tooltip for descriptions, and Range for constraints, transforming complex MonoBehaviours into well-organized inspector panels.

Are Unity Inspector design guidelines suitable for complex MonoBehaviours with many fields?

Unity Inspector design guidelines are highly suitable for complex MonoBehaviours, providing layout guidance and validation rules that transform numerous serialized fields into a well-organized, validated, and safe editor UI.