What problem does it solve?
Unity scripts often expose fields in the Inspector in ways that are confusing, unsafe, or difficult for other team members to author and tune; this Skill provides practical advice to improve field exposure, attribute usage, validation, and grouping so that Inspectors are self-explanatory and robust.
Core Features & Use Cases
- Field exposure strategy: Recommend when to use private serialized fields, public properties, or hidden debug fields to balance encapsulation and authoring convenience.
- Attribute recommendations: Suggest Header, Tooltip, Space, Range, Min, TextArea, SerializeReference, RequireComponent, and CreateAssetMenu usage to clarify intent and constrain tuning.
- Validation & UX: Propose lightweight OnValidate checks, safe defaults, and grouping patterns to prevent runtime errors and make scripts understandable from the Inspector alone.
- Use case: Improve a MonoBehaviour or ScriptableObject so designers can tune gameplay values safely and spot missing references without reading source code.
Quick Start
Improve the Inspector for the provided Unity C# script by recommending which fields should be exposed, what attributes to add, and any OnValidate rules to ensure safe defaults and clearer authoring.