cocos_lint_ui
Check UI components in Cocos Creator scenes for accessibility and usability issues like small touch targets, text clipping, or rendering problems to improve user experience.
Instructions
Non-structural UI quality check (complement to cocos_validate_scene).
Flags issues that build + load cleanly but produce bad UX:
Button touch target below 44×44 (iOS HIG / Material 48dp min)
Label overflow=NONE + wrap off in a box that likely clips the text
UI component on a node with layer != UI_2D (UICamera won't render it)
Returns {ok, scene_path, warnings:[{rule, node_id, node_name, message}]}. All warnings are non-fatal; the caller decides what to fix.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes |