What problem does it solve?
Unity scripts can expose confusing or unsafe serialized state in the Inspector, making components hard to configure, error-prone, and difficult for teammates to understand; this Skill advises how to expose fields, apply attributes, and add lightweight validation so Inspectors are clear and safe.
Core Features & Use Cases
- Field exposure strategy: Recommend when to use public vs [SerializeField] private and when to hide or expose fields for designers.
- Recommended attributes: Suggest Header, Tooltip, Space, Range, Min, TextArea, RequireComponent, CreateAssetMenu, and SerializeReference usage scoped to clarity and necessity.
- Validation & UX: Advise OnValidate patterns for safe normalization, grouping fields by responsibility, separating debug-only fields, and constraining tuning values to prevent runtime errors.
- Use Case: Review a MonoBehaviour that has public fields and ambiguous defaults, then provide a concise plan to convert to safe serialized fields with tooltips, headers, and minimal validation.
Quick Start
Use the unity-inspector skill to recommend concrete SerializeField exposures, attributes, and lightweight OnValidate checks for a provided C# MonoBehaviour or ScriptableObject.