AGENT SKILL
15-ui-component-menu
暂无简介
适用职业设计师
- License 许可
- MIT
- 最近更新
- 2026-04-12
- Stars
- ★ 0
- Forks
- 0
03 SKILL.md 正文
15-ui-component-menu
Status: ACTIVE AppliesTo: v11
UIComponentMenuBar / UIComponentMenuButton 수평 단일 선택 메뉴 skill이다.
상세 동작과 구조는 docs/ui-component-menu-design.md를 기준으로 한다.
Core Rules
UIComponentMenuBar가 selection의 source of truth를 가진다.UIComponentMenuButton는 same-GOButton.onClick을 받아 parent bar의Select(int index)를 호출한다.UIComponentMenuBar는RequireComponent(typeof(HorizontalLayoutGroup))를 가진다.UIComponentMenuButton는RequireComponent(typeof(Button))를 가진다.UIComponentMenuButton는RequireComponent(typeof(UITransitionPlayer))를 가진다.UIComponentMenuButton는RequireComponent(typeof(LayoutElement))를 가진다.UIComponentMenuButton.index는 serializedintfield다.UIComponentMenuButton는 serializedUI_TRANSITION_PRESET_ID로 select/deselect transition을 가진다.UIComponentMenuButton는protected virtual void onSelect()/onDeselect()hook으로 subclass visual/state 처리를 확장한다.- menu 폭/높이 transition은
LayoutElement.preferredWidth/preferredHeight채널을 사용한다. - menu button은 bar의 direct child로 사용한다.
- duplicate
index는 invalid다. - 외부 구독 지점은
UIComponentMenuBar.OnSelect다.
Reference
- Parent: 00-overview
- Base: 10-ui-component-base
- Button: 11-ui-component-button
- Design:
/Users/maoshy/Documents/Projects/devian/docs/ui-component-menu-design.md