Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

docs: drop the retired transitionFlags from the button options table

esengine626b58d07cad
diff --git a/docs/astro/src/content/docs/guides/ui-components.mdx b/docs/astro/src/content/docs/guides/ui-components.mdx
index 72ff4997d..5fe87faa0 100644
--- a/docs/astro/src/content/docs/guides/ui-components.mdx
+++ b/docs/astro/src/content/docs/guides/ui-components.mdx
@@ -56,7 +56,7 @@ const btn = createButton({
| `text` | Label — a string or a `TextInit`. Omit for no label. |
| `states` | Map of state name (`normal` / `hover` / `pressed` / `disabled`) → color / sprite / scale override. |
| `background` | Background visual (default: solid white). |
-| `transitionFlags` / `fadeDuration` | Transition type (default `ColorTint`) and lerp time (default `0` = snap). |
+| `fadeDuration` | Tween time for color/scale state changes (default `0` = snap; sprite swaps always snap). |
| `disabled` | Start disabled. |
| `onClick(entity)` | Click callback. |
diff --git a/docs/astro/src/content/docs/zh-cn/guides/ui-components.mdx b/docs/astro/src/content/docs/zh-cn/guides/ui-components.mdx
index 0a36fa354..0cce8f578 100644
--- a/docs/astro/src/content/docs/zh-cn/guides/ui-components.mdx
+++ b/docs/astro/src/content/docs/zh-cn/guides/ui-components.mdx
@@ -51,7 +51,7 @@ const btn = createButton({
| `text` | 标签——字符串或 `TextInit`。省略则无标签。 |
| `states` | 状态名(`normal` / `hover` / `pressed` / `disabled`)→ 颜色 / sprite / 缩放覆盖的映射。 |
| `background` | 背景视觉(默认:纯白)。 |
-| `transitionFlags` / `fadeDuration` | 过渡类型(默认 `ColorTint`)和插值时间(默认 `0` = 立即)。 |
+| `fadeDuration` | 颜色 / 缩放状态切换的补间时长(默认 `0` = 瞬切;sprite 交换总是瞬切)。 |
| `disabled` | 初始禁用。 |
| `onClick(entity)` | 点击回调。 |