23 lines
668 B
Markdown
23 lines
668 B
Markdown
|
|
# UIExtension UXSelectable 选择态增强模块手册
|
||
|
|
|
||
|
|
## 模块概述
|
||
|
|
`UXSelectable` 是 `Selectable` 的增强基类,支持对子图形做额外颜色/精灵过渡,并重写方向查找逻辑。
|
||
|
|
|
||
|
|
## 可调用 API
|
||
|
|
源码:`Packages/com.alicizax.unity.ui.extension/Runtime/UXComponent/Selectable/UXSelectable.cs`
|
||
|
|
|
||
|
|
### 类型:`TransitionData`
|
||
|
|
- `targetGraphic`
|
||
|
|
- `transition`
|
||
|
|
- `colors`
|
||
|
|
- `spriteState`
|
||
|
|
|
||
|
|
### 类型:`UXSelectable`
|
||
|
|
- `FindSelectableOnLeft()`
|
||
|
|
- `FindSelectableOnRight()`
|
||
|
|
- `FindSelectableOnUp()`
|
||
|
|
- `FindSelectableOnDown()`
|
||
|
|
|
||
|
|
## 使用建议
|
||
|
|
- 若控件的多个子节点需要跟随选择态变化,可优先通过 `TransitionData` 配置。
|