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.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
feat: add TabView and Tooltip UI controls
yhh1052044b0b89
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3093e4821..186d67cab 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -16,6 +16,7 @@ published separately; it ships inside the editor.### Added+- **UI tabs and tooltips.** TabView connects ordinary Toggles to content pages, with ordered entity bindings, keyboard navigation and an editor preview that leaves the saved initial page untouched. Tooltip adds delayed hover, keyboard-focus and touch-long-press hints, screen-edge placement and project theme or prefab styling. Both are available in the UI Widgets palette. TreeView and ColorPicker remain later RM-107 work.- **3D swing/twist and six-axis joints.** SwingTwistJoint3D adds an elliptical swing cone and twist limits; SixDOFJoint3D locks, limits or frees each translation/rotation axis. Both support live velocity motors. The existing Details controls expose degree-based authoring, and selected viewport gizmos show limits. The 3D Physics example includes a shoulder and carriage with reversible motors. Partial property searches keep only matching generic fields. Headless solver checks do not replace target-device acceptance.## [0.92.0] - 2026-10-18diff --git a/desktop b/desktopindex 165cae6eb..1191b878e 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit 165cae6eb4eb4dbfaedd359bba504011f4b7b9e7+Subproject commit 1191b878efa169136559e1cf7a83ba037cf6dd19diff --git a/docs/astro/src/content/docs/ui/widgets.mdx b/docs/astro/src/content/docs/ui/widgets.mdxindex 41c9a018b..695bbc5c4 100644--- a/docs/astro/src/content/docs/ui/widgets.mdx+++ b/docs/astro/src/content/docs/ui/widgets.mdx@@ -503,3 +503,63 @@ control's removal clearing the others. Use an explicit stable owner withThe **Mobile Controls** example authors both controls in its scene and combinesthem with keyboard bindings, optional tilt, and hit vibration.++## TabView++Drop **TabView** from UI Widgets, then edit its ordinary Toggle children and content+pages. The Inspector pairs each tab with a page, keeps their order when moving a+binding, and exposes the initial page, all-off policy, keyboard direction, looping+and selection-on-focus. Editor Preview changes only the temporary projection;+saving preserves the initial page. Bind distinct descendants of the view. A nested+ToggleGroup owns its own toggles.++At runtime `UITabView.selectedIndex` is the current selection (`-1` means none when+`allowSwitchOff` is enabled). It uses `UIToggleGroup`, shows one content subtree via+`UINode.display`, and emits `change` with `{ index, page }`. Arrows follow the authored+direction, Home/End reach the first/last eligible tab, and disabled/hidden tabs are+skipped. With select-on-focus off, Enter/Space activates the focused tab.++```ts+import { createTabView, px } from 'esengine';+const settings = createTabView({ world, events, parent: canvas,+ node: { width: px(420), height: px(240) },+ labels: ['Graphics', 'Audio', 'Controls'],+});+// Put ordinary UI entities under settings.pages[1] to author the Audio panel.+settings.select(1);+```++The `tabs` and `pages` entity lists are remapped when a scene/prefab is instantiated+or copied. `labels` provides captions for the tab's direct Text child. Deleting a+selected target chooses another valid binding; removing a binding restores that+page's original display value.++## Tooltip++Attach `UITooltip` to a control, or drop the Tooltip example target from UI Widgets.+Pointer triggers need an `Interactable` target; keyboard hints use `Focusable`.+The popup is engine UI and never takes focus or blocks pointer input. It disappears+on leave, release, cancellation, target removal or a hidden page. Moving a touch+more than eight screen pixels cancels its long press without consuming the drag.++```ts+import { attachTooltip } from 'esengine';+attachTooltip(world, musicVolume, {+ content: 'Adjust background music volume.',+ hoverDelay: 0.5, longPressDelay: 0.6,+ side: 0, gap: 8, maxWidth: 240, avoidEdges: true,+});+```++`side` is Bottom (0), Top (1), Left (2) or Right (3). Placement prefers that side,+tries the opposite, then clamps inside the screen safe area. `maxWidth` is text+width in layout pixels. The empty `stylePrefab` uses the project's live UI theme;+a custom `.esprefab` needs a UINode root and a Text child. Its colors and font style+are retained while the behavior owns popup placement, text and padding. Custom+styles use the normal prefab asset loader and require `PrefabsPlugin`. A pending+load cannot reopen a hint after its target has disappeared. Editor Preview bypasses+the delay without changing the saved trigger settings.++Open `assets/scenes/tabs-tooltips.esscene` in the **UI Controls** example for authored+tabs and a volume slider with a tooltip. TreeView and ColorPicker are separate,+later additions.diff --git a/docs/astro/src/content/docs/zh-cn/ui/widgets.mdx b/docs/astro/src/content/docs/zh-cn/ui/widgets.mdxindex 97566f781..b8e58dfe7 100644--- a/docs/astro/src/content/docs/zh-cn/ui/widgets.mdx+++ b/docs/astro/src/content/docs/zh-cn/ui/widgets.mdx@@ -450,3 +450,55 @@ const actions = defineInputMap({ Move: Axis2D(Virtual('move')) });**Mobile Controls** 示例在场景中放置这两个控件,同时支持键盘、可选倾斜操控和命中震动。++## TabView++从 UI Widgets 放入 **TabView** 后,可继续用普通 UI 工具编辑 Toggle 页签和内容页。+Inspector 将每个页签与内容页配对,支持绑定排序、初始页面、允许全部关闭、键盘方向、+循环导航和聚焦自动选中。「编辑器预览」只改变临时显示,不会修改保存的初始页面。+绑定对象必须是当前视图内不重复的子实体;嵌套 ToggleGroup 的页签由其自身管理。++运行时 `UITabView.selectedIndex` 表示当前选择;允许全部关闭时 `-1` 表示无选择。+它复用 `UIToggleGroup`,通过 `UINode.display` 控制整个内容子树,并发送+`change` 事件 `{ index, page }`。方向键遵循横向/纵向设置,Home/End 到达首尾可用页签,+自动跳过禁用或隐藏的页签。关闭聚焦自动选中后,用 Enter/Space 激活聚焦的页签。++```ts+import { createTabView, px } from 'esengine';+const settings = createTabView({ world, events, parent: canvas,+ node: { width: px(420), height: px(240) },+ labels: ['画面', '声音', '操作'],+});+// 将普通 UI 实体放到 settings.pages[1] 下即可编辑声音面板。+settings.select(1);+```++场景、Prefab 实例化和复制会重映射 `tabs` / `pages` 实体数组。+`labels` 提供页签直接 Text 子节点的文字。删除当前选择的目标后会选择其他有效绑定;+移除绑定会恢复该内容页原本的 display。++## Tooltip++为现有控件添加 `UITooltip`,或从 UI Widgets 放入 Tooltip 示例目标。+鼠标和触控触发需要目标具有 `Interactable`,键盘提示需要 `Focusable`。+浮层使用引擎内 UI,不获取焦点、不拦截输入;离开目标、松手、取消触控、删除目标+或隐藏页面时会关闭。触控移动超过 8 个屏幕像素会取消长按,不影响原本拖动操作。++```ts+import { attachTooltip } from 'esengine';+attachTooltip(world, musicVolume, {+ content: '调整背景音乐音量。',+ hoverDelay: 0.5, longPressDelay: 0.6,+ side: 0, gap: 8, maxWidth: 240, avoidEdges: true,+});+```++`side` 的 0/1/2/3 对应下/上/左/右。定位会先尝试优先方向和相反方向,再限制在屏幕安全区内。+`maxWidth` 是布局像素单位的最大文本宽度。`stylePrefab` 留空时使用项目的实时 UI 主题;+自定义 `.esprefab` 需要 UINode 根节点和 Text 子节点,保留其中的颜色和字体样式,+浮层行为负责位置、文字和内边距。样式通过普通 Prefab 资源加载流程加载,需要 `PrefabsPlugin`。+目标消失后,即使异步加载刚好完成也不会重新弹出提示。「编辑器预览」跳过等待时间,+不会改变保存的延迟和触发设置。++可在 **UI Controls** 示例中打开 `assets/scenes/tabs-tooltips.esscene` 查看场景内直接编辑的+页签和带提示的音量滑条。TreeView 和 ColorPicker 将在后续阶段补充。diff --git a/docs/astro/src/data/apiStability.generated.json b/docs/astro/src/data/apiStability.generated.jsonindex a4e2235f2..81dc26439 100644--- a/docs/astro/src/data/apiStability.generated.json+++ b/docs/astro/src/data/apiStability.generated.json@@ -2,11 +2,11 @@"note": "Generated by tools/api-stability.mjs from sdk/etc/*.api.md — do not edit.","counts": {"public": 115,- "beta": 130,- "experimental": 2234,+ "beta": 135,+ "experimental": 2242,"deprecated": 3},- "total": 2479,+ "total": 2492,"subsystems": [{"id": "mobile-controls",@@ -2926,6 +2926,30 @@"minigame"]},+ {+ "name": "UITabView",+ "kind": "const",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },+ {+ "name": "UITooltip",+ "kind": "const",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },{"name": "UIVisual","kind": "const",@@ -2998,6 +3022,18 @@"minigame"]},+ {+ "name": "attachTooltip",+ "kind": "function",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },{"name": "cameraCommitChanged","kind": "function",@@ -3070,6 +3106,30 @@"minigame"]},+ {+ "name": "createTabView",+ "kind": "function",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },+ {+ "name": "createTooltip",+ "kind": "function",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },{"name": "disconnect","kind": "function",diff --git a/docs/astro/src/data/componentDocs.ts b/docs/astro/src/data/componentDocs.tsindex 94667f4f2..fd76c49dc 100644--- a/docs/astro/src/data/componentDocs.ts+++ b/docs/astro/src/data/componentDocs.ts@@ -113,6 +113,8 @@ export const COMPONENT_DOCS: Record<string, ComponentDoc> = {UISlider: { category: 'ui', summary: 'A draggable value along a range, with an optional step.', doc: 'ui/widgets', anchor: 'slider', anchorZh: 'slider-滑块' },UIToggle: { category: 'ui', summary: 'A two-state widget — checkbox or switch — and its group membership.', doc: 'ui/widgets', anchor: 'toggle', anchorZh: 'toggle-开关' },UIToggleGroup: { category: 'ui', summary: 'Makes the toggles beneath it exclusive — a radio group or tab bar. Put it on their common ancestor.', doc: 'ui/widgets', anchor: 'toggle', anchorZh: 'toggle-开关' },+ UITabView: { category: 'ui', summary: 'Connects an ordered ToggleGroup to content pages, with keyboard navigation.', doc: 'ui/widgets', anchor: 'tabview', anchorZh: 'tabview' },+ UITooltip: { category: 'ui', summary: 'A themed engine tooltip with hover, focus, long press and screen-edge placement.', doc: 'ui/widgets', anchor: 'tooltip', anchorZh: 'tooltip' },// ── Physics ────────────────────────────────────────────────────────────────RigidBody2D: { category: 'physics', summary: 'Puts the entity under the flat solver: static, kinematic or dynamic, with damping, gravity scale and sleep.', doc: 'gameplay/physics', anchor: 'rigidbody2d', anchorZh: 'rigidbody2d' },diff --git a/docs/astro/src/data/components.generated.json b/docs/astro/src/data/components.generated.jsonindex 31d879959..940926d30 100644--- a/docs/astro/src/data/components.generated.json+++ b/docs/astro/src/data/components.generated.json@@ -5827,6 +5827,56 @@"handle"]},+ {+ "name": "UITabView",+ "source": "ts",+ "fields": [+ {+ "key": "selectedIndex",+ "type": "number",+ "default": "0",+ "range": "≥ -1, step 1"+ },+ {+ "key": "tabs",+ "type": "Entity",+ "default": ""+ },+ {+ "key": "pages",+ "type": "Entity",+ "default": ""+ },+ {+ "key": "labels",+ "type": "array",+ "default": "empty"+ },+ {+ "key": "allowSwitchOff",+ "type": "boolean",+ "default": "false"+ },+ {+ "key": "vertical",+ "type": "boolean",+ "default": "false"+ },+ {+ "key": "loopNavigation",+ "type": "boolean",+ "default": "true"+ },+ {+ "key": "selectOnFocus",+ "type": "boolean",+ "default": "true"+ }+ ],+ "animatable": [+ "selectedIndex"+ ]+ },{"name": "UIToggle","source": "ts",@@ -5858,6 +5908,84 @@}]},+ {+ "name": "UITooltip",+ "source": "ts",+ "fields": [+ {+ "key": "content",+ "type": "string",+ "default": "\"Tooltip\""+ },+ {+ "key": "stylePrefab",+ "type": "Asset<prefab>",+ "default": "none"+ },+ {+ "key": "hover",+ "type": "boolean",+ "default": "true"+ },+ {+ "key": "focus",+ "type": "boolean",+ "default": "true"+ },+ {+ "key": "longPress",+ "type": "boolean",+ "default": "true"+ },+ {+ "key": "hoverDelay",+ "type": "number",+ "default": "0.5",+ "range": "≥ 0"+ },+ {+ "key": "longPressDelay",+ "type": "number",+ "default": "0.6",+ "range": "≥ 0"+ },+ {+ "key": "side",+ "type": "enum",+ "default": "Bottom",+ "values": [+ "Bottom",+ "Top",+ "Left",+ "Right"+ ]+ },+ {+ "key": "gap",+ "type": "number",+ "default": "8",+ "range": "≥ 0"+ },+ {+ "key": "avoidEdges",+ "type": "boolean",+ "default": "true"+ },+ {+ "key": "maxWidth",+ "type": "number",+ "default": "240",+ "range": "≥ 24"+ }+ ],+ "animatable": [+ "hoverDelay",+ "longPressDelay",+ "side",+ "gap",+ "maxWidth"+ ]+ },{"name": "UIVisual","source": "cpp",diff --git a/examples/ui-controls/assets/scenes/tabs-tooltips.esscene b/examples/ui-controls/assets/scenes/tabs-tooltips.esscenenew file mode 100644index 000000000..8894f7db2--- /dev/null+++ b/examples/ui-controls/assets/scenes/tabs-tooltips.esscene@@ -0,0 +1,3407 @@+{+ "version": 4,+ "name": "Tabs and Tooltips",+ "entities": [+ {+ "id": 0,+ "name": "Camera",+ "parent": null,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 10+ }+ }+ },+ {+ "type": "Camera",+ "data": {+ "projectionType": 1,+ "orthoSize": 300,+ "isActive": true,+ "priority": 0+ }+ }+ ],+ "visible": true+ },+ {+ "id": 1,+ "name": "Canvas",+ "parent": null,+ "children": [+ 10,+ 11,+ 12,+ 34+ ],+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "Canvas",+ "data": {+ "designResolution": {+ "x": 800,+ "y": 600+ },+ "scaleMode": 2+ }+ },+ {+ "type": "UINode",+ "data": {}+ }+ ],+ "visible": true+ },+ {+ "id": 10,+ "name": "Title",+ "parent": 1,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 8,+ "unit": 0+ },+ "insetRight": {+ "value": 8,+ "unit": 0+ },+ "insetTop": {+ "value": 30,+ "unit": 0+ },+ "height": {+ "value": 50,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "TabView / Tooltip",+ "fontSize": 26,+ "align": 0,+ "wordWrap": true,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ]+ },+ {+ "id": 11,+ "name": "Help",+ "parent": 1,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 8,+ "unit": 0+ },+ "insetRight": {+ "value": 8,+ "unit": 0+ },+ "insetTop": {+ "value": 82,+ "unit": 0+ },+ "height": {+ "value": 48,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Click tabs or use Tab, arrows, Home and End. Hover or long-press Music Volume on Audio.",+ "fontSize": 14,+ "align": 0,+ "wordWrap": true,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ]+ },+ {+ "name": "SettingsTabs",+ "parent": 1,+ "children": [+ 13,+ 16,+ 17,+ 20,+ 21,+ 24+ ],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 520,+ "unit": 0+ },+ "height": {+ "value": 340,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 140,+ "unit": 0+ },+ "insetTop": {+ "value": 155,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.16,+ "g": 0.16,+ "b": 0.18,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "surface"+ }+ },+ {+ "type": "UIToggleGroup",+ "data": {+ "allowSwitchOff": false+ }+ },+ {+ "type": "UITabView",+ "data": {+ "selectedIndex": 0,+ "tabs": [+ 13,+ 17,+ 21+ ],+ "pages": [+ 16,+ 20,+ 24+ ],+ "labels": [+ "Graphics",+ "Audio",+ "Controls"+ ],+ "allowSwitchOff": false,+ "vertical": false,+ "loopNavigation": true,+ "selectOnFocus": true+ }+ }+ ],+ "visible": true,+ "id": 12+ },+ {+ "name": "GraphicsTab",+ "parent": 12,+ "children": [+ 14,+ 15+ ],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 33.333333333333336,+ "unit": 1+ },+ "height": {+ "value": 36,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 1+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UIController",+ "data": {+ "controllers": [+ {+ "name": "$interaction",+ "pages": [+ "normal",+ "hover",+ "pressed",+ "disabled",+ "focused"+ ],+ "current": "normal"+ }+ ]+ }+ },+ {+ "type": "UIGear",+ "data": {+ "bindings": [+ {+ "controller": "$interaction",+ "component": "UIVisual",+ "property": "color",+ "pages": {+ "normal": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "hover": {+ "r": 0.28,+ "g": 0.28,+ "b": 0.32,+ "a": 1+ },+ "pressed": {+ "r": 0.18,+ "g": 0.18,+ "b": 0.22,+ "a": 1+ },+ "disabled": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 0.5+ },+ "focused": {+ "r": 0.3,+ "g": 0.34,+ "b": 0.44,+ "a": 1+ }+ }+ }+ ]+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "states": {+ "normal": "control",+ "hover": "controlHover",+ "pressed": "controlActive",+ "disabled": "control",+ "focused": "controlFocus"+ }+ }+ },+ {+ "type": "UIToggle",+ "data": {+ "isOn": true,+ "check": 14+ }+ }+ ],+ "visible": true,+ "id": 13+ },+ {+ "name": "Node",+ "parent": 13,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 2,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 2+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.25,+ "g": 0.56,+ "b": 0.96,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "primary"+ }+ }+ ],+ "visible": true,+ "id": 14+ },+ {+ "name": "Label",+ "parent": 13,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Graphics",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 14,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false,+ "overflow": 0,+ "lineHeight": 1.2,+ "bold": false,+ "italic": false,+ "strokeColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "strokeWidth": 0,+ "shadowColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "shadowBlur": 0,+ "shadowOffsetX": 0,+ "shadowOffsetY": 0,+ "richText": false,+ "renderMode": 0,+ "layer": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true,+ "id": 15+ },+ {+ "name": "GraphicsPage",+ "parent": 12,+ "children": [+ 25,+ 26+ ],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 12,+ "unit": 0+ },+ "insetTop": {+ "value": 48,+ "unit": 0+ },+ "insetRight": {+ "value": 12,+ "unit": 0+ },+ "insetBottom": {+ "value": 12,+ "unit": 0+ }+ }+ }+ ],+ "visible": true,+ "id": 16+ },+ {+ "name": "AudioTab",+ "parent": 12,+ "children": [+ 18,+ 19+ ],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 33.333333333333336,+ "unit": 1+ },+ "height": {+ "value": 36,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 33.333333333333336,+ "unit": 1+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UIController",+ "data": {+ "controllers": [+ {+ "name": "$interaction",+ "pages": [+ "normal",+ "hover",+ "pressed",+ "disabled",+ "focused"+ ],+ "current": "normal"+ }+ ]+ }+ },+ {+ "type": "UIGear",+ "data": {+ "bindings": [+ {+ "controller": "$interaction",+ "component": "UIVisual",+ "property": "color",+ "pages": {+ "normal": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "hover": {+ "r": 0.28,+ "g": 0.28,+ "b": 0.32,+ "a": 1+ },+ "pressed": {+ "r": 0.18,+ "g": 0.18,+ "b": 0.22,+ "a": 1+ },+ "disabled": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 0.5+ },+ "focused": {+ "r": 0.3,+ "g": 0.34,+ "b": 0.44,+ "a": 1+ }+ }+ }+ ]+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "states": {+ "normal": "control",+ "hover": "controlHover",+ "pressed": "controlActive",+ "disabled": "control",+ "focused": "controlFocus"+ }+ }+ },+ {+ "type": "UIToggle",+ "data": {+ "isOn": false,+ "check": 18+ }+ }+ ],+ "visible": true,+ "id": 17+ },+ {+ "name": "Node",+ "parent": 17,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 2,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 2+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.25,+ "g": 0.56,+ "b": 0.96,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": false+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "primary"+ }+ }+ ],+ "visible": true,+ "id": 18+ },+ {+ "name": "Label",+ "parent": 17,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Audio",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 14,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false,+ "overflow": 0,+ "lineHeight": 1.2,+ "bold": false,+ "italic": false,+ "strokeColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "strokeWidth": 0,+ "shadowColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "shadowBlur": 0,+ "shadowOffsetX": 0,+ "shadowOffsetY": 0,+ "richText": false,+ "renderMode": 0,+ "layer": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true,+ "id": 19+ },+ {+ "name": "AudioPage",+ "parent": 12,+ "children": [+ 27,+ 28,+ 29+ ],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 1,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 12,+ "unit": 0+ },+ "insetTop": {+ "value": 48,+ "unit": 0+ },+ "insetRight": {+ "value": 12,+ "unit": 0+ },+ "insetBottom": {+ "value": 12,+ "unit": 0+ }+ }+ }+ ],+ "visible": true,+ "id": 20+ },+ {+ "name": "ControlsTab",+ "parent": 12,+ "children": [+ 22,+ 23+ ],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 33.333333333333336,+ "unit": 1+ },+ "height": {+ "value": 36,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 66.66666666666667,+ "unit": 1+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UIController",+ "data": {+ "controllers": [+ {+ "name": "$interaction",+ "pages": [+ "normal",+ "hover",+ "pressed",+ "disabled",+ "focused"+ ],+ "current": "normal"+ }+ ]+ }+ },+ {+ "type": "UIGear",+ "data": {+ "bindings": [+ {+ "controller": "$interaction",+ "component": "UIVisual",+ "property": "color",+ "pages": {+ "normal": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "hover": {+ "r": 0.28,+ "g": 0.28,+ "b": 0.32,+ "a": 1+ },+ "pressed": {+ "r": 0.18,+ "g": 0.18,+ "b": 0.22,+ "a": 1+ },+ "disabled": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 0.5+ },+ "focused": {+ "r": 0.3,+ "g": 0.34,+ "b": 0.44,+ "a": 1+ }+ }+ }+ ]+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "states": {+ "normal": "control",+ "hover": "controlHover",+ "pressed": "controlActive",+ "disabled": "control",+ "focused": "controlFocus"+ }+ }+ },+ {+ "type": "UIToggle",+ "data": {+ "isOn": false,+ "check": 22+ }+ }+ ],+ "visible": true,+ "id": 21+ },+ {+ "name": "Node",+ "parent": 21,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 2,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 2+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.25,+ "g": 0.56,+ "b": 0.96,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": false+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "primary"+ }+ }+ ],+ "visible": true,+ "id": 22+ },+ {+ "name": "Label",+ "parent": 21,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Controls",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 14,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false,+ "overflow": 0,+ "lineHeight": 1.2,+ "bold": false,+ "italic": false,+ "strokeColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "strokeWidth": 0,+ "shadowColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "shadowBlur": 0,+ "shadowOffsetX": 0,+ "shadowOffsetY": 0,+ "richText": false,+ "renderMode": 0,+ "layer": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true,+ "id": 23+ },+ {+ "name": "ControlsPage",+ "parent": 12,+ "children": [+ 32,+ 33+ ],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 1,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 12,+ "unit": 0+ },+ "insetTop": {+ "value": 48,+ "unit": 0+ },+ "insetRight": {+ "value": 12,+ "unit": 0+ },+ "insetBottom": {+ "value": 12,+ "unit": 0+ }+ }+ }+ ],+ "visible": true,+ "id": 24+ },+ {+ "id": 25,+ "name": "GraphicsHeading",+ "parent": 16,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 8,+ "unit": 0+ },+ "insetRight": {+ "value": 8,+ "unit": 0+ },+ "insetTop": {+ "value": 8,+ "unit": 0+ },+ "height": {+ "value": 40,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Graphics Settings",+ "fontSize": 20,+ "align": 0,+ "wordWrap": true,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ]+ },+ {+ "id": 26,+ "name": "GraphicsInfo",+ "parent": 16,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 8,+ "unit": 0+ },+ "insetRight": {+ "value": 8,+ "unit": 0+ },+ "insetTop": {+ "value": 65,+ "unit": 0+ },+ "height": {+ "value": 60,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Configure resolution, rendering quality and display options here.",+ "fontSize": 16,+ "align": 0,+ "wordWrap": true,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ]+ },+ {+ "id": 27,+ "name": "AudioHeading",+ "parent": 20,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 8,+ "unit": 0+ },+ "insetRight": {+ "value": 8,+ "unit": 0+ },+ "insetTop": {+ "value": 8,+ "unit": 0+ },+ "height": {+ "value": 40,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Audio Settings",+ "fontSize": 20,+ "align": 0,+ "wordWrap": true,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ]+ },+ {+ "id": 28,+ "name": "VolumeLabel",+ "parent": 20,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 8,+ "unit": 0+ },+ "insetRight": {+ "value": 8,+ "unit": 0+ },+ "insetTop": {+ "value": 65,+ "unit": 0+ },+ "height": {+ "value": 40,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Music Volume",+ "fontSize": 16,+ "align": 0,+ "wordWrap": true,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ]+ },+ {+ "name": "MusicVolume",+ "parent": 20,+ "children": [+ 30,+ 31+ ],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 430,+ "unit": 0+ },+ "height": {+ "value": 18,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 16,+ "unit": 0+ },+ "insetTop": {+ "value": 120,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.15,+ "g": 0.15,+ "b": 0.15,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "track"+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UISlider",+ "data": {+ "min": 0,+ "max": 100,+ "step": 1,+ "value": 50,+ "fill": 30,+ "handle": 31+ }+ },+ {+ "type": "UITooltip",+ "data": {+ "content": "Adjust the background music volume. Sound effects use their own setting.",+ "hover": true,+ "focus": true,+ "longPress": true,+ "hoverDelay": 0.5,+ "longPressDelay": 0.6,+ "side": 0,+ "gap": 8,+ "avoidEdges": true,+ "maxWidth": 240,+ "stylePrefab": ""+ }+ }+ ],+ "visible": true,+ "id": 29+ },+ {+ "name": "Node",+ "parent": 29,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 5,+ "texture": 0,+ "color": {+ "r": 0.25,+ "g": 0.56,+ "b": 0.96,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 0.5,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "primary"+ }+ }+ ],+ "visible": true,+ "id": 30+ },+ {+ "name": "Node",+ "parent": 29,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 14,+ "unit": 0+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": -7,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 50,+ "unit": 1+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "onPrimary"+ }+ }+ ],+ "visible": true,+ "id": 31+ },+ {+ "id": 32,+ "name": "ControlsHeading",+ "parent": 24,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 8,+ "unit": 0+ },+ "insetRight": {+ "value": 8,+ "unit": 0+ },+ "insetTop": {+ "value": 8,+ "unit": 0+ },+ "height": {+ "value": 40,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Controls Settings",+ "fontSize": 20,+ "align": 0,+ "wordWrap": true,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ]+ },+ {+ "id": 33,+ "name": "ControlsInfo",+ "parent": 24,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 8,+ "unit": 0+ },+ "insetRight": {+ "value": 8,+ "unit": 0+ },+ "insetTop": {+ "value": 65,+ "unit": 0+ },+ "height": {+ "value": 60,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Rebind keyboard, pointer and gamepad actions with InputMap.",+ "fontSize": 16,+ "align": 0,+ "wordWrap": true,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ]+ },+ {+ "id": 34,+ "name": "Footer",+ "parent": 1,+ "children": [],+ "visible": true,+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 8,+ "unit": 0+ },+ "insetRight": {+ "value": 8,+ "unit": 0+ },+ "insetTop": {+ "value": 525,+ "unit": 0+ },+ "height": {+ "value": 50,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Tooltip stays out of the input path and closes when its page is hidden.",+ "fontSize": 14,+ "align": 0,+ "wordWrap": true,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ]+ }+ ]+}diff --git a/examples/ui-controls/assets/scenes/tabs-tooltips.esscene.meta b/examples/ui-controls/assets/scenes/tabs-tooltips.esscene.metanew file mode 100644index 000000000..aedd718ed--- /dev/null+++ b/examples/ui-controls/assets/scenes/tabs-tooltips.esscene.meta@@ -0,0 +1,8 @@+{+ "uuid": "63270be5-b8a1-48e7-8963-7e68bc78b4bf",+ "version": "2.0",+ "type": "scene",+ "importer": {+ "autoMigrate": true+ }+}diff --git a/sdk/etc/index.api.md b/sdk/etc/index.api.mdindex 2e50102c5..f659a5a8f 100644--- a/sdk/etc/index.api.md+++ b/sdk/etc/index.api.md@@ -1,7 +1,7 @@# API surface — esengine/index<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->-Symbols: 115 public · 118 beta · 1610 experimental · 3 deprecated+Symbols: 115 public · 123 beta · 1618 experimental · 3 deprecated## ABI_LAYOUT_HASH — const @experimental```@@ -864,7 +864,7 @@ type: AssetFieldType## AssetFieldType — type @public```-'texture' | 'material' | 'font' | 'anim-clip' | 'audio' | 'sound-event' | 'video' | 'tilemap' | 'tileset' | 'timeline' | 'statemachine' | 'behaviortree' | 'scriptgraph' | 'animatorcontroller' | 'avatar' | 'mesh' | 'environment' | 'probeVolume'+'texture' | 'material' | 'font' | 'anim-clip' | 'audio' | 'sound-event' | 'video' | 'tilemap' | 'tileset' | 'timeline' | 'statemachine' | 'behaviortree' | 'scriptgraph' | 'animatorcontroller' | 'avatar' | 'mesh' | 'environment' | 'probeVolume' | 'prefab'```## AssetGroupDef — interface @experimental@@ -1390,7 +1390,7 @@ Record<string, PrefabData>## BUILTIN_UI_WIDGET_NAMES — const @experimental```-readonly ["VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]+readonly ["TabView", "Tooltip", "VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]```## BUNDLE_MODES — const @experimental@@ -8881,6 +8881,27 @@ readonly (keyof ThemeColors)[]Record<string, string | number>```+## TabViewHandle — interface @experimental+```+dispose: () => void+entity: number+pages: readonly number[]+select: (index: number) => void+tabs: readonly number[]+```++## TabViewOptions — interface @experimental+```+events: UIEventQueue+labels: readonly string[]+node: UINodeInit | undefined+onChange: ((index: number, page: Entity) => void) | undefined+parent: number | undefined+selectedIndex: number | undefined+tabHeight: number | undefined+world: World+```+## Takeover — interface @experimental```active: boolean@@ -9347,6 +9368,21 @@ tabIndex: number | undefinedworld: World```+## TooltipHandle — interface @experimental+```+dispose: () => void+entity: number+```++## TooltipOptions — interface @experimental+```+content: string | undefined+node: UINodeInit | undefined+parent: number | undefined+settings: Partial<UITooltipData> | undefined+world: World+```+## TouchPoint — interface @beta```id: number@@ -9840,6 +9876,23 @@ step: numbervalue: number```+## UITabView — const @beta+```+ComponentDef<UITabViewData>+```++## UITabViewData — interface @experimental+```+allowSwitchOff: boolean+labels: string[]+loopNavigation: boolean+pages: number[]+selectOnFocus: boolean+selectedIndex: number+tabs: number[]+vertical: boolean+```+## UIToggle — const @experimental```ComponentDef<UIToggleData>@@ -9861,6 +9914,26 @@ ComponentDef<UIToggleGroupData>allowSwitchOff: boolean```+## UITooltip — const @beta+```+ComponentDef<UITooltipData>+```++## UITooltipData — interface @experimental+```+avoidEdges: boolean+content: string+focus: boolean+gap: number+hover: boolean+hoverDelay: number+longPress: boolean+longPressDelay: number+maxWidth: number+side: number+stylePrefab: string+```+## UIVisibilityPlugin — class @experimental```build: (app: App) => void@@ -10787,6 +10860,11 @@ AnimationPlugin(source: PrefabData, overrides: readonly PrefabOverride[]): PrefabData```+## applyTabViewSelection — function @experimental+```+(world: World, root: Entity, index: number): void+```+## applyThemeToWorld — function @experimental```(world: World): void@@ -10812,6 +10890,11 @@ AssetPlugin(atlas: CookedAtlasInfo, pagePath: string): Pick<CatalogEntry, "atlas" | "frame" | "uv">```+## attachTooltip — function @beta+```+(world: World, target: Entity, options?: Partial<UITooltipData>): void+```+## audioPlugin — const @experimental```AudioPlugin@@ -11287,6 +11370,11 @@ Plugin(options: GameSocketOptions): PlatformSocket```+## createTabView — function @beta+```+(opts: TabViewOptions): TabViewHandle+```+## createTakeover — function @experimental```(host: TakeoverHost): Takeover@@ -11307,6 +11395,11 @@ Plugin(opts: ToggleOptions): ToggleHandle```+## createTooltip — function @beta+```+(opts: TooltipOptions): TooltipHandle+```+## createVirtualButton — function @experimental```(options: VirtualButtonOptions): ButtonHandle@@ -12737,6 +12830,11 @@ PrefabsPlugin(app: App) => CameraViewAPI```+## previewTooltip — function @experimental+```+(world: World, target: Entity): () => void+```+## probeRegistrations — function @experimental```(register: () => Promise<void>): Promise<ProbedRegistrations>diff --git a/sdk/etc/index.native.api.md b/sdk/etc/index.native.api.mdindex c57ec0f8b..879ab9f5d 100644--- a/sdk/etc/index.native.api.md+++ b/sdk/etc/index.native.api.md@@ -1,7 +1,7 @@# API surface — esengine/index.native<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->-Symbols: 115 public · 123 beta · 1629 experimental · 3 deprecated+Symbols: 115 public · 128 beta · 1637 experimental · 3 deprecated## ABI_LAYOUT_HASH — const @experimental```@@ -864,7 +864,7 @@ type: AssetFieldType## AssetFieldType — type @public```-'texture' | 'material' | 'font' | 'anim-clip' | 'audio' | 'sound-event' | 'video' | 'tilemap' | 'tileset' | 'timeline' | 'statemachine' | 'behaviortree' | 'scriptgraph' | 'animatorcontroller' | 'avatar' | 'mesh' | 'environment' | 'probeVolume'+'texture' | 'material' | 'font' | 'anim-clip' | 'audio' | 'sound-event' | 'video' | 'tilemap' | 'tileset' | 'timeline' | 'statemachine' | 'behaviortree' | 'scriptgraph' | 'animatorcontroller' | 'avatar' | 'mesh' | 'environment' | 'probeVolume' | 'prefab'```## AssetGroupDef — interface @experimental@@ -1390,7 +1390,7 @@ Record<string, PrefabData>## BUILTIN_UI_WIDGET_NAMES — const @experimental```-readonly ["VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]+readonly ["TabView", "Tooltip", "VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]```## BUNDLE_MODES — const @experimental@@ -9094,6 +9094,27 @@ readonly (keyof ThemeColors)[]Record<string, string | number>```+## TabViewHandle — interface @experimental+```+dispose: () => void+entity: number+pages: readonly number[]+select: (index: number) => void+tabs: readonly number[]+```++## TabViewOptions — interface @experimental+```+events: UIEventQueue+labels: readonly string[]+node: UINodeInit | undefined+onChange: ((index: number, page: Entity) => void) | undefined+parent: number | undefined+selectedIndex: number | undefined+tabHeight: number | undefined+world: World+```+## Takeover — interface @experimental```active: boolean@@ -9560,6 +9581,21 @@ tabIndex: number | undefinedworld: World```+## TooltipHandle — interface @experimental+```+dispose: () => void+entity: number+```++## TooltipOptions — interface @experimental+```+content: string | undefined+node: UINodeInit | undefined+parent: number | undefined+settings: Partial<UITooltipData> | undefined+world: World+```+## TouchPoint — interface @beta```id: number@@ -10053,6 +10089,23 @@ step: numbervalue: number```+## UITabView — const @beta+```+ComponentDef<UITabViewData>+```++## UITabViewData — interface @experimental+```+allowSwitchOff: boolean+labels: string[]+loopNavigation: boolean+pages: number[]+selectOnFocus: boolean+selectedIndex: number+tabs: number[]+vertical: boolean+```+## UIToggle — const @experimental```ComponentDef<UIToggleData>@@ -10074,6 +10127,26 @@ ComponentDef<UIToggleGroupData>allowSwitchOff: boolean```+## UITooltip — const @beta+```+ComponentDef<UITooltipData>+```++## UITooltipData — interface @experimental+```+avoidEdges: boolean+content: string+focus: boolean+gap: number+hover: boolean+hoverDelay: number+longPress: boolean+longPressDelay: number+maxWidth: number+side: number+stylePrefab: string+```+## UIVisibilityPlugin — class @experimental```build: (app: App) => void@@ -11000,6 +11073,11 @@ AnimationPlugin(source: PrefabData, overrides: readonly PrefabOverride[]): PrefabData```+## applyTabViewSelection — function @experimental+```+(world: World, root: Entity, index: number): void+```+## applyThemeToWorld — function @experimental```(world: World): void@@ -11040,6 +11118,11 @@ AssetPlugin(atlas: CookedAtlasInfo, pagePath: string): Pick<CatalogEntry, "atlas" | "frame" | "uv">```+## attachTooltip — function @beta+```+(world: World, target: Entity, options?: Partial<UITooltipData>): void+```+## audioPlugin — const @experimental```AudioPlugin@@ -11540,6 +11623,11 @@ Plugin(options: GameSocketOptions): PlatformSocket```+## createTabView — function @beta+```+(opts: TabViewOptions): TabViewHandle+```+## createTakeover — function @experimental```(host: TakeoverHost): Takeover@@ -11560,6 +11648,11 @@ Plugin(opts: ToggleOptions): ToggleHandle```+## createTooltip — function @beta+```+(opts: TooltipOptions): TooltipHandle+```+## createVirtualButton — function @experimental```(options: VirtualButtonOptions): ButtonHandle@@ -13000,6 +13093,11 @@ PrefabsPlugin(app: App) => CameraViewAPI```+## previewTooltip — function @experimental+```+(world: World, target: Entity): () => void+```+## probeRegistrations — function @experimental```(register: () => Promise<void>): Promise<ProbedRegistrations>diff --git a/sdk/etc/index.node.api.md b/sdk/etc/index.node.api.mdindex 9ffb9fdbf..a2b57cc8f 100644--- a/sdk/etc/index.node.api.md+++ b/sdk/etc/index.node.api.md@@ -1,7 +1,7 @@# API surface — esengine/index.node<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->-Symbols: 115 public · 120 beta · 1609 experimental · 3 deprecated+Symbols: 115 public · 125 beta · 1617 experimental · 3 deprecated## ANCHOR_AXES — const @experimental```@@ -859,7 +859,7 @@ type: AssetFieldType## AssetFieldType — type @public```-'texture' | 'material' | 'font' | 'anim-clip' | 'audio' | 'sound-event' | 'video' | 'tilemap' | 'tileset' | 'timeline' | 'statemachine' | 'behaviortree' | 'scriptgraph' | 'animatorcontroller' | 'avatar' | 'mesh' | 'environment' | 'probeVolume'+'texture' | 'material' | 'font' | 'anim-clip' | 'audio' | 'sound-event' | 'video' | 'tilemap' | 'tileset' | 'timeline' | 'statemachine' | 'behaviortree' | 'scriptgraph' | 'animatorcontroller' | 'avatar' | 'mesh' | 'environment' | 'probeVolume' | 'prefab'```## AssetGroupDef — interface @experimental@@ -1385,7 +1385,7 @@ Record<string, PrefabData>## BUILTIN_UI_WIDGET_NAMES — const @experimental```-readonly ["VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]+readonly ["TabView", "Tooltip", "VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]```## BUNDLE_MODES — const @experimental@@ -8876,6 +8876,27 @@ readonly (keyof ThemeColors)[]Record<string, string | number>```+## TabViewHandle — interface @experimental+```+dispose: () => void+entity: number+pages: readonly number[]+select: (index: number) => void+tabs: readonly number[]+```++## TabViewOptions — interface @experimental+```+events: UIEventQueue+labels: readonly string[]+node: UINodeInit | undefined+onChange: ((index: number, page: Entity) => void) | undefined+parent: number | undefined+selectedIndex: number | undefined+tabHeight: number | undefined+world: World+```+## Takeover — interface @experimental```active: boolean@@ -9342,6 +9363,21 @@ tabIndex: number | undefinedworld: World```+## TooltipHandle — interface @experimental+```+dispose: () => void+entity: number+```++## TooltipOptions — interface @experimental+```+content: string | undefined+node: UINodeInit | undefined+parent: number | undefined+settings: Partial<UITooltipData> | undefined+world: World+```+## TouchPoint — interface @beta```id: number@@ -9835,6 +9871,23 @@ step: numbervalue: number```+## UITabView — const @beta+```+ComponentDef<UITabViewData>+```++## UITabViewData — interface @experimental+```+allowSwitchOff: boolean+labels: string[]+loopNavigation: boolean+pages: number[]+selectOnFocus: boolean+selectedIndex: number+tabs: number[]+vertical: boolean+```+## UIToggle — const @experimental```ComponentDef<UIToggleData>@@ -9856,6 +9909,26 @@ ComponentDef<UIToggleGroupData>allowSwitchOff: boolean```+## UITooltip — const @beta+```+ComponentDef<UITooltipData>+```++## UITooltipData — interface @experimental+```+avoidEdges: boolean+content: string+focus: boolean+gap: number+hover: boolean+hoverDelay: number+longPress: boolean+longPressDelay: number+maxWidth: number+side: number+stylePrefab: string+```+## UIVisibilityPlugin — class @experimental```build: (app: App) => void@@ -10782,6 +10855,11 @@ AnimationPlugin(source: PrefabData, overrides: readonly PrefabOverride[]): PrefabData```+## applyTabViewSelection — function @experimental+```+(world: World, root: Entity, index: number): void+```+## applyThemeToWorld — function @experimental```(world: World): void@@ -10807,6 +10885,11 @@ AssetPlugin(atlas: CookedAtlasInfo, pagePath: string): Pick<CatalogEntry, "atlas" | "frame" | "uv">```+## attachTooltip — function @beta+```+(world: World, target: Entity, options?: Partial<UITooltipData>): void+```+## audioPlugin — const @experimental```AudioPlugin@@ -11282,6 +11365,11 @@ Plugin(options: GameSocketOptions): PlatformSocket```+## createTabView — function @beta+```+(opts: TabViewOptions): TabViewHandle+```+## createTakeover — function @experimental```(host: TakeoverHost): Takeover@@ -11302,6 +11390,11 @@ Plugin(opts: ToggleOptions): ToggleHandle```+## createTooltip — function @beta+```+(opts: TooltipOptions): TooltipHandle+```+## createVirtualButton — function @experimental```(options: VirtualButtonOptions): ButtonHandle@@ -12742,6 +12835,11 @@ PrefabsPlugin(app: App) => CameraViewAPI```+## previewTooltip — function @experimental+```+(world: World, target: Entity): () => void+```+## probeRegistrations — function @experimental```(register: () => Promise<void>): Promise<ProbedRegistrations>diff --git a/sdk/etc/minigame.api.md b/sdk/etc/minigame.api.mdindex 682021373..5822acc95 100644--- a/sdk/etc/minigame.api.md+++ b/sdk/etc/minigame.api.md@@ -1,7 +1,7 @@# API surface — esengine/minigame<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->-Symbols: 115 public · 118 beta · 1631 experimental · 3 deprecated+Symbols: 115 public · 123 beta · 1639 experimental · 3 deprecated## ANCHOR_AXES — const @experimental```@@ -859,7 +859,7 @@ type: AssetFieldType## AssetFieldType — type @public```-'texture' | 'material' | 'font' | 'anim-clip' | 'audio' | 'sound-event' | 'video' | 'tilemap' | 'tileset' | 'timeline' | 'statemachine' | 'behaviortree' | 'scriptgraph' | 'animatorcontroller' | 'avatar' | 'mesh' | 'environment' | 'probeVolume'+'texture' | 'material' | 'font' | 'anim-clip' | 'audio' | 'sound-event' | 'video' | 'tilemap' | 'tileset' | 'timeline' | 'statemachine' | 'behaviortree' | 'scriptgraph' | 'animatorcontroller' | 'avatar' | 'mesh' | 'environment' | 'probeVolume' | 'prefab'```## AssetGroupDef — interface @experimental@@ -1385,7 +1385,7 @@ Record<string, PrefabData>## BUILTIN_UI_WIDGET_NAMES — const @experimental```-readonly ["VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]+readonly ["TabView", "Tooltip", "VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]```## BUNDLE_MODES — const @experimental@@ -9169,6 +9169,27 @@ readonly (keyof ThemeColors)[]Record<string, string | number>```+## TabViewHandle — interface @experimental+```+dispose: () => void+entity: number+pages: readonly number[]+select: (index: number) => void+tabs: readonly number[]+```++## TabViewOptions — interface @experimental+```+events: UIEventQueue+labels: readonly string[]+node: UINodeInit | undefined+onChange: ((index: number, page: Entity) => void) | undefined+parent: number | undefined+selectedIndex: number | undefined+tabHeight: number | undefined+world: World+```+## Takeover — interface @experimental```active: boolean@@ -9635,6 +9656,21 @@ tabIndex: number | undefinedworld: World```+## TooltipHandle — interface @experimental+```+dispose: () => void+entity: number+```++## TooltipOptions — interface @experimental+```+content: string | undefined+node: UINodeInit | undefined+parent: number | undefined+settings: Partial<UITooltipData> | undefined+world: World+```+## TouchPoint — interface @beta```id: number@@ -10128,6 +10164,23 @@ step: numbervalue: number```+## UITabView — const @beta+```+ComponentDef<UITabViewData>+```++## UITabViewData — interface @experimental+```+allowSwitchOff: boolean+labels: string[]+loopNavigation: boolean+pages: number[]+selectOnFocus: boolean+selectedIndex: number+tabs: number[]+vertical: boolean+```+## UIToggle — const @experimental```ComponentDef<UIToggleData>@@ -10149,6 +10202,26 @@ ComponentDef<UIToggleGroupData>allowSwitchOff: boolean```+## UITooltip — const @beta+```+ComponentDef<UITooltipData>+```++## UITooltipData — interface @experimental+```+avoidEdges: boolean+content: string+focus: boolean+gap: number+hover: boolean+hoverDelay: number+longPress: boolean+longPressDelay: number+maxWidth: number+side: number+stylePrefab: string+```+## UIVisibilityPlugin — class @experimental```build: (app: App) => void@@ -11081,6 +11154,11 @@ AnimationPlugin(source: PrefabData, overrides: readonly PrefabOverride[]): PrefabData```+## applyTabViewSelection — function @experimental+```+(world: World, root: Entity, index: number): void+```+## applyThemeToWorld — function @experimental```(world: World): void@@ -11106,6 +11184,11 @@ AssetPlugin(atlas: CookedAtlasInfo, pagePath: string): Pick<CatalogEntry, "atlas" | "frame" | "uv">```+## attachTooltip — function @beta+```+(world: World, target: Entity, options?: Partial<UITooltipData>): void+```+## audioPlugin — const @experimental```AudioPlugin@@ -11586,6 +11669,11 @@ Plugin(options: GameSocketOptions): PlatformSocket```+## createTabView — function @beta+```+(opts: TabViewOptions): TabViewHandle+```+## createTakeover — function @experimental```(host: TakeoverHost): Takeover@@ -11606,6 +11694,11 @@ Plugin(opts: ToggleOptions): ToggleHandle```+## createTooltip — function @beta+```+(opts: TooltipOptions): TooltipHandle+```+## createVirtualButton — function @experimental```(options: VirtualButtonOptions): ButtonHandle@@ -13046,6 +13139,11 @@ PrefabsPlugin(app: App) => CameraViewAPI```+## previewTooltip — function @experimental+```+(world: World, target: Entity): () => void+```+## probeRegistrations — function @experimental```(register: () => Promise<void>): Promise<ProbedRegistrations>diff --git a/sdk/etc/wechat.api.md b/sdk/etc/wechat.api.mdindex e74c26962..5e1b0d1c2 100644--- a/sdk/etc/wechat.api.md+++ b/sdk/etc/wechat.api.md@@ -1,7 +1,7 @@# API surface — esengine/wechat<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->-Symbols: 115 public · 118 beta · 1622 experimental · 3 deprecated+Symbols: 115 public · 123 beta · 1630 experimental · 3 deprecated## ANCHOR_AXES — const @experimental```@@ -859,7 +859,7 @@ type: AssetFieldType## AssetFieldType — type @public```-'texture' | 'material' | 'font' | 'anim-clip' | 'audio' | 'sound-event' | 'video' | 'tilemap' | 'tileset' | 'timeline' | 'statemachine' | 'behaviortree' | 'scriptgraph' | 'animatorcontroller' | 'avatar' | 'mesh' | 'environment' | 'probeVolume'+'texture' | 'material' | 'font' | 'anim-clip' | 'audio' | 'sound-event' | 'video' | 'tilemap' | 'tileset' | 'timeline' | 'statemachine' | 'behaviortree' | 'scriptgraph' | 'animatorcontroller' | 'avatar' | 'mesh' | 'environment' | 'probeVolume' | 'prefab'```## AssetGroupDef — interface @experimental@@ -1385,7 +1385,7 @@ Record<string, PrefabData>## BUILTIN_UI_WIDGET_NAMES — const @experimental```-readonly ["VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]+readonly ["TabView", "Tooltip", "VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]```## BUNDLE_MODES — const @experimental@@ -8883,6 +8883,27 @@ readonly (keyof ThemeColors)[]Record<string, string | number>```+## TabViewHandle — interface @experimental+```+dispose: () => void+entity: number+pages: readonly number[]+select: (index: number) => void+tabs: readonly number[]+```++## TabViewOptions — interface @experimental+```+events: UIEventQueue+labels: readonly string[]+node: UINodeInit | undefined+onChange: ((index: number, page: Entity) => void) | undefined+parent: number | undefined+selectedIndex: number | undefined+tabHeight: number | undefined+world: World+```+## Takeover — interface @experimental```active: boolean@@ -9349,6 +9370,21 @@ tabIndex: number | undefinedworld: World```+## TooltipHandle — interface @experimental+```+dispose: () => void+entity: number+```++## TooltipOptions — interface @experimental+```+content: string | undefined+node: UINodeInit | undefined+parent: number | undefined+settings: Partial<UITooltipData> | undefined+world: World+```+## TouchPoint — interface @beta```id: number@@ -9842,6 +9878,23 @@ step: numbervalue: number```+## UITabView — const @beta+```+ComponentDef<UITabViewData>+```++## UITabViewData — interface @experimental+```+allowSwitchOff: boolean+labels: string[]+loopNavigation: boolean+pages: number[]+selectOnFocus: boolean+selectedIndex: number+tabs: number[]+vertical: boolean+```+## UIToggle — const @experimental```ComponentDef<UIToggleData>@@ -9863,6 +9916,26 @@ ComponentDef<UIToggleGroupData>allowSwitchOff: boolean```+## UITooltip — const @beta+```+ComponentDef<UITooltipData>+```++## UITooltipData — interface @experimental+```+avoidEdges: boolean+content: string+focus: boolean+gap: number+hover: boolean+hoverDelay: number+longPress: boolean+longPressDelay: number+maxWidth: number+side: number+stylePrefab: string+```+## UIVisibilityPlugin — class @experimental```build: (app: App) => void@@ -10813,6 +10886,11 @@ AnimationPlugin(source: PrefabData, overrides: readonly PrefabOverride[]): PrefabData```+## applyTabViewSelection — function @experimental+```+(world: World, root: Entity, index: number): void+```+## applyThemeToWorld — function @experimental```(world: World): void@@ -10838,6 +10916,11 @@ AssetPlugin(atlas: CookedAtlasInfo, pagePath: string): Pick<CatalogEntry, "atlas" | "frame" | "uv">```+## attachTooltip — function @beta+```+(world: World, target: Entity, options?: Partial<UITooltipData>): void+```+## audioPlugin — const @experimental```AudioPlugin@@ -11313,6 +11396,11 @@ Plugin(options: GameSocketOptions): PlatformSocket```+## createTabView — function @beta+```+(opts: TabViewOptions): TabViewHandle+```+## createTakeover — function @experimental```(host: TakeoverHost): Takeover@@ -11333,6 +11421,11 @@ Plugin(opts: ToggleOptions): ToggleHandle```+## createTooltip — function @beta+```+(opts: TooltipOptions): TooltipHandle+```+## createVirtualButton — function @experimental```(options: VirtualButtonOptions): ButtonHandle@@ -12773,6 +12866,11 @@ PrefabsPlugin(app: App) => CameraViewAPI```+## previewTooltip — function @experimental+```+(world: World, target: Entity): () => void+```+## probeRegistrations — function @experimental```(register: () => Promise<void>): Promise<ProbedRegistrations>diff --git a/sdk/src/asset/Assets.ts b/sdk/src/asset/Assets.tsindex ef648284d..4528209fc 100644--- a/sdk/src/asset/Assets.ts+++ b/sdk/src/asset/Assets.ts@@ -1571,6 +1571,7 @@ export class Assets {const meshPaths = discovered.byType.get('mesh') ?? new Set<string>();const environmentPaths = discovered.byType.get('environment') ?? new Set<string>();const probeVolumePaths = discovered.byType.get('probeVolume') ?? new Set<string>();+ const prefabPaths = discovered.byType.get('prefab') ?? new Set<string>();const spinePairs = discovered.spines;const textureHandles = new Map<string, number>();@@ -1696,6 +1697,7 @@ export class Assets {pushAcquire(graphPaths, p => this.acquireTypedLease_('scriptgraph', p), 'scriptgraph');pushAcquire(animatorPaths, p => this.acquireTypedLease_('animatorcontroller', p), 'animatorcontroller');pushAcquire(avatarPaths, p => this.acquireTypedLease_('avatar', p), 'avatar');+ pushAcquire(prefabPaths, p => this.acquireTypedLease_('prefab', p), 'prefab');const totalCount = tasks.length;onProgress?.(0, totalCount);diff --git a/sdk/src/core-ui.ts b/sdk/src/core-ui.tsindex 69b5339e5..856b73ec9 100644--- a/sdk/src/core-ui.ts+++ b/sdk/src/core-ui.ts@@ -54,6 +54,10 @@ export {// The value too, not just the union type: the editor's event picker and// authored data both need the canonical type strings.UIEventType,+ UITabView, type UITabViewData, createTabView, type TabViewOptions, type TabViewHandle,+ UITooltip, type UITooltipData, attachTooltip, createTooltip,+ type TooltipOptions, type TooltipHandle,+ applyTabViewSelection, previewTooltip,UICameraInfo,ScreenOverlay, type ScreenOverlayData,screenToUiLayout, uiLayoutToScreen, isScreenEntity,diff --git a/sdk/src/scene/scene.ts b/sdk/src/scene/scene.tsindex 7727d0277..8e363777e 100644--- a/sdk/src/scene/scene.ts+++ b/sdk/src/scene/scene.ts@@ -152,7 +152,7 @@ export class MissingAssetsError extends Error {** @public*/-export type AssetFieldType = 'texture' | 'material' | 'font' | 'anim-clip' | 'audio' | 'sound-event' | 'video' | 'tilemap' | 'tileset' | 'timeline' | 'statemachine' | 'behaviortree' | 'scriptgraph' | 'animatorcontroller' | 'avatar' | 'mesh' | 'environment' | 'probeVolume';+export type AssetFieldType = 'texture' | 'material' | 'font' | 'anim-clip' | 'audio' | 'sound-event' | 'video' | 'tilemap' | 'tileset' | 'timeline' | 'statemachine' | 'behaviortree' | 'scriptgraph' | 'animatorcontroller' | 'avatar' | 'mesh' | 'environment' | 'probeVolume' | 'prefab';// =============================================================================// Component Query Helpers (read from self-describing ComponentDef)diff --git a/sdk/src/ui/behavior/plugin.ts b/sdk/src/ui/behavior/plugin.tsindex 3e78cac13..8120dfd94 100644--- a/sdk/src/ui/behavior/plugin.ts+++ b/sdk/src/ui/behavior/plugin.ts@@ -31,6 +31,9 @@ import { UIDropdown, createDropdownSystem } from './dropdown';import { createScrollbarSystem } from './scrollbar';import { registerComponent } from '../../ecs/component';import { VirtualJoystick, VirtualButton, createVirtualControlSystem } from './virtual-controls';+import { UITabView, createTabViewSystem } from './tab-view';+import { UITooltip, createTooltipSystem } from './tooltip';+import type { PrefabServer } from '../../prefab/prefabServer';/** Screen-px slop before a press becomes a scroll drag (matches Draggable). */const SCROLL_DRAG_THRESHOLD_PX = 5;@@ -148,6 +151,18 @@ export class UIBehaviorPlugin implements Plugin {{ runIf: playModeOnly },);+ registerComponent('UITabView', UITabView);+ registerComponent('UITooltip', UITooltip);+ app.addSystemToSchedule(Schedule.Update, createTabViewSystem(world, events), { runIf: playModeOnly });+ const tooltips = createTooltipSystem(world, { instantiate: (ref, parent) => {+ const prefabs = app.getResourceByName('Prefabs') as PrefabServer | undefined;+ if (!prefabs) return Promise.reject(new Error('Tooltip style prefabs require PrefabsPlugin'));+ return prefabs.instantiate(ref, { parent, scene: false });+ } }, playModeOnly);+ const offTooltipExecution = app.onExecutionChange(held => { if (held) tooltips.reset(); });+ this.controlCleanup_.set(app, () => { virtualControls.dispose(); offTooltipExecution(); tooltips.dispose(); });+ app.addSystemToSchedule(Schedule.Update, tooltips.system);+registerComponent('UIDropdown', UIDropdown);app.addSystemToSchedule(Schedule.Update,diff --git a/sdk/src/ui/behavior/tab-view.ts b/sdk/src/ui/behavior/tab-view.tsnew file mode 100644index 000000000..d7057198a--- /dev/null+++ b/sdk/src/ui/behavior/tab-view.ts@@ -0,0 +1,146 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import { defineComponent, Parent, Children } from '../../ecs/component';+import { defineSystem, type SystemDef } from '../../ecs/system';+import { Res } from '../../ecs/resource';+import { Input, type InputState } from '../../input/input';+import type { World } from '../../ecs/world';+import type { Entity } from '../../types';+import { UINode, UIDisplay } from '../core/ui-node';+import { UIEventType, type UIEventQueue } from '../core/events';+import { UIToggle, UIToggleGroup } from './toggle';+import { FocusManager, type FocusManagerState } from '../input/focusable';+import { isFocusEligible } from '../input/focus-inspection';+import { moveUIFocus } from '../input/focus-transition';+import { setUIVisible } from '../core/compose';+import { Text } from '../core/text';++/** Ordered, parallel entity lists use the same prefab remapping as MeshSkin.joints. */+export interface UITabViewData {+ selectedIndex: number;+ tabs: Entity[];+ pages: Entity[];+ labels: string[];+ allowSwitchOff: boolean;+ vertical: boolean;+ loopNavigation: boolean;+ selectOnFocus: boolean;+}++/** A ToggleGroup with corresponding content pages. No separate selection primitive. @beta */+export const UITabView = defineComponent<UITabViewData>('UITabView', {+ selectedIndex: 0, tabs: [], pages: [], labels: [], allowSwitchOff: false,+ vertical: false, loopNavigation: true, selectOnFocus: true,+}, { entityFields: ['tabs', 'pages'], fields: { selectedIndex: { min: -1, step: 1 } } });++function within(world: World, entity: Entity, root: Entity): boolean {+ const seen = new Set<Entity>();+ while (world.valid(entity) && world.has(entity, Parent) && !seen.has(entity)) {+ seen.add(entity);+ entity = world.get(entity, Parent).entity;+ if (entity === root) return true;+ }+ return false;+}++/** Bind only this view's descendants; malformed references cannot hide another panel. */+export function tabViewBindings(world: World, root: Entity, d: UITabViewData): number[] {+ const tabs = new Set<Entity>(), pages = new Set<Entity>();+ return d.tabs.flatMap((tab, i) => {+ const page = d.pages[i];+ if (!world.valid(tab) || !world.has(tab, UIToggle) || !within(world, tab, root)+ || !page || !world.valid(page) || !world.has(page, UINode) || !within(world, page, root)+ || tabs.has(tab) || pages.has(page) || tab === page || within(world, tab, page)) return [];+ // A nested ToggleGroup owns its own toggles, never this view's selection.+ let parent = world.get(tab, Parent).entity;+ while (parent !== root) {+ if (world.has(parent, UIToggleGroup)) return [];+ parent = world.get(parent, Parent).entity;+ }+ tabs.add(tab); pages.add(page);+ return [i];+ });+}++/** Apply selection without emitting: also used by the editor's ephemeral preview. */+export function applyTabViewSelection(world: World, root: Entity, index: number): void {+ if (!world.valid(root) || !world.has(root, UITabView)) return;+ const d = world.get(root, UITabView);+ const bindings = tabViewBindings(world, root, d);+ for (const i of bindings) {+ const toggle = world.get(d.tabs[i], UIToggle);+ if (toggle.isOn !== (i === index)) world.insert(d.tabs[i], UIToggle, { ...toggle, isOn: i === index });+ setUIVisible(world, toggle.check, i === index);+ const node = world.get(d.pages[i], UINode);+ const display = i === index ? UIDisplay.Flex : UIDisplay.None;+ if (node.display !== display) world.insert(d.pages[i], UINode, { ...node, display });+ }+}++/** Selection, page display and keyboard traversal are per-world runtime state. */+export function createTabViewSystem(world: World, events: UIEventQueue): SystemDef {+ const previous = new Map<Entity, { index: number; on: Set<Entity>; pages: Map<Entity, number>; focus: Entity | null }>();+ const restorePage = (page: Entity, display: number) => {+ if (world.valid(page) && world.has(page, UINode)) {+ const node = world.get(page, UINode);+ if (node.display !== display) world.insert(page, UINode, { ...node, display });+ }+ };+ return defineSystem([Res(Input), Res(FocusManager)], (input: InputState, focus: FocusManagerState) => {+ const live = new Set(world.getEntitiesWithComponents([UITabView]));+ for (const [e, old] of previous) if (!live.has(e)) {+ for (const [page, display] of old.pages) restorePage(page, display);+ previous.delete(e);+ }+ for (const root of live) {+ if (!world.valid(root) || !world.has(root, UITabView)) continue;+ const d = world.get(root, UITabView);+ if (!world.has(root, UIToggleGroup) || world.get(root, UIToggleGroup).allowSwitchOff !== d.allowSwitchOff) {+ world.insert(root, UIToggleGroup, { allowSwitchOff: d.allowSwitchOff });+ }+ const bindings = tabViewBindings(world, root, d);+ const old = previous.get(root);+ const pageStates = old?.pages ?? new Map<Entity, number>();+ const managed = new Set(bindings.map(i => d.pages[i]));+ for (const [page, display] of pageStates) if (!managed.has(page)) { restorePage(page, display); pageStates.delete(page); }+ for (const page of managed) if (!pageStates.has(page)) pageStates.set(page, world.get(page, UINode).display);+ let next = Number.isFinite(d.selectedIndex) ? Math.trunc(d.selectedIndex) : -1;+ if (old && old.index === next) {+ const switched = bindings.find(i => world.get(d.tabs[i], UIToggle).isOn && !old.on.has(d.tabs[i]));+ if (switched !== undefined) next = switched;+ else if (d.allowSwitchOff && !bindings.some(i => world.get(d.tabs[i], UIToggle).isOn)) next = -1;+ }+ const eligible = bindings.filter(i => isFocusEligible(world, d.tabs[i]));+ const at = eligible.findIndex(i => d.tabs[i] === focus.focusedEntity);+ if (at >= 0) {+ let move = at;+ const navigation = ['Home', 'End', ...(d.vertical ? ['ArrowDown', 'ArrowUp'] : ['ArrowRight', 'ArrowLeft'])]+ .some(key => input.isKeyPressed(key));+ if (input.isKeyPressed('Home')) move = 0;+ else if (input.isKeyPressed('End')) move = eligible.length - 1;+ else if (input.isKeyPressed(d.vertical ? 'ArrowDown' : 'ArrowRight')) move++;+ else if (input.isKeyPressed(d.vertical ? 'ArrowUp' : 'ArrowLeft')) move--;+ if (d.loopNavigation) move = (move + eligible.length) % eligible.length;+ else move = Math.max(0, Math.min(eligible.length - 1, move));+ if (move !== at) moveUIFocus(world, events, focus, d.tabs[eligible[move]], true);+ if (!world.valid(root) || !world.has(root, UITabView)) continue;+ if (d.selectOnFocus && focus.focusVisible && focus.focusedEntity === d.tabs[eligible[move]]+ && (navigation || old?.focus !== focus.focusedEntity)) next = eligible[move];+ }+ if (!bindings.includes(next)) next = d.allowSwitchOff ? -1 : (eligible[0] ?? bindings[0] ?? -1);+ const changed = old !== undefined && old.index !== next;+ if (d.selectedIndex !== next) world.insert(root, UITabView, { ...d, selectedIndex: next });+ applyTabViewSelection(world, root, next);+ for (const i of bindings) {+ if (d.labels[i] === undefined || !world.has(d.tabs[i], Children)) continue;+ const label = world.get(d.tabs[i], Children).entities.find(child => world.has(child, Text));+ if (label === undefined) continue;+ const text = world.get(label, Text);+ if (text.content !== d.labels[i]) world.insert(label, Text, { ...text, content: d.labels[i] });+ }+ previous.set(root, { index: next, on: new Set(bindings.filter(i => i === next).map(i => d.tabs[i])),+ pages: pageStates, focus: focus.focusedEntity });+ if (changed) events.emit(root, UIEventType.Change, { index: next, page: d.pages[next] ?? 0 });+ }+ }, { name: 'UITabViewSystem', runAfter: ['FocusSystem'] });+}diff --git a/sdk/src/ui/behavior/tooltip.ts b/sdk/src/ui/behavior/tooltip.tsnew file mode 100644index 000000000..51aeb0f93--- /dev/null+++ b/sdk/src/ui/behavior/tooltip.ts@@ -0,0 +1,261 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import { Canvas, SortingGroup, Transform, Parent, defineComponent } from '../../ecs/component';+import { defineSystem } from '../../ecs/system';+import { Res, Time, type TimeData } from '../../ecs/resource';+import { Input, type InputState } from '../../input/input';+import { primaryPointerCancellationVersion } from '../../input/pointerCancellation';+import { worldEngineApi, type EngineApi } from '../../ecs/bridge/engineApi';+import type { World } from '../../ecs/world';+import type { Entity } from '../../types';+import type { InstantiatePrefabResult } from '../../prefab';+import { UINode, UIPointerEvents, UIDisplay } from '../core/ui-node';+import { Text } from '../core/text';+import { spawnUIEntity } from '../core/compose';+import { px } from '../core/dimension';+import { ScreenLayout, type ScreenLayoutData } from '../core/screen-layout';+import { ScreenOverlay, type ScreenOverlayData } from '../core/screen-overlay';+import { UICameraInfo, type UICameraData } from '../core/ui-camera-info';+import { UIControlPointers, type ControlPointer } from '../input/control-pointers';+import { MOUSE_POINTER } from '../input/pointerBook';+import { Focusable, type FocusManagerState, FocusManager } from '../input/focusable';+import { Interactable } from '../input/interactable';+import { createLiveVisibilityQuery } from '../util/live-visibility';+import { isFocusEligible } from '../input/focus-inspection';+import { isScreenEntity, uiWorldToScreen, screenToUiLayout } from '../util/ui-pick';+import { themeColors } from '../theme/tokens';+import { markThemed } from '../theme/theme-style';+import { measureText } from '../text/measure-text';++export interface UITooltipData {+ content: string;+ stylePrefab: string;+ hover: boolean;+ focus: boolean;+ longPress: boolean;+ hoverDelay: number;+ longPressDelay: number;+ /** 0 bottom, 1 top, 2 left, 3 right. */+ side: number;+ gap: number;+ avoidEdges: boolean;+ maxWidth: number;+}++/** An input-transparent, themed engine UI popup attached to a target. @beta */+export const UITooltip = defineComponent<UITooltipData>('UITooltip', {+ content: 'Tooltip', stylePrefab: '', hover: true, focus: true, longPress: true,+ hoverDelay: 0.5, longPressDelay: 0.6, side: 0, gap: 8, avoidEdges: true, maxWidth: 240,+}, { assetFields: [{ field: 'stylePrefab', type: 'prefab' }], fields: {+ hoverDelay: { min: 0, unit: 's' }, longPressDelay: { min: 0, unit: 's' },+ gap: { min: 0, unit: 'px' }, maxWidth: { min: 24, unit: 'px' },+ side: { enum: [{ label: 'Bottom', value: 0 }, { label: 'Top', value: 1 }, { label: 'Left', value: 2 }, { label: 'Right', value: 3 }] },+} });++interface Box { left: number; right: number; top: number; bottom: number }+/** Layout-domain placement. Flip first, then clamp; oversized bubbles stay inside the safe box. */+export function placeTooltip(target: Box, width: number, height: number, side: number, gap: number,+ bounds: Box, avoidEdges: boolean): { x: number; y: number } {+ const position = (s: number) => ({+ x: s === 2 ? target.left - gap - width : s === 3 ? target.right + gap : (target.left + target.right - width) / 2,+ y: s === 1 ? target.top + gap : s === 0 ? target.bottom - gap - height : (target.top + target.bottom - height) / 2,+ });+ let p = position(side);+ const fits = (v: typeof p) => v.x >= bounds.left && v.x + width <= bounds.right+ && v.y >= bounds.bottom && v.y + height <= bounds.top;+ if (avoidEdges) {+ if (!fits(p)) {+ const flipped = position(side ^ 1);+ if (fits(flipped)) p = flipped;+ }+ p.x = Math.max(bounds.left, Math.min(p.x, bounds.right - width));+ p.y = Math.max(bounds.bottom, Math.min(p.y, bounds.top - height));+ }+ return p;+}++interface TooltipState {+ elapsed: number;+ trigger: 'hover' | 'focus' | 'touch' | null;+ pointer: number;+ startX: number;+ startY: number;+ moved: boolean;+ overlay?: Entity;+ popup?: Entity;+ label?: Entity;+ signature?: string;+ pending?: object;+}++export interface TooltipPrefabHost {+ instantiate(ref: string, parent: Entity): Promise<InstantiatePrefabResult>;+}+const previews = new WeakMap<World, Set<Entity>>();+/** Ephemeral authoring preview; never changes scene data or authored delays. @experimental */+export function previewTooltip(world: World, target: Entity): () => void {+ let set = previews.get(world);+ if (!set) { set = new Set(); previews.set(world, set); }+ set.add(target);+ return () => { set.delete(target); };+}++/** Owns all transient entities, asynchronous loads and matrix memory for one App. */+export function createTooltipSystem(world: World, prefabHost?: TooltipPrefabHost, isPlaying = () => true) {+ const states = new Map<Entity, TooltipState>();+ let disposed = false, owner: EngineApi | null = null, matrixPtr = 0, cancellation = -1;+ const close = (s: TooltipState) => {+ s.pending = undefined;+ if (s.overlay !== undefined && world.valid(s.overlay)) world.despawn(s.overlay);+ s.overlay = s.popup = s.label = undefined; s.signature = undefined;+ };+ const offDespawn = world.onDespawn(e => {+ const s = states.get(e);+ if (s) { states.delete(e); close(s); }+ previews.get(world)?.delete(e);+ });+ const reset = () => { for (const s of states.values()) close(s); states.clear(); };+ const dispose = () => {+ disposed = true; offDespawn(); reset();+ if (matrixPtr) owner?._free?.(matrixPtr);+ matrixPtr = 0; owner = null;+ };+ const boundsOf = (e: Entity, camera: UICameraData, overlay: ScreenOverlayData): Box | null => {+ const engine = worldEngineApi(world), registry = world.getCppRegistry();+ if (!engine || !registry || !world.has(e, Transform)) return null;+ const w = engine.getUINodeComputedWidth?.(registry, e) ?? 0;+ const h = engine.getUINodeComputedHeight?.(registry, e) ?? 0;+ if (!(w > 0 && h > 0)) return null;+ if (owner !== engine) { if (matrixPtr) owner?._free?.(matrixPtr); matrixPtr = 0; owner = engine; }+ if (!matrixPtr && engine._malloc && engine._free) matrixPtr = engine._malloc(64);+ if (!matrixPtr || !engine.transform_copyFlatRenderMatrix?.(registry, e, matrixPtr)) return null;+ const heap = engine.HEAPU8;+ if (!heap) return null;+ const m = new Float32Array(heap.buffer, heap.byteOffset + matrixPtr, 16);+ const screen = isScreenEntity(world, e);+ const xs: number[] = [], ys: number[] = [];+ for (const x of [-w / 2, w / 2]) for (const y of [-h / 2, h / 2]) {+ const wx = m[0] * x + m[4] * y + m[12], wy = m[1] * x + m[5] * y + m[13];+ const pixel = screen ? null : uiWorldToScreen(camera, wx, wy);+ const p = pixel ? screenToUiLayout(overlay, pixel.x, pixel.y) : { x: wx, y: wy };+ xs.push(p.x); ys.push(p.y);+ }+ return { left: Math.min(...xs), right: Math.max(...xs), bottom: Math.min(...ys), top: Math.max(...ys) };+ };+ const system = defineSystem([Res(Input), Res(Time), Res(ScreenLayout), Res(ScreenOverlay),+ Res(UICameraInfo), Res(UIControlPointers), Res(FocusManager)],+ (input: InputState, time: TimeData, layout: ScreenLayoutData, overlay: ScreenOverlayData,+ camera: UICameraData, pointers: { pointers: Map<number, ControlPointer> }, focus: FocusManagerState) => {+ if (disposed) return;+ const version = primaryPointerCancellationVersion(input);+ const cancelled = cancellation !== -1 && version !== cancellation;+ cancellation = version;+ const hidden = createLiveVisibilityQuery(world, () => false);+ const live = new Set(world.getEntitiesWithComponents([UITooltip, UINode]));+ for (const [e, s] of states) if (!live.has(e)) { close(s); states.delete(e); }+ for (const e of live) {+ let s = states.get(e);+ if (!s) { s = { elapsed: 0, trigger: null, pointer: -2, startX: 0, startY: 0, moved: false }; states.set(e, s); }+ const d = world.get(e, UITooltip);+ const preview = !isPlaying() && !!previews.get(world)?.has(e);+ const available = layout.valid && overlay.active && !hidden(e) && world.isEntityActive(e)+ && !world.isDestructionPending(e) && (!world.has(e, Interactable) || world.get(e, Interactable).enabled);+ const touch = [...pointers.pointers.values()].find(p => p.id !== MOUSE_POINTER && p.down && p.pressedEntity === e);+ const mouse = pointers.pointers.get(MOUSE_POINTER);+ let trigger: TooltipState['trigger'] = null;+ if (cancelled && touch) { s.moved = true; s.pointer = touch.id; }+ if (available && d.content && preview) trigger = 'focus';+ else if (isPlaying() && available && d.content && !cancelled && !input.isKeyPressed('Escape')) {+ if (touch && d.longPress) {+ if (s.pointer !== touch.id) {+ s.pointer = touch.id; s.startX = touch.layoutX; s.startY = touch.layoutY; s.moved = false;+ }+ if (Math.hypot(touch.layoutX - s.startX, touch.layoutY - s.startY) * layout.scale > 8) s.moved = true;+ if (!s.moved && touch.entity === e) trigger = 'touch';+ } else if (d.focus && focus.isVisiblyFocused(e) && isFocusEligible(world, e)) trigger = 'focus';+ else if (d.hover && mouse?.entity === e && !mouse.down && input.touches.size === 0) trigger = 'hover';+ }+ if (!touch) { s.pointer = -2; s.moved = false; }+ if (trigger !== s.trigger) { close(s); s.elapsed = 0; s.trigger = trigger; }+ if (!trigger) continue;+ s.elapsed += Number.isFinite(time.delta) ? Math.max(0, time.delta) : 0;+ const delay = trigger === 'focus' ? 0 : trigger === 'touch' ? d.longPressDelay : d.hoverDelay;+ if (s.elapsed < (Number.isFinite(delay) ? Math.max(0, delay) : 0)) continue;+ const target = boundsOf(e, camera, overlay);+ if (!target) { close(s); continue; }+ const signature = JSON.stringify([d.content, d.stylePrefab]);+ if (s.signature !== signature) { close(s); s.signature = signature; }+ if (s.overlay === undefined) {+ const canvas = spawnUIEntity({ world, node: { fill: true, pointerEvents: UIPointerEvents.None } });+ let ancestor = e;+ const visited = new Set<Entity>();+ while (world.valid(ancestor) && !world.has(ancestor, Canvas) && world.has(ancestor, Parent) && !visited.has(ancestor)) {+ visited.add(ancestor); ancestor = world.get(ancestor, Parent).entity;+ }+ const canvasData = structuredClone(world.has(ancestor, Canvas) ? world.get(ancestor, Canvas) : Canvas._default);+ // The screen domain is shared; this late root is only a non-interactive paint layer.+ world.insert(canvas, Canvas, canvasData);+ world.insert(canvas, SortingGroup, { layer: canvasData.layer, order: 1_000_000, enabled: true });+ s.overlay = canvas;+ if (d.stylePrefab && prefabHost) {+ const token = {}; s.pending = token;+ const state = s;+ void prefabHost.instantiate(d.stylePrefab, canvas).then(result => {+ if (disposed || state.pending !== token || !world.valid(canvas)) {+ for (const id of result.entities.values()) if (world.valid(id)) world.despawn(id);+ return;+ }+ state.pending = undefined;+ if (!world.has(result.root, UINode)) throw new Error('Tooltip style needs a UINode root');+ state.popup = result.root;+ state.label = [...result.entities.values()].find(id => id !== result.root && world.has(id, Text) && world.has(id, UINode));+ if (state.label === undefined) throw new Error('Tooltip style needs a Text node');+ for (const id of result.entities.values()) {+ if (world.has(id, Focusable)) world.remove(id, Focusable);+ if (world.has(id, Interactable)) world.remove(id, Interactable);+ }+ }).catch(error => {+ if (state.overlay !== canvas || disposed) return;+ state.pending = undefined;+ if (state.popup !== undefined && world.valid(state.popup)) world.despawn(state.popup);+ state.popup = state.label = undefined;+ console.warn('[UITooltip] Could not display style prefab:', error);+ });+ } else {+ const c = themeColors();+ s.popup = spawnUIEntity({ world, parent: canvas, node: { position: 1 }, visual: { color: c.surfaceElevated } });+ markThemed(world, s.popup, { visual: 'surfaceElevated' });+ s.label = spawnUIEntity({ world, parent: s.popup, node: { fill: true },+ text: { content: d.content, color: c.text, fontSize: 14, wordWrap: true } });+ markThemed(world, s.label, { text: 'text' });+ }+ }+ if (s.popup === undefined || s.label === undefined || !world.valid(s.popup) || !world.valid(s.label)) continue;+ const text = world.get(s.label, Text);+ const availableWidth = Math.max(1, layout.safeRight - layout.safeLeft);+ const maxWidth = Math.max(1, Math.min(Number.isFinite(d.maxWidth) ? Math.max(24, d.maxWidth) : 240, availableWidth - 20));+ const measured = measureText(d.content, { ...text, maxWidth,+ lineHeight: text.fontSize * text.lineHeight });+ const width = Math.min(availableWidth, measured.width + 20);+ const height = Math.min(Math.max(24, measured.height + 16), layout.safeTop - layout.safeBottom);+ const p = placeTooltip(target, width, height, Number.isInteger(d.side) && d.side >= 0 && d.side <= 3 ? d.side : 0,+ Number.isFinite(d.gap) ? Math.max(0, d.gap) : 8,+ { left: layout.safeLeft, right: layout.safeRight, bottom: layout.safeBottom, top: layout.safeTop }, d.avoidEdges);+ const node = world.get(s.popup, UINode);+ const left = p.x - layout.left, top = layout.top - p.y - height;+ const same = (dim: { value: number; unit: number }, n: number) => dim.unit === 0 && Math.abs(dim.value - n) < 0.01;+ if (node.position !== 1 || node.display !== UIDisplay.Flex || node.pointerEvents !== UIPointerEvents.None+ || !same(node.width, width) || !same(node.height, height) || !same(node.insetLeft, left) || !same(node.insetTop, top)) {+ world.insert(s.popup, UINode, { ...node, position: 1, display: UIDisplay.Flex, pointerEvents: UIPointerEvents.None,+ width: px(width), height: px(height), insetLeft: px(left), insetTop: px(top) });+ }+ if (text.content !== d.content || !text.wordWrap) world.insert(s.label, Text, { ...text, content: d.content, wordWrap: true });+ const labelNode = world.get(s.label, UINode);+ if (labelNode.position !== 1 || labelNode.insetLeft.value !== 10 || labelNode.insetRight.value !== 10+ || labelNode.insetTop.value !== 8 || labelNode.insetBottom.value !== 8) {+ world.insert(s.label, UINode, { ...labelNode, position: 1, insetLeft: px(10), insetRight: px(10), insetTop: px(8), insetBottom: px(8) });+ }+ }+ }, { name: 'UITooltipSystem', runAfter: ['UITabViewSystem', 'FocusSystem'] });+ return { system, dispose, reset };+}diff --git a/sdk/src/ui/index.ts b/sdk/src/ui/index.tsindex 02acad7ad..98ae91742 100644--- a/sdk/src/ui/index.ts+++ b/sdk/src/ui/index.ts@@ -141,6 +141,14 @@ export {type UIToggleData,type UIToggleGroupData,} from './behavior/toggle';+export { UITabView, createTabViewSystem, applyTabViewSelection, tabViewBindings } from './behavior/tab-view';+export type { UITabViewData } from './behavior/tab-view';+export { UITooltip, createTooltipSystem, placeTooltip, previewTooltip } from './behavior/tooltip';+export type { UITooltipData, TooltipPrefabHost } from './behavior/tooltip';+export { createTabView } from './widgets/tab-view';+export type { TabViewOptions, TabViewHandle } from './widgets/tab-view';+export { attachTooltip, createTooltip } from './widgets/tooltip';+export type { TooltipOptions, TooltipHandle } from './widgets/tooltip';export {UIDropdown,diff --git a/sdk/src/ui/input/focus-transition.ts b/sdk/src/ui/input/focus-transition.tsnew file mode 100644index 000000000..4b6c3761e--- /dev/null+++ b/sdk/src/ui/input/focus-transition.ts@@ -0,0 +1,30 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import type { World } from '../../ecs/world';+import type { Entity } from '../../types';+import { Focusable, type FocusManagerState } from './focusable';+import { isFocusEligible } from './focus-inspection';+import { UIEventType, type UIEventQueue } from '../core/events';++/** One transition path for Tab traversal and compound widgets. Handlers may redirect focus. */+export function moveUIFocus(world: World, events: UIEventQueue, manager: FocusManagerState,+ entity: Entity, visible: boolean): void {+ if (!isFocusEligible(world, entity)) return;+ if (manager.focusedEntity === entity) { manager.focusVisible = visible; return; }+ const previous = manager.blur();+ if (previous !== null && world.valid(previous) && world.has(previous, Focusable)) {+ world.set(previous, Focusable, { ...world.get(previous, Focusable), isFocused: false });+ events.emit(previous, UIEventType.Blur);+ }+ if (manager.focusedEntity !== null || !isFocusEligible(world, entity)) return;+ manager.focus(entity, visible);+ world.set(entity, Focusable, { ...world.get(entity, Focusable), isFocused: true });+ events.emit(entity, UIEventType.Focus);+ if (manager.focusedEntity === entity && !isFocusEligible(world, entity)) {+ manager.blur();+ if (world.valid(entity) && world.has(entity, Focusable)) {+ world.set(entity, Focusable, { ...world.get(entity, Focusable), isFocused: false });+ events.emit(entity, UIEventType.Blur);+ }+ }+}diff --git a/sdk/src/ui/input/focus.ts b/sdk/src/ui/input/focus.tsindex 498853a29..df6ecbfba 100644--- a/sdk/src/ui/input/focus.ts+++ b/sdk/src/ui/input/focus.ts@@ -17,6 +17,8 @@ import { inspectFocusTraversal, isFocusEligible } from './focus-inspection';import { playModeOnly } from '../../ecs/env';import { UIEvents, UIEventQueue, UIEventType } from '../core/events';import { PluginName } from '../../ecs/systemLabels';+import { moveUIFocus } from './focus-transition';+import { UITabView, tabViewBindings } from '../behavior/tab-view';export class FocusPlugin implements Plugin {name = PluginName.Focus;@@ -39,6 +41,15 @@ export class FocusPlugin implements Plugin {this.keyDefaults_.get(app)?.();this.keyDefaults_.set(app, setKeyDefaultPolicy(app.getResource(Input), code => {if (!playModeOnly() || app.isPaused()) return false;+ if (['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Home', 'End'].includes(code)) {+ return world.getEntitiesWithComponents([UITabView]).some(root => {+ const d = world.get(root, UITabView);+ return (code === 'Home' || code === 'End' || (d.vertical+ ? code === 'ArrowUp' || code === 'ArrowDown' : code === 'ArrowLeft' || code === 'ArrowRight'))+ && tabViewBindings(world, root, d).some(i => d.tabs[i] === focusManager.focusedEntity+ && isFocusEligible(world, d.tabs[i]));+ });+ }if (code !== 'Tab' && code !== 'Enter' && code !== 'Space') return false;if (code === 'Tab') return inspectFocusTraversal(world).entries.some(entry => entry.skipped === null);const focused = focusManager.focusedEntity;@@ -117,24 +128,7 @@ export class FocusPlugin implements Plugin {}function setFocus(entity: Entity, visible: boolean): void {- if (!isFocusEligible(world, entity)) return;- const prev = focusManager.focusedEntity;- // Re-focusing what is already focused still updates HOW: tabbing- // to a control you had clicked must start drawing the highlight.- if (prev === entity) {- focusManager.focusVisible = visible;- return;- }-- clearFocus();- // A blur handler can remove the target, open a modal, or redirect focus.- if (focusManager.focusedEntity !== null || !isFocusEligible(world, entity)) return;- focusManager.focus(entity, visible);- const f = world.get(entity, Focusable) as FocusableData;- f.isFocused = true;- world.set(entity, Focusable, f);- events.emit(entity, UIEventType.Focus);- if (focusManager.focusedEntity === entity && !isFocusEligible(world, entity)) clearFocus();+ moveUIFocus(world, events, focusManager, entity, visible);}function clearFocus(): void {diff --git a/sdk/src/ui/widgets/prefabs/TabView.esprefab b/sdk/src/ui/widgets/prefabs/TabView.esprefabnew file mode 100644index 000000000..88f9c5a74--- /dev/null+++ b/sdk/src/ui/widgets/prefabs/TabView.esprefab@@ -0,0 +1,2306 @@+{+ "version": "2",+ "name": "TabView",+ "rootEntityId": "0",+ "entities": [+ {+ "prefabEntityId": "0",+ "name": "TabView",+ "parent": null,+ "children": [+ "10",+ "9",+ "6",+ "5",+ "2",+ "1"+ ],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 0,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 420,+ "unit": 0+ },+ "height": {+ "value": 240,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 2+ },+ "insetTop": {+ "value": 0,+ "unit": 2+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.16,+ "g": 0.16,+ "b": 0.18,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "surface"+ }+ },+ {+ "type": "UIToggleGroup",+ "data": {+ "allowSwitchOff": false+ }+ },+ {+ "type": "UITabView",+ "data": {+ "selectedIndex": 0,+ "tabs": [+ "10",+ "6",+ "2"+ ],+ "pages": [+ "9",+ "5",+ "1"+ ],+ "labels": [+ "Graphics",+ "Audio",+ "Controls"+ ],+ "allowSwitchOff": false,+ "vertical": false,+ "loopNavigation": true,+ "selectOnFocus": true+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "10",+ "name": "Graphics Tab",+ "parent": "0",+ "children": [+ "12",+ "11"+ ],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 33.333333333333336,+ "unit": 1+ },+ "height": {+ "value": 36,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 1+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UIController",+ "data": {+ "controllers": [+ {+ "name": "$interaction",+ "pages": [+ "normal",+ "hover",+ "pressed",+ "disabled",+ "focused"+ ],+ "current": "normal"+ }+ ]+ }+ },+ {+ "type": "UIGear",+ "data": {+ "bindings": [+ {+ "controller": "$interaction",+ "component": "UIVisual",+ "property": "color",+ "pages": {+ "normal": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "hover": {+ "r": 0.28,+ "g": 0.28,+ "b": 0.32,+ "a": 1+ },+ "pressed": {+ "r": 0.18,+ "g": 0.18,+ "b": 0.22,+ "a": 1+ },+ "disabled": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 0.5+ },+ "focused": {+ "r": 0.3,+ "g": 0.34,+ "b": 0.44,+ "a": 1+ }+ }+ }+ ]+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "states": {+ "normal": "control",+ "hover": "controlHover",+ "pressed": "controlActive",+ "disabled": "control",+ "focused": "controlFocus"+ }+ }+ },+ {+ "type": "UIToggle",+ "data": {+ "isOn": true,+ "check": "12"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "12",+ "name": "Node",+ "parent": "10",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 2,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 2+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.25,+ "g": 0.56,+ "b": 0.96,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "primary"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "11",+ "name": "Label",+ "parent": "10",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Graphics",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 14,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false,+ "overflow": 0,+ "lineHeight": 1.2,+ "bold": false,+ "italic": false,+ "strokeColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "strokeWidth": 0,+ "shadowColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "shadowBlur": 0,+ "shadowOffsetX": 0,+ "shadowOffsetY": 0,+ "richText": false,+ "renderMode": 0,+ "layer": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "9",+ "name": "Graphics Page",+ "parent": "0",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 12,+ "unit": 0+ },+ "insetTop": {+ "value": 48,+ "unit": 0+ },+ "insetRight": {+ "value": 12,+ "unit": 0+ },+ "insetBottom": {+ "value": 12,+ "unit": 0+ }+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "6",+ "name": "Audio Tab",+ "parent": "0",+ "children": [+ "8",+ "7"+ ],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 33.333333333333336,+ "unit": 1+ },+ "height": {+ "value": 36,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 33.333333333333336,+ "unit": 1+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UIController",+ "data": {+ "controllers": [+ {+ "name": "$interaction",+ "pages": [+ "normal",+ "hover",+ "pressed",+ "disabled",+ "focused"+ ],+ "current": "normal"+ }+ ]+ }+ },+ {+ "type": "UIGear",+ "data": {+ "bindings": [+ {+ "controller": "$interaction",+ "component": "UIVisual",+ "property": "color",+ "pages": {+ "normal": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "hover": {+ "r": 0.28,+ "g": 0.28,+ "b": 0.32,+ "a": 1+ },+ "pressed": {+ "r": 0.18,+ "g": 0.18,+ "b": 0.22,+ "a": 1+ },+ "disabled": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 0.5+ },+ "focused": {+ "r": 0.3,+ "g": 0.34,+ "b": 0.44,+ "a": 1+ }+ }+ }+ ]+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "states": {+ "normal": "control",+ "hover": "controlHover",+ "pressed": "controlActive",+ "disabled": "control",+ "focused": "controlFocus"+ }+ }+ },+ {+ "type": "UIToggle",+ "data": {+ "isOn": false,+ "check": "8"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "8",+ "name": "Node",+ "parent": "6",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 2,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 2+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.25,+ "g": 0.56,+ "b": 0.96,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": false+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "primary"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "7",+ "name": "Label",+ "parent": "6",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Audio",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 14,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false,+ "overflow": 0,+ "lineHeight": 1.2,+ "bold": false,+ "italic": false,+ "strokeColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "strokeWidth": 0,+ "shadowColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "shadowBlur": 0,+ "shadowOffsetX": 0,+ "shadowOffsetY": 0,+ "richText": false,+ "renderMode": 0,+ "layer": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "5",+ "name": "Audio Page",+ "parent": "0",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 1,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 12,+ "unit": 0+ },+ "insetTop": {+ "value": 48,+ "unit": 0+ },+ "insetRight": {+ "value": 12,+ "unit": 0+ },+ "insetBottom": {+ "value": 12,+ "unit": 0+ }+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "2",+ "name": "Controls Tab",+ "parent": "0",+ "children": [+ "4",+ "3"+ ],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 33.333333333333336,+ "unit": 1+ },+ "height": {+ "value": 36,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 66.66666666666667,+ "unit": 1+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UIController",+ "data": {+ "controllers": [+ {+ "name": "$interaction",+ "pages": [+ "normal",+ "hover",+ "pressed",+ "disabled",+ "focused"+ ],+ "current": "normal"+ }+ ]+ }+ },+ {+ "type": "UIGear",+ "data": {+ "bindings": [+ {+ "controller": "$interaction",+ "component": "UIVisual",+ "property": "color",+ "pages": {+ "normal": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "hover": {+ "r": 0.28,+ "g": 0.28,+ "b": 0.32,+ "a": 1+ },+ "pressed": {+ "r": 0.18,+ "g": 0.18,+ "b": 0.22,+ "a": 1+ },+ "disabled": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 0.5+ },+ "focused": {+ "r": 0.3,+ "g": 0.34,+ "b": 0.44,+ "a": 1+ }+ }+ }+ ]+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "states": {+ "normal": "control",+ "hover": "controlHover",+ "pressed": "controlActive",+ "disabled": "control",+ "focused": "controlFocus"+ }+ }+ },+ {+ "type": "UIToggle",+ "data": {+ "isOn": false,+ "check": "4"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "4",+ "name": "Node",+ "parent": "2",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 2,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 2+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.25,+ "g": 0.56,+ "b": 0.96,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": false+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "primary"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "3",+ "name": "Label",+ "parent": "2",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Controls",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 14,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false,+ "overflow": 0,+ "lineHeight": 1.2,+ "bold": false,+ "italic": false,+ "strokeColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "strokeWidth": 0,+ "shadowColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "shadowBlur": 0,+ "shadowOffsetX": 0,+ "shadowOffsetY": 0,+ "richText": false,+ "renderMode": 0,+ "layer": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "1",+ "name": "Controls Page",+ "parent": "0",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 1,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 12,+ "unit": 0+ },+ "insetTop": {+ "value": 48,+ "unit": 0+ },+ "insetRight": {+ "value": 12,+ "unit": 0+ },+ "insetBottom": {+ "value": 12,+ "unit": 0+ }+ }+ }+ ],+ "visible": true+ }+ ]+}diff --git a/sdk/src/ui/widgets/prefabs/Tooltip.esprefab b/sdk/src/ui/widgets/prefabs/Tooltip.esprefabnew file mode 100644index 000000000..e2df6c06d--- /dev/null+++ b/sdk/src/ui/widgets/prefabs/Tooltip.esprefab@@ -0,0 +1,243 @@+{+ "version": "2",+ "name": "Tooltip",+ "rootEntityId": "0",+ "entities": [+ {+ "prefabEntityId": "0",+ "name": "Tooltip",+ "parent": null,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 0,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 140,+ "unit": 0+ },+ "height": {+ "value": 36,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 2+ },+ "insetTop": {+ "value": 0,+ "unit": 2+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Tooltip",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 14,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false,+ "overflow": 0,+ "lineHeight": 1.2,+ "bold": false,+ "italic": false,+ "strokeColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "strokeWidth": 0,+ "shadowColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "shadowBlur": 0,+ "shadowOffsetX": 0,+ "shadowOffsetY": 0,+ "richText": false,+ "renderMode": 0,+ "layer": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "control",+ "text": "text"+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UITooltip",+ "data": {+ "content": "More information about this control.",+ "stylePrefab": "",+ "hover": true,+ "focus": true,+ "longPress": true,+ "hoverDelay": 0.5,+ "longPressDelay": 0.6,+ "side": 0,+ "gap": 8,+ "avoidEdges": true,+ "maxWidth": 240+ }+ }+ ],+ "visible": true+ }+ ]+}diff --git a/sdk/src/ui/widgets/prefabs/generated.ts b/sdk/src/ui/widgets/prefabs/generated.tsindex 805f237ee..6d197b46d 100644--- a/sdk/src/ui/widgets/prefabs/generated.ts+++ b/sdk/src/ui/widgets/prefabs/generated.ts@@ -2,6 +2,2555 @@import type { PrefabData } from '../../../prefab/types';export const BUILTIN_UI_PREFABS: Record<string, PrefabData> = {+ "TabView": {+ "version": "2",+ "name": "TabView",+ "rootEntityId": "0",+ "entities": [+ {+ "prefabEntityId": "0",+ "name": "TabView",+ "parent": null,+ "children": [+ "10",+ "9",+ "6",+ "5",+ "2",+ "1"+ ],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 0,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 420,+ "unit": 0+ },+ "height": {+ "value": 240,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 2+ },+ "insetTop": {+ "value": 0,+ "unit": 2+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.16,+ "g": 0.16,+ "b": 0.18,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "surface"+ }+ },+ {+ "type": "UIToggleGroup",+ "data": {+ "allowSwitchOff": false+ }+ },+ {+ "type": "UITabView",+ "data": {+ "selectedIndex": 0,+ "tabs": [+ "10",+ "6",+ "2"+ ],+ "pages": [+ "9",+ "5",+ "1"+ ],+ "labels": [+ "Graphics",+ "Audio",+ "Controls"+ ],+ "allowSwitchOff": false,+ "vertical": false,+ "loopNavigation": true,+ "selectOnFocus": true+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "10",+ "name": "Graphics Tab",+ "parent": "0",+ "children": [+ "12",+ "11"+ ],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 33.333333333333336,+ "unit": 1+ },+ "height": {+ "value": 36,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 1+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UIController",+ "data": {+ "controllers": [+ {+ "name": "$interaction",+ "pages": [+ "normal",+ "hover",+ "pressed",+ "disabled",+ "focused"+ ],+ "current": "normal"+ }+ ]+ }+ },+ {+ "type": "UIGear",+ "data": {+ "bindings": [+ {+ "controller": "$interaction",+ "component": "UIVisual",+ "property": "color",+ "pages": {+ "normal": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "hover": {+ "r": 0.28,+ "g": 0.28,+ "b": 0.32,+ "a": 1+ },+ "pressed": {+ "r": 0.18,+ "g": 0.18,+ "b": 0.22,+ "a": 1+ },+ "disabled": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 0.5+ },+ "focused": {+ "r": 0.3,+ "g": 0.34,+ "b": 0.44,+ "a": 1+ }+ }+ }+ ]+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "states": {+ "normal": "control",+ "hover": "controlHover",+ "pressed": "controlActive",+ "disabled": "control",+ "focused": "controlFocus"+ }+ }+ },+ {+ "type": "UIToggle",+ "data": {+ "isOn": true,+ "check": "12"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "12",+ "name": "Node",+ "parent": "10",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 2,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 2+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.25,+ "g": 0.56,+ "b": 0.96,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "primary"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "11",+ "name": "Label",+ "parent": "10",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Graphics",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 14,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false,+ "overflow": 0,+ "lineHeight": 1.2,+ "bold": false,+ "italic": false,+ "strokeColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "strokeWidth": 0,+ "shadowColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "shadowBlur": 0,+ "shadowOffsetX": 0,+ "shadowOffsetY": 0,+ "richText": false,+ "renderMode": 0,+ "layer": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "9",+ "name": "Graphics Page",+ "parent": "0",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 12,+ "unit": 0+ },+ "insetTop": {+ "value": 48,+ "unit": 0+ },+ "insetRight": {+ "value": 12,+ "unit": 0+ },+ "insetBottom": {+ "value": 12,+ "unit": 0+ }+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "6",+ "name": "Audio Tab",+ "parent": "0",+ "children": [+ "8",+ "7"+ ],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 33.333333333333336,+ "unit": 1+ },+ "height": {+ "value": 36,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 33.333333333333336,+ "unit": 1+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UIController",+ "data": {+ "controllers": [+ {+ "name": "$interaction",+ "pages": [+ "normal",+ "hover",+ "pressed",+ "disabled",+ "focused"+ ],+ "current": "normal"+ }+ ]+ }+ },+ {+ "type": "UIGear",+ "data": {+ "bindings": [+ {+ "controller": "$interaction",+ "component": "UIVisual",+ "property": "color",+ "pages": {+ "normal": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "hover": {+ "r": 0.28,+ "g": 0.28,+ "b": 0.32,+ "a": 1+ },+ "pressed": {+ "r": 0.18,+ "g": 0.18,+ "b": 0.22,+ "a": 1+ },+ "disabled": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 0.5+ },+ "focused": {+ "r": 0.3,+ "g": 0.34,+ "b": 0.44,+ "a": 1+ }+ }+ }+ ]+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "states": {+ "normal": "control",+ "hover": "controlHover",+ "pressed": "controlActive",+ "disabled": "control",+ "focused": "controlFocus"+ }+ }+ },+ {+ "type": "UIToggle",+ "data": {+ "isOn": false,+ "check": "8"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "8",+ "name": "Node",+ "parent": "6",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 2,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 2+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.25,+ "g": 0.56,+ "b": 0.96,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": false+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "primary"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "7",+ "name": "Label",+ "parent": "6",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Audio",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 14,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false,+ "overflow": 0,+ "lineHeight": 1.2,+ "bold": false,+ "italic": false,+ "strokeColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "strokeWidth": 0,+ "shadowColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "shadowBlur": 0,+ "shadowOffsetX": 0,+ "shadowOffsetY": 0,+ "richText": false,+ "renderMode": 0,+ "layer": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "5",+ "name": "Audio Page",+ "parent": "0",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 1,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 12,+ "unit": 0+ },+ "insetTop": {+ "value": 48,+ "unit": 0+ },+ "insetRight": {+ "value": 12,+ "unit": 0+ },+ "insetBottom": {+ "value": 12,+ "unit": 0+ }+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "2",+ "name": "Controls Tab",+ "parent": "0",+ "children": [+ "4",+ "3"+ ],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 33.333333333333336,+ "unit": 1+ },+ "height": {+ "value": 36,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 66.66666666666667,+ "unit": 1+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UIController",+ "data": {+ "controllers": [+ {+ "name": "$interaction",+ "pages": [+ "normal",+ "hover",+ "pressed",+ "disabled",+ "focused"+ ],+ "current": "normal"+ }+ ]+ }+ },+ {+ "type": "UIGear",+ "data": {+ "bindings": [+ {+ "controller": "$interaction",+ "component": "UIVisual",+ "property": "color",+ "pages": {+ "normal": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "hover": {+ "r": 0.28,+ "g": 0.28,+ "b": 0.32,+ "a": 1+ },+ "pressed": {+ "r": 0.18,+ "g": 0.18,+ "b": 0.22,+ "a": 1+ },+ "disabled": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 0.5+ },+ "focused": {+ "r": 0.3,+ "g": 0.34,+ "b": 0.44,+ "a": 1+ }+ }+ }+ ]+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "states": {+ "normal": "control",+ "hover": "controlHover",+ "pressed": "controlActive",+ "disabled": "control",+ "focused": "controlFocus"+ }+ }+ },+ {+ "type": "UIToggle",+ "data": {+ "isOn": false,+ "check": "4"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "4",+ "name": "Node",+ "parent": "2",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 2,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 2+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.25,+ "g": 0.56,+ "b": 0.96,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": false+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "primary"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "3",+ "name": "Label",+ "parent": "2",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 0+ },+ "insetTop": {+ "value": 0,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 0+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Controls",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 14,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false,+ "overflow": 0,+ "lineHeight": 1.2,+ "bold": false,+ "italic": false,+ "strokeColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "strokeWidth": 0,+ "shadowColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "shadowBlur": 0,+ "shadowOffsetX": 0,+ "shadowOffsetY": 0,+ "richText": false,+ "renderMode": 0,+ "layer": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "1",+ "name": "Controls Page",+ "parent": "0",+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "display": 1,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 0,+ "unit": 2+ },+ "height": {+ "value": 0,+ "unit": 2+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 12,+ "unit": 0+ },+ "insetTop": {+ "value": 48,+ "unit": 0+ },+ "insetRight": {+ "value": 12,+ "unit": 0+ },+ "insetBottom": {+ "value": 12,+ "unit": 0+ }+ }+ }+ ],+ "visible": true+ }+ ]+ },+ "Tooltip": {+ "version": "2",+ "name": "Tooltip",+ "rootEntityId": "0",+ "entities": [+ {+ "prefabEntityId": "0",+ "name": "Tooltip",+ "parent": null,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "rotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "scale": {+ "x": 1,+ "y": 1,+ "z": 1+ },+ "worldPosition": {+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldRotation": {+ "w": 1,+ "x": 0,+ "y": 0,+ "z": 0+ },+ "worldScale": {+ "x": 1,+ "y": 1,+ "z": 1+ }+ }+ },+ {+ "type": "UINode",+ "data": {+ "position": 0,+ "display": 0,+ "opacity": 1,+ "pointerEvents": 0,+ "width": {+ "value": 140,+ "unit": 0+ },+ "height": {+ "value": 36,+ "unit": 0+ },+ "minWidth": {+ "value": 0,+ "unit": 2+ },+ "minHeight": {+ "value": 0,+ "unit": 2+ },+ "maxWidth": {+ "value": 0,+ "unit": 2+ },+ "maxHeight": {+ "value": 0,+ "unit": 2+ },+ "flexGrow": 0,+ "flexShrink": 1,+ "flexBasis": {+ "value": 0,+ "unit": 2+ },+ "alignSelf": 0,+ "marginLeft": {+ "value": 0,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 0,+ "unit": 2+ },+ "insetTop": {+ "value": 0,+ "unit": 2+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "fit": 0,+ "uvOffset": {+ "x": 0,+ "y": 0+ },+ "uvScale": {+ "x": 1,+ "y": 1+ },+ "sliceBorder": {+ "x": 0,+ "y": 0,+ "z": 0,+ "w": 0+ },+ "tileSize": {+ "x": 32,+ "y": 32+ },+ "fillMethod": 0,+ "fillOrigin": 0,+ "fillAmount": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Tooltip",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 14,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "align": 1,+ "verticalAlign": 1,+ "wordWrap": false,+ "overflow": 0,+ "lineHeight": 1.2,+ "bold": false,+ "italic": false,+ "strokeColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "strokeWidth": 0,+ "shadowColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "shadowBlur": 0,+ "shadowOffsetX": 0,+ "shadowOffsetY": 0,+ "richText": false,+ "renderMode": 0,+ "layer": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "control",+ "text": "text"+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UITooltip",+ "data": {+ "content": "More information about this control.",+ "stylePrefab": "",+ "hover": true,+ "focus": true,+ "longPress": true,+ "hoverDelay": 0.5,+ "longPressDelay": 0.6,+ "side": 0,+ "gap": 8,+ "avoidEdges": true,+ "maxWidth": 240+ }+ }+ ],+ "visible": true+ }+ ]+ },"VirtualJoystick": {"version": "2","name": "VirtualJoystick",@@ -4210,4 +6759,4 @@ export const BUILTIN_UI_PREFABS: Record<string, PrefabData> = {}};-export const BUILTIN_UI_WIDGET_NAMES = ["VirtualJoystick","VirtualButton","Button","Toggle","Slider","Dialog","TextInput","Progress","Dropdown","ListView","ScrollView"] as const;+export const BUILTIN_UI_WIDGET_NAMES = ["TabView","Tooltip","VirtualJoystick","VirtualButton","Button","Toggle","Slider","Dialog","TextInput","Progress","Dropdown","ListView","ScrollView"] as const;diff --git a/sdk/src/ui/widgets/tab-view.ts b/sdk/src/ui/widgets/tab-view.tsnew file mode 100644index 000000000..429f415f2--- /dev/null+++ b/sdk/src/ui/widgets/tab-view.ts@@ -0,0 +1,70 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import type { World } from '../../ecs/world';+import type { Entity } from '../../types';+import { spawnUIEntity, type UINodeInit } from '../core/compose';+import { px, percent } from '../core/dimension';+import { UITabView, type UITabViewData } from '../behavior/tab-view';+import { UIToggleGroup } from '../behavior/toggle';+import { createToggle } from './toggle';+import { themeColors } from '../theme/tokens';+import { markThemed } from '../theme/theme-style';+import { UIEventType, type UIEventQueue } from '../core/events';+import { UINode, UIDisplay } from '../core/ui-node';+import { Name } from '../../ecs/component';++export interface TabViewOptions {+ world: World;+ events: UIEventQueue;+ parent?: Entity;+ node?: UINodeInit;+ labels: readonly string[];+ selectedIndex?: number;+ tabHeight?: number;+ onChange?: (index: number, page: Entity) => void;+}+export interface TabViewHandle {+ readonly entity: Entity;+ readonly tabs: readonly Entity[];+ readonly pages: readonly Entity[];+ select(index: number): void;+ dispose(): void;+}++/** Ordinary editable Toggles and content entities, captured by the widget prefab generator. @beta */+export function createTabView(opts: TabViewOptions): TabViewHandle {+ const { world, events } = opts;+ const entity = spawnUIEntity({ world, parent: opts.parent,+ node: opts.node ?? { width: px(420), height: px(240) }, visual: { color: themeColors().surface } });+ markThemed(world, entity, { visual: 'surface' });+ world.insert(entity, UIToggleGroup, { allowSwitchOff: false });+ const tabs: Entity[] = [], pages: Entity[] = [], handles: Array<{ dispose(): void }> = [];+ const height = opts.tabHeight ?? 36;+ const selected = Math.max(0, Math.min(opts.selectedIndex ?? 0, opts.labels.length - 1));+ opts.labels.forEach((label, i) => {+ const toggle = createToggle({ world, events, parent: entity, isOn: i === selected,+ node: { position: 1, width: percent(100 / opts.labels.length), height: px(height), insetLeft: percent(i * 100 / opts.labels.length), insetTop: px(0) },+ check: { node: { position: 1, height: px(2), insetLeft: px(0), insetRight: px(0), insetBottom: px(0) } } });+ handles.push(toggle); tabs.push(toggle.entity);+ world.insert(toggle.entity, Name, { value: `${label} Tab` });+ const text = spawnUIEntity({ world, parent: toggle.entity, node: { fill: true },+ text: { content: label, color: themeColors().text } });+ markThemed(world, text, { text: 'text' });+ const page = spawnUIEntity({ world, parent: entity, node: {+ fill: true, insetTop: px(height + 12), insetLeft: px(12), insetRight: px(12), insetBottom: px(12),+ } });+ const node = world.get(page, UINode);+ world.insert(page, UINode, { ...node, display: i === selected ? UIDisplay.Flex : UIDisplay.None });+ pages.push(page);+ world.insert(page, Name, { value: `${label} Page` });+ });+ world.insert(entity, UITabView, { ...structuredClone(UITabView._default), selectedIndex: selected,+ labels: [...opts.labels], tabs, pages });+ const off = opts.onChange ? events.on(entity, UIEventType.Change, ev => {+ const { index, page } = ev.data as { index: number; page: Entity }; opts.onChange!(index, page);+ }) : undefined;+ return { entity, tabs, pages, select(index) {+ const d = world.get(entity, UITabView) as UITabViewData;+ world.insert(entity, UITabView, { ...d, selectedIndex: index });+ }, dispose() { off?.(); for (const h of handles) h.dispose(); if (world.valid(entity)) world.despawn(entity); } };+}diff --git a/sdk/src/ui/widgets/toPrefab.ts b/sdk/src/ui/widgets/toPrefab.tsindex 353d937d6..17cc55a1e 100644--- a/sdk/src/ui/widgets/toPrefab.ts+++ b/sdk/src/ui/widgets/toPrefab.ts@@ -77,6 +77,8 @@ class RecordingWorld {/** Name a captured entity for the outliner: root → widget name; a text node → Label. */function entityName(ent: RecEntity, rootId: number, widgetName: string): string {if (ent.id === rootId) return widgetName;+ const named = ent.components.find(c => c.type === 'Name')?.data.value;+ if (typeof named === 'string' && named) return named;return ent.components.some((c) => c.type === 'Text') ? 'Label' : 'Node';}@@ -106,7 +108,7 @@ export function widgetToPrefab(build: (world: World) => Entity, name: string): Pname: entityName(e, root, name),parent: e.parent,children: e.children.filter((c) => subtree.has(c)),- components: e.components,+ components: e.components.filter(c => c.type !== 'Name'),visible: true,};});diff --git a/sdk/src/ui/widgets/tooltip.ts b/sdk/src/ui/widgets/tooltip.tsnew file mode 100644index 000000000..3448283a2--- /dev/null+++ b/sdk/src/ui/widgets/tooltip.ts@@ -0,0 +1,37 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import type { World } from '../../ecs/world';+import type { Entity } from '../../types';+import { UITooltip, type UITooltipData } from '../behavior/tooltip';+import { makeWidgetInteractable } from '../input/interactable';+import { spawnUIEntity, type UINodeInit } from '../core/compose';+import { px } from '../core/dimension';+import { themeColors } from '../theme/tokens';+import { markThemed } from '../theme/theme-style';++/** Attach to an existing control without changing its input configuration. @beta */+export function attachTooltip(world: World, target: Entity, options: Partial<UITooltipData> = {}): void {+ world.insert(target, UITooltip, { ...structuredClone(UITooltip._default), ...options });+}++export interface TooltipOptions {+ world: World;+ parent?: Entity;+ node?: UINodeInit;+ content?: string;+ settings?: Partial<UITooltipData>;+}+export interface TooltipHandle {+ readonly entity: Entity;+ dispose(): void;+}+/** Palette example target. The popup is generated by the behavior at runtime. @beta */+export function createTooltip(opts: TooltipOptions): TooltipHandle {+ const entity = spawnUIEntity({ world: opts.world, parent: opts.parent,+ node: opts.node ?? { width: px(140), height: px(36) }, visual: { color: themeColors().control },+ text: { content: 'Tooltip', color: themeColors().text } });+ markThemed(opts.world, entity, { visual: 'control', text: 'text' });+ makeWidgetInteractable(opts.world, entity);+ attachTooltip(opts.world, entity, { content: opts.content ?? 'More information about this control.', ...opts.settings });+ return { entity, dispose() { if (opts.world.valid(entity)) opts.world.despawn(entity); } };+}diff --git a/sdk/tests/assets-preload.test.ts b/sdk/tests/assets-preload.test.tsindex 5481d61c0..71609e49f 100644--- a/sdk/tests/assets-preload.test.ts+++ b/sdk/tests/assets-preload.test.ts@@ -11,6 +11,9 @@ import { Assets } from '../src/asset/Assets';import { Catalog, type CatalogData } from '../src/asset/Catalog';import type { Backend } from '../src/asset/Backend';import type { AssetLoader } from '../src/asset/AssetLoader';+import { registerComponent } from '../src/ecs/component';+import { UITooltip } from '../src/ui/behavior/tooltip';+import type { SceneData } from '../src/scene/scene';vi.mock('../src/wasm/resourceManager', () => ({requireResourceManager: () => ({@@ -118,6 +121,21 @@ describe('Assets.preload', () => {expect(customLoads.filter(p => p === 'data/level.custom')).toHaveLength(1);});+ it('preloads a tooltip style prefab through component metadata and owns its lease', async () => {+ registerComponent('UITooltip', UITooltip);+ const unload = vi.fn();+ assets.register({ type: 'prefab', extensions: ['.esprefab'], load: async () => ({ data: {} }), unload });+ const scene: SceneData = { version: '1.0', name: 'Hints', entities: [+ { id: 1, name: 'Volume', parent: null, children: [], components: [+ { type: 'UITooltip', data: { stylePrefab: 'ui/Tip.esprefab' } },+ ] },+ ] };+ const result = await assets.preloadSceneAssets(scene);+ expect(result.missing).toEqual([]);+ expect(result.acquisitions?.some(a => a.type === 'prefab' && a.path === 'ui/Tip.esprefab')).toBe(true);+ result.scope.releaseAll(); expect(unload).toHaveBeenCalledTimes(1);+ });+it('reports refs whose type cannot be determined without rejecting', async () => {const { failed } = await assets.preload(['mystery/blob.xyz']);expect(failed).toEqual([diff --git a/sdk/tests/ui-tab-tooltip-wasm.test.ts b/sdk/tests/ui-tab-tooltip-wasm.test.tsnew file mode 100644index 000000000..9e8f7d158--- /dev/null+++ b/sdk/tests/ui-tab-tooltip-wasm.test.ts@@ -0,0 +1,194 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';+import { App } from '../src/app/app';+import { AppContext, setDefaultContext } from '../src/ecs/context';+import { Canvas, Disabled, Name, registerComponent } from '../src/ecs/component';+import { Schedule } from '../src/ecs/system';+import { setEditorMode, setPlayMode } from '../src/ecs/env';+import { Input, InputState } from '../src/input/input';+import { UIEventQueue } from '../src/ui/core/events';+import { UITabView, createTabViewSystem } from '../src/ui/behavior/tab-view';+import { UIToggle, UIToggleGroup, createToggleSystem } from '../src/ui/behavior/toggle';+import { UITooltip, createTooltipSystem, placeTooltip } from '../src/ui/behavior/tooltip';+import { createTabView } from '../src/ui/widgets/tab-view';+import { createTooltip } from '../src/ui/widgets/tooltip';+import { spawnUIEntity } from '../src/ui/core/compose';+import { px } from '../src/ui/core/dimension';+import { UINode, UIDisplay, UIPointerEvents } from '../src/ui/core/ui-node';+import { Text } from '../src/ui/core/text';+import { UIVisual } from '../src/ui/core/ui-visual';+import { FocusManager, FocusManagerState, Focusable } from '../src/ui/input/focusable';+import { UIControlPointers, type ControlPointer } from '../src/ui/input/control-pointers';+import { MOUSE_POINTER } from '../src/ui/input/pointerBook';+import { Interactable } from '../src/ui/input/interactable';+import { ScreenLayout, screenLayoutRect, screenProjection } from '../src/ui/core/screen-layout';+import { ScreenOverlay, defaultScreenOverlay } from '../src/ui/core/screen-overlay';+import { UICameraInfo } from '../src/ui/core/ui-camera-info';+import { cancelPrimaryPointer } from '../src/input/pointerCancellation';+import { ThemeStyle } from '../src/ui/theme/theme-style';+import { UIController } from '../src/ui/controller/ui-controller';+import { UIGear } from '../src/ui/controller/ui-gear';+import type { CppRegistry, ESEngineModule } from '../src/wasm';+import { HAS_WASM, loadWasmModule } from './helpers/loadWasm';+import { widgetToPrefab } from '../src/ui/widgets/toPrefab';+import { instantiatePrefab } from '../src/prefab';+import type { InstantiatePrefabResult } from '../src/prefab';++describe('tooltip placement', () => {+ const screen = { left: 0, right: 320, bottom: 0, top: 240 };+ it.each([0, 1, 2, 3])('keeps side %s inside the screen at all four corners', side => {+ for (const x of [0, 310]) for (const y of [0, 230]) {+ const p = placeTooltip({ left: x, right: x + 10, bottom: y, top: y + 10 }, 100, 40, side, 8, screen, true);+ expect(p.x).toBeGreaterThanOrEqual(0); expect(p.x + 100).toBeLessThanOrEqual(320);+ expect(p.y).toBeGreaterThanOrEqual(0); expect(p.y + 40).toBeLessThanOrEqual(240);+ }+ });+ it('flips to the opposite side before clamping', () => {+ expect(placeTooltip({ left: 100, right: 120, bottom: 2, top: 12 }, 100, 40, 0, 8, screen, true).y).toBe(20);+ });+});++describe.skipIf(!HAS_WASM)('TabView and Tooltip on real WASM', () => {+ let engine: ESEngineModule, registry: CppRegistry, app: App, events: UIEventQueue;+ let tooltips: ReturnType<typeof createTooltipSystem>;+ beforeAll(async () => { engine = await loadWasmModule(); });+ beforeEach(() => {+ setDefaultContext(new AppContext()); setEditorMode(false); setPlayMode(false);+ registry = new engine.Registry(); app = App.new(); app.connectCpp(registry, engine);+ events = new UIEventQueue();+ for (const c of [UITabView, UIToggle, UIToggleGroup, Focusable, ThemeStyle, UIController, UIGear, Text, Name]) registerComponent(c._name, c);+ app.insertResource(Input, new InputState()); app.insertResource(FocusManager, new FocusManagerState());+ const layout = screenLayoutRect(null, 800, 600);+ app.insertResource(ScreenLayout, layout);+ app.insertResource(ScreenOverlay, { ...defaultScreenOverlay(), active: true, projection: screenProjection(layout), vpW: 800, vpH: 600, surfaceW: 800, surfaceH: 600 });+ app.insertResource(UICameraInfo, structuredClone(UICameraInfo._default));+ app.insertResource(UIControlPointers, { pointers: new Map() });+ app.addSystemToSchedule(Schedule.Update, createTabViewSystem(app.world, events));+ app.addSystemToSchedule(Schedule.Update, createToggleSystem(app.world, events));+ tooltips = createTooltipSystem(app.world);+ app.addSystemToSchedule(Schedule.Update, tooltips.system);+ });+ afterEach(() => { tooltips.dispose(); app.quit({ keepRenderer: true }); registry.delete(); });+ const tick = async (delta = 0.1) => {+ engine.uiLayout_update(registry, -400, -300, 400, 300, true); engine.transform_update(registry);+ await app.tick(delta);+ app.getResource(Input).keysPressed.clear();+ };+ const view = () => createTabView({ world: app.world, events, labels: ['Graphics', 'Audio', 'Controls'] });+ const displays = (v: ReturnType<typeof view>) => v.pages.map(e => app.world.get(e, UINode).display);+ const target = () => {+ const root = spawnUIEntity({ world: app.world, node: { width: px(800), height: px(600) } });+ app.world.insert(root, Canvas);+ return createTooltip({ world: app.world, parent: root, content: 'Volume controls the music.' }).entity;+ };+ const pointer = (entity: number, id = MOUSE_POINTER, down = false) => {+ const p: ControlPointer = { id, down, pressed: down, entity, pressedEntity: down ? entity : null,+ layoutX: 0, layoutY: 0, worldX: 0, worldY: 0 };+ app.getResource(UIControlPointers).pointers.set(id, p); return p;+ };+ const bubbles = () => app.world.getEntitiesWithComponents([Text]).filter(e => app.world.get(e, Text).content === 'Volume controls the music.');+ it('click and programmatic selection keep ToggleGroup and page visibility in agreement', async () => {+ const v = view(); await tick(); events.emit(v.tabs[1], 'click'); await tick();+ expect(displays(v)).toEqual([1, 0, 1]); expect(app.world.get(v.entity, UITabView).selectedIndex).toBe(1);+ v.select(2); await tick(); expect(displays(v)).toEqual([1, 1, 0]);+ expect(v.tabs.map(e => app.world.get(e, UIToggle).isOn)).toEqual([false, false, true]);+ });+ it('supports all-off and does not switch a mandatory group off', async () => {+ const v = view(); await tick(); events.emit(v.tabs[0], 'click'); await tick(); expect(displays(v)).toEqual([0, 1, 1]);+ app.world.update(v.entity, UITabView, d => { d.allowSwitchOff = true; }); await tick();+ events.emit(v.tabs[0], 'click'); await tick(); expect(displays(v)).toEqual([1, 1, 1]);+ expect(app.world.get(v.entity, UITabView).selectedIndex).toBe(-1);+ });+ it('arrows, Home and End skip disabled tabs and preserve manual activation', async () => {+ const v = view(); await tick(); app.world.insert(v.tabs[1], Interactable, { enabled: false });+ const focus = app.getResource(FocusManager); focus.focus(v.tabs[0], true);+ app.getResource(Input).keysPressed.add('ArrowRight'); await tick();+ expect(focus.focusedEntity).toBe(v.tabs[2]); expect(displays(v)).toEqual([1, 1, 0]);+ app.getResource(Input).keysPressed.add('Home'); await tick(); expect(focus.focusedEntity).toBe(v.tabs[0]);+ app.world.update(v.entity, UITabView, d => { d.selectOnFocus = false; });+ app.getResource(Input).keysPressed.add('End'); await tick(); expect(focus.focusedEntity).toBe(v.tabs[2]); expect(displays(v)).toEqual([0, 1, 1]);+ events.emit(v.tabs[2], 'click'); await tick(); expect(displays(v)).toEqual([1, 1, 0]);+ });+ it('vertical navigation can stop at the edge without consuming horizontal navigation', async () => {+ const v = view(); app.world.update(v.entity, UITabView, d => { d.vertical = true; d.loopNavigation = false; }); await tick();+ const focus = app.getResource(FocusManager); focus.focus(v.tabs[0], true);+ app.getResource(Input).keysPressed.add('ArrowRight'); await tick(); expect(focus.focusedEntity).toBe(v.tabs[0]);+ app.getResource(Input).keysPressed.add('ArrowUp'); await tick(); expect(focus.focusedEntity).toBe(v.tabs[0]);+ app.getResource(Input).keysPressed.add('ArrowDown'); await tick(); expect(focus.focusedEntity).toBe(v.tabs[1]);+ });+ it('a resting keyboard focus does not override later programmatic selection', async () => {+ const v = view(); await tick(); app.getResource(FocusManager).focus(v.tabs[0], true); await tick();+ v.select(2); await tick(); await tick(); expect(displays(v)).toEqual([1, 1, 0]);+ expect(app.getResource(FocusManager).focusedEntity).toBe(v.tabs[0]);+ });+ it('rejects foreign references and recovers after an active page is deleted', async () => {+ const v = view(), foreign = spawnUIEntity({ world: app.world }); await tick();+ app.world.update(v.entity, UITabView, d => { d.pages[0] = foreign; }); await tick();+ expect(app.world.get(foreign, UINode).display).toBe(0);+ expect(app.world.get(v.entity, UITabView).selectedIndex).toBe(1);+ app.world.despawn(v.pages[1]); await tick(); expect(app.world.get(v.entity, UITabView).selectedIndex).toBe(2);+ });+ it('prefab copies remap both entity lists independently', async () => {+ registerComponent('UITabView', UITabView); registerComponent('UIToggle', UIToggle);+ const prefab = widgetToPrefab(world => createTabView({ world, events, labels: ['A', 'B'] }).entity, 'Tabs');+ const first = await instantiatePrefab(app.world, prefab), second = await instantiatePrefab(app.world, prefab);+ await tick(); const a = app.world.get(first.root, UITabView), b = app.world.get(second.root, UITabView);+ expect(new Set([...a.tabs, ...b.tabs]).size).toBe(4);+ events.emit(b.tabs[1], 'click'); await tick();+ expect(app.world.get(a.pages[0], UINode).display).toBe(0); expect(app.world.get(b.pages[0], UINode).display).toBe(1);+ });+ it('hover waits, does not intercept input and retires immediately on leave', async () => {+ const e = target(); const p = pointer(e); await tick(0.2); await tick(0.2); expect(bubbles()).toHaveLength(0);+ await tick(0.2); expect(bubbles()).toHaveLength(1);+ const canvas = app.world.getEntitiesWithComponents([Canvas]).at(-1)!;+ expect(app.world.get(canvas, UINode).pointerEvents).toBe(UIPointerEvents.None);+ expect(app.world.has(bubbles()[0], Focusable)).toBe(false); expect(app.world.has(bubbles()[0], Interactable)).toBe(false);+ p.entity = null; await tick(); expect(bubbles()).toHaveLength(0);+ });+ it('keyboard focus shows immediately and hides when a page closes', async () => {+ const e = target(); app.getResource(FocusManager).focus(e, true); await tick(); expect(bubbles()).toHaveLength(1);+ app.world.update(e, UINode, d => { d.display = UIDisplay.None; }); await tick(); expect(bubbles()).toHaveLength(0);+ });+ it.each(['drag', 'cancel', 'release'] as const)('touch %s cancels long press without modifying the captured gesture', async kind => {+ const e = target(), p = pointer(e, 7, true); await tick(0.3); expect(bubbles()).toHaveLength(0);+ if (kind === 'drag') p.layoutX = 20;+ if (kind === 'cancel') cancelPrimaryPointer(app.getResource(Input));+ if (kind === 'release') p.down = false;+ await tick(0.3); await tick(0.3); expect(bubbles()).toHaveLength(0);+ expect(p.pressedEntity).toBe(e);+ });+ it('stationary long press uses its delay and releases its popup on lift', async () => {+ const e = target(), p = pointer(e, 7, true); await tick(0.3); await tick(0.3); expect(bubbles()).toHaveLength(1);+ p.down = false; await tick(); expect(bubbles()).toHaveLength(0);+ });+ it.each(['disabled', 'removed', 'despawned'] as const)('%s targets remove popup subtrees', async kind => {+ const e = target(); pointer(e); app.world.update(e, UITooltip, d => { d.hoverDelay = 0; }); await tick(); expect(bubbles()).toHaveLength(1);+ if (kind === 'disabled') app.world.insert(e, Disabled);+ if (kind === 'removed') app.world.remove(e, UITooltip);+ if (kind === 'despawned') app.world.despawn(e);+ await tick(); expect(bubbles()).toHaveLength(0);+ });+ it('stable popups and tab views avoid rewriting unchanged geometry', async () => {+ const e = target(); pointer(e); app.world.update(e, UITooltip, d => { d.hoverDelay = 0; }); view();+ await tick(); await tick(); const insert = vi.spyOn(app.world, 'insert'); await tick();+ expect(insert.mock.calls.filter(([, c]) => c === UINode || c === Text || c === UIVisual)).toHaveLength(0);+ });+ it('late style loads cannot resurrect a tooltip after its target is hidden', async () => {+ tooltips.dispose();+ let finish: (v: InstantiatePrefabResult) => void = () => {};+ const loading = new Promise<InstantiatePrefabResult>(resolve => { finish = resolve; });+ tooltips = createTooltipSystem(app.world, { instantiate: () => loading });+ app.addSystemToSchedule(Schedule.Update, { ...tooltips.system, _name: 'LateStyleTooltipSystem' });+ const e = target(); pointer(e); app.world.update(e, UITooltip, d => { d.hoverDelay = 0; d.stylePrefab = 'Tip.esprefab'; });+ await tick(); app.world.update(e, UINode, d => { d.display = UIDisplay.None; }); await tick();+ const late = spawnUIEntity({ world: app.world, text: { content: 'late' } });+ finish({ root: late, entities: new Map([[0, late]]) }); await Promise.resolve(); await Promise.resolve();+ expect(app.world.valid(late)).toBe(false); expect(bubbles()).toHaveLength(0);+ });+ it('unbinding a page restores its original display instead of leaving it hidden', async () => {+ const v = view(); await tick(); v.select(1); await tick(); expect(displays(v)[0]).toBe(1);+ app.world.update(v.entity, UITabView, d => { d.tabs = d.tabs.slice(1); d.pages = d.pages.slice(1); }); await tick();+ expect(app.world.get(v.pages[0], UINode).display).toBe(0);+ });+});diff --git a/sdk/tests/ui-widget-prefabs.gen.test.ts b/sdk/tests/ui-widget-prefabs.gen.test.tsindex b87277174..43cd53d08 100644--- a/sdk/tests/ui-widget-prefabs.gen.test.ts+++ b/sdk/tests/ui-widget-prefabs.gen.test.ts@@ -28,6 +28,10 @@ import { Interactable } from '../src/ui/input/interactable';import { themeColors } from '../src/ui/theme/tokens';import { markThemed } from '../src/ui/theme/theme-style';import { px } from '../src/ui/core/dimension';+import { UITabView } from '../src/ui/behavior/tab-view';+import { UITooltip } from '../src/ui/behavior/tooltip';+import { createTabView } from '../src/ui/widgets/tab-view';+import { createTooltip } from '../src/ui/widgets/tooltip';const OUT_DIR = resolve(__dirname, '../src/ui/widgets/prefabs');/** Rewriting identical bytes still moves the mtime, and these are SOURCES: every@@ -70,6 +74,21 @@ afterAll(() => {});describe('UI widget prefab codegen', () => {+ it('TabView: ordered tab and page references survive prefab capture', () => {+ registerComponent('UITabView', UITabView);+ registerComponent('UIToggle', UIToggle);+ const p = generate('TabView', world => createTabView({ world, events: noEvents, labels: ['Graphics', 'Audio', 'Controls'] }).entity);+ const d = entityById(p, p.rootEntityId).components.find(c => c.type === 'UITabView')!.data;+ for (const ref of [...d.tabs as string[], ...d.pages as string[]]) expect(entityById(p, ref)).toBeDefined();+ expect(d.tabs).toHaveLength(3);+ expect(d.pages).toHaveLength(3);+ });+ it('Tooltip: persists target configuration, never a transient popup', () => {+ registerComponent('UITooltip', UITooltip);+ const p = generate('Tooltip', world => createTooltip({ world }).entity);+ expect(p.entities).toHaveLength(1);+ expect(typesOf(p, p.rootEntityId)).toContain('UITooltip');+ });it('VirtualJoystick: captures base/handle entity references for scene authoring', () => {registerComponent('VirtualJoystick', VirtualJoystick);const p = generate('VirtualJoystick', world => createVirtualJoystick({ world }).entity as number);diff --git a/tools/check-gizmo-coverage.mjs b/tools/check-gizmo-coverage.mjsindex 6e1959cc9..94de531cb 100644--- a/tools/check-gizmo-coverage.mjs+++ b/tools/check-gizmo-coverage.mjs@@ -143,6 +143,7 @@ const DISPOSITION = {'BakedLighting.atlasSize': ['not-world', 'the side of a TEXTURE in texels; what it covers in the world is every lightmapped surface at once'],'Canvas.matchWidthOrHeight': ['not-world', 'a 0..1 blend between two fits, not a length'],'UIDropdown.optionHeight': ['not-world', 'a row height inside a laid-out box, resolved by layout rather than placed'],+ 'UITooltip.maxWidth': ['not-world', 'the maximum text wrap width in layout pixels of a transient screen popup'],'VirtualJoystick.radius': ['not-world', 'control travel in local UI layout pixels; the authored base and handle draw the control'],'SpriteMask.rangeEndOrder': ['not-world', 'the last draw ORDER a mask reaches, not a distance it reaches over'],'LODGroup.lod1Size': ['not-world', 'a fraction of SCREEN height — a property of the view, not of the entity'],diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex 91a9787a9..497c6e630 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -28,6 +28,8 @@ export const NOTES_FLOOR = 'v0.65.0';* the reader recognises anyway.*/export const NOTED = {+ 'feat: add TabView and Tooltip UI controls': { note: 'UI tabs and tooltips.' },+ 'feat(editor): add TabView and Tooltip authoring and previews': { note: 'UI tabs and tooltips.' },'fix(editor): keep advanced joint property searches scoped to matching fields': { note: '3D swing/twist and six-axis joints.' },'feat: add SwingTwist and SixDOF 3D joints': { note: '3D swing/twist and six-axis joints.' },'feat: add advanced 3D joint inspector and limit gizmos': { note: '3D swing/twist and six-axis joints.' },