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 reusable TreeView and ColorPicker UI controls
yhh4f89b63bc56e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 186d67cab..b291c3d4f 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -16,7 +16,8 @@ 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.+- **Reusable UI trees and color pickers.** TreeView adapts arbitrary project records with stable IDs to the existing virtualized ListView. It supports expansion, selection, keyboard navigation, row and empty-state prefabs, and validated drop requests whose mutations remain project-owned. ColorPicker composes HSV/RGB/HEX and alpha editing with standard sliders and text inputs, per-control recent colors, and canonical RGBA change events for 2D UI, sprites and 3D materials. Both have UI Widgets presets and themed Inspectors; preview sample data never overwrites saved project data.+- **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.- **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 2ef4d678d..8128dd87d 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit 2ef4d678d9d24305d4d7a9b33400c92f61fa91d5+Subproject commit 8128dd87d987747a773a2ee983aa96082155aa17diff --git a/docs/astro/src/content/docs/ui/widgets.mdx b/docs/astro/src/content/docs/ui/widgets.mdxindex 695bbc5c4..5cfe0b9cd 100644--- a/docs/astro/src/content/docs/ui/widgets.mdx+++ b/docs/astro/src/content/docs/ui/widgets.mdx@@ -561,5 +561,97 @@ load cannot reopen a hint after its target has disappeared. Editor Preview bypasthe 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.+tabs and a volume slider with a tooltip.+++## TreeView++Drop **Tree View** from UI Widgets. The Inspector configures selection (None,+Single, Multiple), row height, indentation, drag grips, row prefab and empty-state+prefab. Its sample-data preview is temporary: save and undo still use project+content. A row prefab supplies a UINode subtree with a Text label; it is a display+view, while the wrapper owns selection and disclosure input. Runtime styles use+the regular Prefabs service. For interactive custom rows, provide a factory+`item` template and optionally `dragHandle` instead.++A tree does not require scene entities. Adapt arbitrary application records with+`getRoots`, `getChildren`, `getId`, `getLabel`, optional `isSelectable` and optional+`subscribe`. IDs must be unique strings or finite numbers, stable through+reordering. Cycles and duplicate IDs are rejected. Traversal is iterative; only+visible rows plus the ListView recycle buffer become UI entities.++```ts+import { setTreeViewData } from 'esengine';+const detach = setTreeViewData(world, treeEntity, {+ getRoots: () => project.folders,+ getChildren: folder => folder.entries,+ getId: folder => folder.key,+ getLabel: folder => folder.title,+ subscribe: changed => project.onFoldersChanged(changed),+}, {+ canDrop: request => project.canMove(request.source.id, request.target.id),+ onDrop: request => project.move(request.source.id, request.target.id, request.position),+});+// detach() restores the previous adapter. The project emits its normal data+// notification after a move; the widget does not mutate project records.+```++`createTreeView` also accepts that adapter, or an optional authored `nodes` tree+of `{ id, label, children?, selectable? }`. Its handle exposes the model after+runtime adoption, `refresh()`, `reveal(id)` and `dispose()`. Scene-placed trees use+`setTreeViewData` to receive runtime data. Mutable sources notify via `subscribe`;+the factory handle's `refresh()` is available for sources without notifications.++Disclosure controls expand/collapse; row clicks select. Ctrl/Command-click+supports multiple selection. Arrows navigate and expand/collapse, Home/End reach+the first/last selectable visible row, and Enter/Space activates the current row.+The tree occupies one Tab stop. `change` carries `{ ids }`. Collapse retains+selection by ID. A dedicated grip handles mouse/touch reordering while the row+body retains normal drag scrolling. Drop placement is `before`, `inside` or+`after`; self/descendant drops are rejected, and `drop_request` only describes an+intent. Your host validates and applies it. Appearance uses live project theme+roles or your own row views.++## ColorPicker++Drop **Color Picker** from UI Widgets. Its ordinary child controls can be edited+and saved as a project prefab. The Inspector configures the initial color, alpha,+HSV/RGB numeric format and recent-color capacity. Preview visibility does not+change scene opacity in the saved model.++```ts+import { createColorPicker } from 'esengine';+const picker = createColorPicker({ world, events, parent: canvas,+ color: { r: 0.2, g: 0.6, b: 0.9, a: 1 },+ onChange: color => project.setAccent(color),+ onHistoryChange: colors => project.savePalette(colors),+});+picker.setColor(project.accent);+```++`UIColorPicker.color` is the canonical `{ r, g, b, a }` shape, with 0..1 channels.+`change` carries `{ color }`; `history_change` carries `{ colors }`. The picker+never selects a Sprite or Material target itself and does not perform an implicit+sRGB/linear conversion. Bind the value through the target's normal color API.+`col.fromHsv` / `col.toHsv` share color math with editor fields; hue uses degrees,+saturation/value use 0..1. Hue is retained while editing gray or black.++The saturation/value plane supports pointer capture and arrow keys (Shift makes+larger steps). Hue and alpha reuse UISlider keyboard/input behavior; numeric and+HEX fields reuse TextInput. HEX accepts the engine's short or full RGB/RGBA+notation. Invalid partial text remains editable and normalizes on blur. Disabling+alpha forces an opaque value. Recent colors are local to each picker; persistence+is explicitly supplied by the host. The history area is an ordinary editable UI+container: size it to accommodate the desired palette capacity.++The composed `uiPlugin` installs both widgets for scene/prefab instances and+factory-created controls. Their views use the existing UI renderer. The picker+shares three tiny retained gradient/checker textures per app. Each picker owns a+64×64 SV image following the same color contract as sprites. Only hue changes+update its pixels; saturation/value/alpha edits reuse it. The existing content+provider restores the latest image after device loss without changing its handle.++Open **UI Controls** → `assets/scenes/trees-colors.esscene`: one tree switches+between scene, asset and quest records, and one picker drives an actual 2D Sprite+and 3D MeshRenderer color through project code. Target-device acceptance remains+separate from local WASM checks and CI screenshots.diff --git a/docs/astro/src/content/docs/zh-cn/ui/widgets.mdx b/docs/astro/src/content/docs/zh-cn/ui/widgets.mdxindex b8e58dfe7..6be3b55d9 100644--- a/docs/astro/src/content/docs/zh-cn/ui/widgets.mdx+++ b/docs/astro/src/content/docs/zh-cn/ui/widgets.mdx@@ -501,4 +501,77 @@ attachTooltip(world, musicVolume, {不会改变保存的延迟和触发设置。可在 **UI Controls** 示例中打开 `assets/scenes/tabs-tooltips.esscene` 查看场景内直接编辑的-页签和带提示的音量滑条。TreeView 和 ColorPicker 将在后续阶段补充。+页签和带提示的音量滑条。+++## TreeView++从 **UI 控件** 放置树形列表。Inspector 可配置选择模式(无 / 单选 / 多选)、+行高、层级缩进、拖放握柄、行预制体和空状态预制体。示例数据预览不进入场景文件+或撤销历史。行预制体使用普通 UINode 子树和 Text 标签,选择与展开由行容器处理;+自定义交互行可通过 `item` 模板和 `dragHandle` 工厂接口实现。++树不要求节点对应场景实体。通过 `TreeDataSource<T>` 的 `getRoots`、`getChildren`、+`getId`、`getLabel` 接入任意业务记录,可选 `isSelectable` 和变更订阅 `subscribe`。+ID 必须是唯一字符串或有限数值,重排后仍保持稳定。重复 ID 和循环引用会被拒绝。+遍历使用迭代算法;可见行和回收缓冲区复用已有 ListView 虚拟化。++```ts+import { setTreeViewData } from 'esengine';+const detach = setTreeViewData(world, treeEntity, {+ getRoots: () => project.folders,+ getChildren: folder => folder.entries,+ getId: folder => folder.key,+ getLabel: folder => folder.title,+ subscribe: changed => project.onFoldersChanged(changed),+}, {+ canDrop: request => project.canMove(request.source.id, request.target.id),+ onDrop: request => project.move(request.source.id, request.target.id, request.position),+});+```++场景中放置的控件通过 `setTreeViewData` 绑定数据;返回的清理函数恢复此前的数据适配器。+`createTreeView` 也接受同一数据源,或可选的 `{ id, label, children?, selectable? }`+节点数据。工厂句柄在运行时接入后提供 model,并支持 `refresh()`、`reveal(id)` 和清理。+可变数据源应通过 `subscribe` 通知变化;没有订阅的工厂数据源可主动 `refresh()`。++展开按钮负责展开 / 折叠,点击行负责选择。Ctrl / Command 支持多选。方向键导航和展开,+Home / End 到达首尾可选行,Enter / Space 激活当前行。整棵树占一个 Tab 焦点位置。+`change` 事件携带 `{ ids }`,折叠不丢失稳定 ID 选择。独立握柄支持鼠标和触屏拖放,+行主体仍可拖动滚动。落点为 `before` / `inside` / `after`;自身和后代落点会被拒绝。+`drop_request` 是请求,由项目校验并修改业务数据,控件不会擅自修改项目模型。++## ColorPicker++从 **UI 控件** 放置取色器。Inspector 可配置初始颜色、Alpha、HSV / RGB 数值格式+和历史色容量。外观由普通子控件组成,可编辑并保存为项目 Prefab。+编辑器预览显隐不会改变场景模型保存的透明度。++```ts+import { createColorPicker } from 'esengine';+const picker = createColorPicker({ world, events, parent: canvas,+ color: { r: 0.2, g: 0.6, b: 0.9, a: 1 },+ onChange: color => project.setAccent(color),+ onHistoryChange: colors => project.savePalette(colors),+});+```++`UIColorPicker.color` 使用引擎统一的 `{ r, g, b, a }`,通道范围 0..1。+`change` 携带 `{ color }`,`history_change` 携带 `{ colors }`。目标绑定、业务修改和+历史色持久化由项目控制;控件不内置 Sprite / Material 引用,也不隐式转换线性 / sRGB。+`col.fromHsv` 与 `col.toHsv` 供运行时和编辑器共享:色相为角度,饱和度 / 明度为 0..1。+灰色或黑色编辑过程会保留色相。++SV 平面支持指针捕获和方向键,Shift 增大步长。Hue / Alpha 复用 UISlider,数值和 HEX+复用 TextInput。HEX 支持引擎的短格式和完整 RGB / RGBA 格式;无效输入可继续编辑,+失焦后恢复规范值。禁用 Alpha 会强制不透明。历史色按控件隔离;历史色容器也是普通+可编辑 UI,容量较大时应为其安排足够空间。++统一的 `uiPlugin` 为场景、Prefab 和工厂创建的控件安装同一套行为。渲染沿用已有 UI+路径;每个应用共享三张小型渐变 / 棋盘纹理。每个取色器持有一张 64×64 SV 图像,+颜色语义与 Sprite 一致,仅色相变化时更新像素。饱和度、明度和 Alpha 编辑复用图像;+设备丢失后通过已有内容提供者恢复最新像素,纹理句柄保持稳定。++在 **UI Controls** 示例中打开 `assets/scenes/trees-colors.esscene`:同一个树切换场景、+资源、任务记录,同一个取色器通过项目代码驱动真实的 2D Sprite 和 3D MeshRenderer+颜色。本地 WASM 检查与 CI 截图不代替目标设备验收。diff --git a/docs/astro/src/data/apiStability.generated.json b/docs/astro/src/data/apiStability.generated.jsonindex 2cacc42e4..77793729f 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": 141,+ "beta": 158,"experimental": 2236,"deprecated": 3},- "total": 2492,+ "total": 2509,"subsystems": [{"id": "mobile-controls",@@ -2022,6 +2022,30 @@"minigame"]},+ {+ "name": "ColorPickerHandle",+ "kind": "interface",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },+ {+ "name": "ColorPickerOptions",+ "kind": "interface",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },{"name": "EmitterShape","kind": "enum",@@ -2938,6 +2962,102 @@"minigame"]},+ {+ "name": "TreeDataSource",+ "kind": "interface",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },+ {+ "name": "TreeDropRequest",+ "kind": "interface",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },+ {+ "name": "TreeItemId",+ "kind": "type",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },+ {+ "name": "TreeRow",+ "kind": "interface",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },+ {+ "name": "TreeViewHandle",+ "kind": "interface",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },+ {+ "name": "TreeViewModel",+ "kind": "class",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },+ {+ "name": "TreeViewNode",+ "kind": "interface",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },+ {+ "name": "TreeViewOptions",+ "kind": "interface",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },{"name": "UICameraData","kind": "interface",@@ -2962,6 +3082,30 @@"minigame"]},+ {+ "name": "UIColorPicker",+ "kind": "const",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },+ {+ "name": "UIColorPickerData",+ "kind": "interface",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },{"name": "UINode","kind": "const",@@ -3022,6 +3166,30 @@"minigame"]},+ {+ "name": "UITreeView",+ "kind": "const",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },+ {+ "name": "UITreeViewData",+ "kind": "interface",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },{"name": "UIVisual","kind": "const",@@ -3166,6 +3334,18 @@"minigame"]},+ {+ "name": "createColorPicker",+ "kind": "function",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },{"name": "createHeadlessApp","kind": "function",@@ -3202,6 +3382,18 @@"minigame"]},+ {+ "name": "createTreeView",+ "kind": "function",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },{"name": "disconnect","kind": "function",@@ -3370,6 +3562,18 @@"minigame"]},+ {+ "name": "setTreeViewData",+ "kind": "function",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },{"name": "spawnUIEntity","kind": "function",diff --git a/docs/astro/src/data/componentDocs.ts b/docs/astro/src/data/componentDocs.tsindex fd76c49dc..99180ff67 100644--- a/docs/astro/src/data/componentDocs.ts+++ b/docs/astro/src/data/componentDocs.ts@@ -101,6 +101,7 @@ export const COMPONENT_DOCS: Record<string, ComponentDoc> = {TextInput: { category: 'ui', summary: 'An editable text field with a caret, selection and IME support.', doc: 'ui/widgets', anchor: 'text-input', anchorZh: '文本输入' },Draggable: { category: 'ui', summary: 'Lets the pointer drag a UI node, optionally constrained to an axis.', doc: 'ui/interaction', anchor: 'drag--drop', anchorZh: '拖放' },DragState: { category: 'ui', summary: 'Transient per-frame geometry of a drag in progress; the drag system rebuilds it, scene saves omit it.', doc: 'ui/interaction', anchor: 'drag--drop', anchorZh: '拖放' },+ UIConsumesDrag: { category: 'ui', summary: 'Transient input ownership for drag controls: enclosing lists keep wheel input but do not start a competing drag scroll.', doc: 'ui/widgets', anchor: 'treeview', anchorZh: 'treeview' },Focusable: { category: 'ui', summary: 'Puts a widget in the keyboard focus order.', doc: 'ui/interaction', anchor: 'focus--keyboard', anchorZh: '焦点与键盘' },SafeArea: { category: 'ui', summary: 'Insets an absolute UI node clear of notches and rounded corners.', doc: 'core-concepts/screen', anchor: 'safe-areas-notches--rounded-corners', anchorZh: '安全区刘海与圆角' },ThemeStyle: { category: 'ui', summary: "Records which theme role an entity's colours came from, so a live theme swap can repaint it.", doc: 'ui/theming', anchor: 'how-widgets-consume-tokens', anchorZh: '控件如何消费令牌' },@@ -115,6 +116,8 @@ export const COMPONENT_DOCS: Record<string, ComponentDoc> = {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' },+ UITreeView: { category: 'ui', summary: 'Adapts project hierarchy data to a virtualized tree with stable IDs and host-owned drop requests.', doc: 'ui/widgets', anchor: 'treeview', anchorZh: 'treeview' },+ UIColorPicker: { category: 'ui', summary: 'HSV/RGB/HEX and alpha editing with canonical RGBA events for UI, sprites and materials.', doc: 'ui/widgets', anchor: 'colorpicker', anchorZh: 'colorpicker' },// ── 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 940926d30..110249096 100644--- a/docs/astro/src/data/components.generated.json+++ b/docs/astro/src/data/components.generated.json@@ -5467,6 +5467,121 @@"scale.z"]},+ {+ "name": "UIColorPicker",+ "source": "ts",+ "fields": [+ {+ "key": "color",+ "type": "Color",+ "default": "#3790e0"+ },+ {+ "key": "alphaEnabled",+ "type": "boolean",+ "default": "true"+ },+ {+ "key": "format",+ "type": "enum",+ "default": "HSV + HEX",+ "values": [+ "HSV + HEX",+ "RGB + HEX"+ ]+ },+ {+ "key": "rememberColors",+ "type": "boolean",+ "default": "true"+ },+ {+ "key": "historyLimit",+ "type": "number",+ "default": "8",+ "range": "0–32, step 1"+ },+ {+ "key": "history",+ "type": "array",+ "default": "empty"+ },+ {+ "key": "sv",+ "type": "Entity",+ "default": "none"+ },+ {+ "key": "alphaRamp",+ "type": "Entity",+ "default": "none"+ },+ {+ "key": "cursor",+ "type": "Entity",+ "default": "none"+ },+ {+ "key": "hue",+ "type": "Entity",+ "default": "none"+ },+ {+ "key": "alpha",+ "type": "Entity",+ "default": "none"+ },+ {+ "key": "fields",+ "type": "Entity",+ "default": ""+ },+ {+ "key": "hex",+ "type": "Entity",+ "default": "none"+ },+ {+ "key": "historyRoot",+ "type": "Entity",+ "default": "none"+ },+ {+ "key": "rememberButton",+ "type": "Entity",+ "default": "none"+ },+ {+ "key": "preview",+ "type": "Entity",+ "default": "none"+ }+ ],+ "animatable": [+ "color.r",+ "color.g",+ "color.b",+ "color.a",+ "format",+ "historyLimit",+ "sv",+ "alphaRamp",+ "cursor",+ "hue",+ "alpha",+ "hex",+ "historyRoot",+ "rememberButton",+ "preview"+ ]+ },+ {+ "name": "UIConsumesDrag",+ "source": "ts",+ "fields": [],+ "tag": true,+ "transient": true+ },{"name": "UIController","source": "ts",@@ -5986,6 +6101,69 @@"maxWidth"]},+ {+ "name": "UITreeView",+ "source": "ts",+ "fields": [+ {+ "key": "nodes",+ "type": "array",+ "default": "empty"+ },+ {+ "key": "expandedIds",+ "type": "array",+ "default": "empty"+ },+ {+ "key": "selectedIds",+ "type": "array",+ "default": "empty"+ },+ {+ "key": "selectionMode",+ "type": "enum",+ "default": "Single",+ "values": [+ "None",+ "Single",+ "Multiple"+ ]+ },+ {+ "key": "rowHeight",+ "type": "number",+ "default": "32",+ "range": "≥ 12, step 1"+ },+ {+ "key": "indent",+ "type": "number",+ "default": "20",+ "range": "≥ 0, step 1"+ },+ {+ "key": "dragEnabled",+ "type": "boolean",+ "default": "false"+ },+ {+ "key": "rowPrefab",+ "type": "Asset<prefab>",+ "default": "none"+ },+ {+ "key": "emptyPrefab",+ "type": "Asset<prefab>",+ "default": "none"+ }+ ],+ "animatable": [+ "selectionMode",+ "rowHeight",+ "indent"+ ]+ },{"name": "UIVisual","source": "cpp",diff --git a/examples/ui-controls/assets/scenes/trees-colors.esscene b/examples/ui-controls/assets/scenes/trees-colors.esscenenew file mode 100644index 000000000..2d30e1dcc--- /dev/null+++ b/examples/ui-controls/assets/scenes/trees-colors.esscene@@ -0,0 +1,5287 @@+{+ "version": 4,+ "name": "Trees and Colors",+ "entities": [+ {+ "id": 0,+ "name": "Camera",+ "parent": null,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 500+ }+ }+ },+ {+ "type": "Camera",+ "data": {+ "projectionType": 1,+ "orthoSize": 320,+ "isActive": true,+ "priority": 0+ }+ }+ ],+ "visible": true+ },+ {+ "id": 1,+ "name": "Canvas",+ "parent": null,+ "children": [+ 10,+ 11,+ 12,+ 13,+ 15,+ 16,+ 41,+ 42,+ 43,+ 44,+ 45+ ],+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "Canvas",+ "data": {+ "designResolution": {+ "x": 960,+ "y": 640+ },+ "scaleMode": 2+ }+ },+ {+ "type": "UINode",+ "data": {}+ }+ ],+ "visible": true+ },+ {+ "id": 10,+ "name": "Title",+ "parent": 1,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 26,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetTop": {+ "value": 20,+ "unit": 0+ },+ "height": {+ "value": 48,+ "unit": 0+ },+ "width": {+ "value": 880,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "TreeView + ColorPicker",+ "fontSize": 24,+ "align": 0,+ "wordWrap": false,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true+ },+ {+ "id": 11,+ "name": "Help",+ "parent": 1,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 26,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetTop": {+ "value": 59,+ "unit": 0+ },+ "height": {+ "value": 28,+ "unit": 0+ },+ "width": {+ "value": 880,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "One tree, arbitrary project data. One color, shared by 2D and 3D.",+ "fontSize": 14,+ "align": 0,+ "wordWrap": false,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true+ },+ {+ "id": 12,+ "name": "ContentTree",+ "parent": 1,+ "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": 350,+ "unit": 0+ },+ "height": {+ "value": 350,+ "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": 26,+ "unit": 0+ },+ "insetTop": {+ "value": 132,+ "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": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UITreeView",+ "data": {+ "nodes": [+ {+ "id": "world",+ "label": "World",+ "children": [+ {+ "id": "environment",+ "label": "Environment / 3D",+ "children": [+ {+ "id": "terrain",+ "label": "Terrain"+ },+ {+ "id": "light",+ "label": "KeyLight"+ }+ ]+ },+ {+ "id": "hud",+ "label": "HUD / 2D",+ "children": [+ {+ "id": "portrait",+ "label": "Portrait / Sprite"+ },+ {+ "id": "health",+ "label": "HealthBar / UI"+ }+ ]+ }+ ]+ }+ ],+ "expandedIds": [+ "world",+ "environment",+ "hud"+ ],+ "selectedIds": [],+ "selectionMode": 1,+ "rowHeight": 32,+ "indent": 20,+ "dragEnabled": true,+ "rowPrefab": "",+ "emptyPrefab": ""+ }+ }+ ],+ "visible": true+ },+ {+ "id": 13,+ "name": "DataSource",+ "parent": 1,+ "children": [+ 14+ ],+ "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": 350,+ "unit": 0+ },+ "height": {+ "value": 28,+ "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": 26,+ "unit": 0+ },+ "insetTop": {+ "value": 92,+ "unit": 0+ },+ "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": "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"+ ],+ "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+ }+ }+ }+ ]+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "states": {+ "normal": "control",+ "hover": "controlHover",+ "pressed": "controlActive"+ }+ }+ },+ {+ "type": "UIDropdown",+ "data": {+ "options": [+ "Scene / 2D + 3D",+ "Asset folders",+ "Quest groups"+ ],+ "selectedIndex": 0,+ "optionHeight": 30,+ "label": 14+ }+ }+ ],+ "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": "Scene / 2D + 3D",+ "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": "ColorHeading",+ "parent": 1,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 414,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetTop": {+ "value": 94,+ "unit": 0+ },+ "height": {+ "value": 32,+ "unit": 0+ },+ "width": {+ "value": 280,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Color",+ "fontSize": 16,+ "align": 0,+ "wordWrap": false,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true+ },+ {+ "id": 16,+ "name": "AccentPicker",+ "parent": 1,+ "children": [+ 17,+ 19,+ 22,+ 26,+ 27,+ 28,+ 29,+ 30,+ 31,+ 32,+ 33,+ 34,+ 35,+ 37,+ 38+ ],+ "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": 280,+ "unit": 0+ },+ "height": {+ "value": 412,+ "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": 414,+ "unit": 0+ },+ "insetTop": {+ "value": 122,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.14,+ "g": 0.14,+ "b": 0.16,+ "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": "surfaceElevated"+ }+ },+ {+ "type": "UIColorPicker",+ "data": {+ "color": {+ "r": 0.216,+ "g": 0.565,+ "b": 0.878,+ "a": 1+ },+ "alphaEnabled": true,+ "format": 0,+ "rememberColors": true,+ "historyLimit": 8,+ "history": [],+ "sv": 17,+ "alphaRamp": 24,+ "cursor": 18,+ "hue": 19,+ "alpha": 22,+ "fields": [+ 27,+ 29,+ 31,+ 33+ ],+ "hex": 34,+ "historyRoot": 38,+ "rememberButton": 35,+ "preview": 37+ }+ }+ ],+ "visible": true+ },+ {+ "id": 17,+ "name": "SaturationValue",+ "parent": 16,+ "children": [+ 18+ ],+ "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": 168,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 14,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "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": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ }+ ],+ "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": 18,+ "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": -9,+ "unit": 0+ },+ "marginTop": {+ "value": -9,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 75,+ "unit": 1+ },+ "insetTop": {+ "value": 12,+ "unit": 1+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "\u25cb",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 16,+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "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": 1,+ "shadowColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "shadowBlur": 0,+ "shadowOffsetX": 0,+ "shadowOffsetY": 0,+ "richText": false,+ "renderMode": 0,+ "layer": 0,+ "enabled": true+ }+ }+ ],+ "visible": true+ },+ {+ "id": 19,+ "name": "Hue",+ "parent": 16,+ "children": [+ 20,+ 21+ ],+ "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": 12,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 194,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "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": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UISlider",+ "data": {+ "min": 0,+ "max": 360,+ "step": 0,+ "value": 208.36858006042303,+ "fill": 20,+ "handle": 21+ }+ }+ ],+ "visible": true+ },+ {+ "id": 20,+ "name": "Node",+ "parent": 19,+ "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.5788016112789529,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "primary"+ }+ }+ ],+ "visible": true+ },+ {+ "id": 21,+ "name": "Node",+ "parent": 19,+ "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": 6,+ "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": -3,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 57.88016112789529,+ "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": 22,+ "name": "Alpha",+ "parent": 16,+ "children": [+ 23,+ 25+ ],+ "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": 12,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 218,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "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": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UISlider",+ "data": {+ "min": 0,+ "max": 1,+ "step": 0,+ "value": 1,+ "fill": 23,+ "handle": 25+ }+ }+ ],+ "visible": true+ },+ {+ "id": 23,+ "name": "Node",+ "parent": 22,+ "children": [+ 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": 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": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "primary"+ }+ }+ ],+ "visible": true+ },+ {+ "id": 24,+ "name": "Node",+ "parent": 23,+ "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": 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+ }+ }+ ],+ "visible": true+ },+ {+ "id": 25,+ "name": "Node",+ "parent": 22,+ "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": 6,+ "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": -3,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 100,+ "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": 26,+ "name": "ColorChannelLabel0",+ "parent": 16,+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 16,+ "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": 5,+ "unit": 1+ },+ "insetTop": {+ "value": 246,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "H \u00b0",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 11,+ "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": 27,+ "name": "ColorChannel0",+ "parent": 16,+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 27,+ "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": 5,+ "unit": 1+ },+ "insetTop": {+ "value": 264,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "TextInput",+ "data": {+ "value": "",+ "placeholder": "",+ "placeholderI18nKey": "",+ "placeholderColor": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 0.5+ },+ "fontFamily": "",+ "fontSize": 12,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "backgroundColor": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "padding": 6,+ "maxLength": 0,+ "multiline": false,+ "password": false,+ "readOnly": false,+ "focused": false,+ "cursorPos": 0,+ "renderMode": 0+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "input": {+ "background": "control",+ "text": "text",+ "placeholder": "text"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "id": 28,+ "name": "ColorChannelLabel1",+ "parent": 16,+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 16,+ "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": 28,+ "unit": 1+ },+ "insetTop": {+ "value": 246,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "S %",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 11,+ "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": 29,+ "name": "ColorChannel1",+ "parent": 16,+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 27,+ "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": 28,+ "unit": 1+ },+ "insetTop": {+ "value": 264,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "TextInput",+ "data": {+ "value": "",+ "placeholder": "",+ "placeholderI18nKey": "",+ "placeholderColor": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 0.5+ },+ "fontFamily": "",+ "fontSize": 12,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "backgroundColor": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "padding": 6,+ "maxLength": 0,+ "multiline": false,+ "password": false,+ "readOnly": false,+ "focused": false,+ "cursorPos": 0,+ "renderMode": 0+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "input": {+ "background": "control",+ "text": "text",+ "placeholder": "text"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "id": 30,+ "name": "ColorChannelLabel2",+ "parent": 16,+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 16,+ "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": 51,+ "unit": 1+ },+ "insetTop": {+ "value": 246,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "V %",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 11,+ "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": 31,+ "name": "ColorChannel2",+ "parent": 16,+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 27,+ "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": 51,+ "unit": 1+ },+ "insetTop": {+ "value": 264,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "TextInput",+ "data": {+ "value": "",+ "placeholder": "",+ "placeholderI18nKey": "",+ "placeholderColor": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 0.5+ },+ "fontFamily": "",+ "fontSize": 12,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "backgroundColor": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "padding": 6,+ "maxLength": 0,+ "multiline": false,+ "password": false,+ "readOnly": false,+ "focused": false,+ "cursorPos": 0,+ "renderMode": 0+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "input": {+ "background": "control",+ "text": "text",+ "placeholder": "text"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "id": 32,+ "name": "ColorChannelLabel3",+ "parent": 16,+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 16,+ "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": 74,+ "unit": 1+ },+ "insetTop": {+ "value": 246,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "A %",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 11,+ "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": 33,+ "name": "ColorChannel3",+ "parent": 16,+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 27,+ "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": 74,+ "unit": 1+ },+ "insetTop": {+ "value": 264,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "TextInput",+ "data": {+ "value": "",+ "placeholder": "",+ "placeholderI18nKey": "",+ "placeholderColor": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 0.5+ },+ "fontFamily": "",+ "fontSize": 12,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "backgroundColor": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "padding": 6,+ "maxLength": 0,+ "multiline": false,+ "password": false,+ "readOnly": false,+ "focused": false,+ "cursorPos": 0,+ "renderMode": 0+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "input": {+ "background": "control",+ "text": "text",+ "placeholder": "text"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "id": 34,+ "name": "ColorHex",+ "parent": 16,+ "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": 28,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 303,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "TextInput",+ "data": {+ "value": "#3790e0ff",+ "placeholder": "",+ "placeholderI18nKey": "",+ "placeholderColor": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 0.5+ },+ "fontFamily": "",+ "fontSize": 12,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "backgroundColor": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "padding": 6,+ "maxLength": 0,+ "multiline": false,+ "password": false,+ "readOnly": false,+ "focused": false,+ "cursorPos": 9,+ "renderMode": 0+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "input": {+ "background": "control",+ "text": "text",+ "placeholder": "text"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "id": 35,+ "name": "Node",+ "parent": 16,+ "children": [+ 36+ ],+ "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": 104,+ "unit": 0+ },+ "height": {+ "value": 24,+ "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": 343,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "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"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "id": 36,+ "name": "Label",+ "parent": 35,+ "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": "+ Remember",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 11,+ "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": 37,+ "name": "Node",+ "parent": 16,+ "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": 32,+ "unit": 0+ },+ "height": {+ "value": 24,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 343,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.216,+ "g": 0.565,+ "b": 0.878,+ "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+ }+ }+ ],+ "visible": true+ },+ {+ "id": 38,+ "name": "Node",+ "parent": 16,+ "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": 22,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 378,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ }+ ],+ "visible": true+ },+ {+ "id": 41,+ "name": "SpriteHeading",+ "parent": 1,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 742,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetTop": {+ "value": 126,+ "unit": 0+ },+ "height": {+ "value": 28,+ "unit": 0+ },+ "width": {+ "value": 190,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "2D / Sprite",+ "fontSize": 14,+ "align": 0,+ "wordWrap": false,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true+ },+ {+ "id": 42,+ "name": "MeshHeading",+ "parent": 1,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 742,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetTop": {+ "value": 306,+ "unit": 0+ },+ "height": {+ "value": 28,+ "unit": 0+ },+ "width": {+ "value": 190,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "3D / Material",+ "fontSize": 14,+ "align": 0,+ "wordWrap": false,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true+ },+ {+ "id": 43,+ "name": "BindingHint",+ "parent": 1,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 742,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetTop": {+ "value": 470,+ "unit": 0+ },+ "height": {+ "value": 22,+ "unit": 0+ },+ "width": {+ "value": 190,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "RGBA change -> project bindings",+ "fontSize": 11,+ "align": 0,+ "wordWrap": false,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true+ },+ {+ "id": 44,+ "name": "Footer",+ "parent": 1,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 26,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetTop": {+ "value": 568,+ "unit": 0+ },+ "height": {+ "value": 26,+ "unit": 0+ },+ "width": {+ "value": 900,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Arrows navigate. Disclosure expands. Drag the grip to request a move.",+ "fontSize": 13,+ "align": 0,+ "wordWrap": false,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true+ },+ {+ "id": 45,+ "name": "SelectionStatus",+ "parent": 1,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "UINode",+ "data": {+ "position": 1,+ "insetLeft": {+ "value": 26,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetTop": {+ "value": 595,+ "unit": 0+ },+ "height": {+ "value": 24,+ "unit": 0+ },+ "width": {+ "value": 900,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "Preview samples never overwrite saved scene data.",+ "fontSize": 12,+ "align": 0,+ "wordWrap": false,+ "color": {+ "r": 0.87,+ "g": 0.89,+ "b": 0.94,+ "a": 1+ }+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "text": "text"+ }+ }+ ],+ "visible": true+ },+ {+ "id": 46,+ "name": "SpriteSample",+ "parent": null,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 350,+ "y": 90,+ "z": 0+ }+ }+ },+ {+ "type": "Sprite",+ "data": {+ "size": {+ "x": 90,+ "y": 90+ },+ "color": {+ "r": 0.216,+ "g": 0.565,+ "b": 0.878,+ "a": 1+ }+ }+ }+ ],+ "visible": true+ },+ {+ "id": 47,+ "name": "MaterialSample",+ "parent": null,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 350,+ "y": -82,+ "z": 0+ },+ "scale": {+ "x": 0.9,+ "y": 0.9,+ "z": 0.9+ }+ }+ },+ {+ "type": "MeshRenderer",+ "data": {+ "mesh": "builtin:sphere",+ "lit": true,+ "opaque": true,+ "cullBackfaces": true,+ "color": {+ "r": 0.216,+ "g": 0.565,+ "b": 0.878,+ "a": 1+ }+ }+ }+ ],+ "visible": true+ },+ {+ "id": 48,+ "name": "Sun",+ "parent": null,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {}+ },+ {+ "type": "Light",+ "data": {+ "type": 1,+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "a": 1+ },+ "intensity": 1.2,+ "direction": {+ "x": 0.5,+ "y": -0.5+ },+ "enabled": true+ }+ }+ ],+ "visible": true+ }+ ]+}diff --git a/examples/ui-controls/assets/scenes/trees-colors.esscene.meta b/examples/ui-controls/assets/scenes/trees-colors.esscene.metanew file mode 100644index 000000000..aa8633981--- /dev/null+++ b/examples/ui-controls/assets/scenes/trees-colors.esscene.meta@@ -0,0 +1,8 @@+{+ "uuid": "abc44917-69b1-4f78-8ece-3bf2813fdae9",+ "version": "2.0",+ "type": "scene",+ "importer": {+ "autoMigrate": true+ }+}diff --git a/examples/ui-controls/src/main.ts b/examples/ui-controls/src/main.tsindex 5ba15ccea..29e114933 100644--- a/examples/ui-controls/src/main.ts+++ b/examples/ui-controls/src/main.ts@@ -5,6 +5,8 @@ import { addStartupSystem, addSystemToSchedule, Schedule } from 'esengine';import { wireSystem } from './systems/wire';import { controlsSystem } from './systems/controls';+import { collectionsSystem } from './systems/collections';addSystemToSchedule(Schedule.Update, wireSystem);addSystemToSchedule(Schedule.Update, controlsSystem);+addSystemToSchedule(Schedule.Update, collectionsSystem);diff --git a/examples/ui-controls/src/systems/collections.ts b/examples/ui-controls/src/systems/collections.tsnew file mode 100644index 000000000..5ed80188a--- /dev/null+++ b/examples/ui-controls/src/systems/collections.ts@@ -0,0 +1,82 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import {+ defineSystem, GetWorld, Res, UIEvents, UITreeView, UIColorPicker, UIDropdown,+ UIEventType, Sprite, MeshRenderer, Name, Text, setTreeViewData,+ type World, type UIEventQueue, type TreeDataSource, type TreeDropRequest,+} from 'esengine';++// Project records deliberately use a different shape from TreeViewNode. The+// adapter is the only place that knows these domain keys and child collections.+interface Entry { key: string; title: string; entries?: Entry[] }+const DATASETS: readonly Entry[][] = [+ [{ key: 'world', title: 'World', entries: [+ { key: 'environment', title: 'Environment / 3D', entries: [{ key: 'terrain', title: 'Terrain' }, { key: 'light', title: 'KeyLight' }] },+ { key: 'hud', title: 'HUD / 2D', entries: [{ key: 'portrait', title: 'Portrait / Sprite' }, { key: 'health', title: 'HealthBar / UI' }] },+ ] }],+ [{ key: 'assets', title: 'Assets', entries: [+ { key: 'art', title: 'Art', entries: [{ key: 'sprite', title: 'player.png' }, { key: 'model', title: 'character.glb' }] },+ { key: 'audio', title: 'Audio', entries: [{ key: 'music', title: 'ambient.ogg' }] },+ ] }],+ [{ key: 'quests', title: 'Quest log', entries: [+ { key: 'main', title: 'Main quests', entries: [{ key: 'camp', title: 'Reach the camp' }, { key: 'ruins', title: 'Explore the ruins' }] },+ { key: 'side', title: 'Side quests', entries: [{ key: 'herbs', title: 'Collect herbs / 0 of 5' }] },+ ] }],+];+interface State { tree: number; dropdown: number; picker: number; sprite: number; mesh: number; status: number; index: number; color: string; off?: () => void }+const states = new WeakMap<World, State>();++function bind(world: World, state: State, index: number): void {+ state.off?.(); state.index = index;+ const roots: Entry[] = structuredClone(DATASETS[index] ?? DATASETS[0]);+ const listeners = new Set<() => void>();+ const source: TreeDataSource<Entry> = {+ getRoots: () => roots, getChildren: item => item.entries ?? [], getId: item => item.key, getLabel: item => item.title,+ subscribe(listener) { listeners.add(listener); return () => { listeners.delete(listener); }; },+ };+ const lookup = (key: string): { item: Entry; siblings: Entry[] } | undefined => {+ const stack = [roots]; while (stack.length) {+ const siblings = stack.pop()!;+ for (const item of siblings) { if (item.key === key) return { item, siblings }; if (item.entries) stack.push(item.entries); }+ }+ return undefined;+ };+ // This is project policy. The engine validates cycles and emits an intent;+ // only the host adapter decides how a domain record should actually move.+ const move = (request: TreeDropRequest<Entry>): void => {+ const source = lookup(String(request.source.id)), target = lookup(String(request.target.id)); if (!source || !target) return;+ source.siblings.splice(source.siblings.indexOf(source.item), 1);+ if (request.position === 'inside') (target.item.entries ??= []).push(source.item);+ else target.siblings.splice(target.siblings.indexOf(target.item) + (request.position === 'after' ? 1 : 0), 0, source.item);+ for (const listener of listeners) listener();+ };+ state.off = setTreeViewData(world, state.tree, source, { onDrop: move });+ const expandedIds: string[] = [], stack = [...roots];+ while (stack.length) { const item = stack.pop()!; if (item.entries?.length) { expandedIds.push(item.key); stack.push(...item.entries); } }+ world.update(state.tree, UITreeView, data => { data.expandedIds = expandedIds; data.selectedIds = []; });+}++export const collectionsSystem = defineSystem([GetWorld(), Res(UIEvents)], (world: World, events: UIEventQueue) => {+ let state = states.get(world);+ if (!state || !world.valid(state.tree)) {+ const named = new Map(world.getEntitiesWithComponents([Name]).map(entity => [world.get(entity, Name).value, entity]));+ const tree = named.get('ContentTree'), picker = named.get('AccentPicker'), dropdown = named.get('DataSource');+ const sprite = named.get('SpriteSample'), mesh = named.get('MaterialSample'), status = named.get('SelectionStatus');+ if (tree == null || picker == null || dropdown == null || sprite == null || mesh == null || status == null) return;+ state = { tree, picker, dropdown, sprite, mesh, status, index: -1, color: '' }; states.set(world, state);+ }+ const index = world.get(state.dropdown, UIDropdown).selectedIndex;+ if (index !== state.index) bind(world, state, index);+ const color = world.get(state.picker, UIColorPicker).color, revision = JSON.stringify(color);+ if (state.color !== revision) {+ state.color = revision;+ if (world.valid(state.sprite)) world.update(state.sprite, Sprite, sprite => { sprite.color = { ...color }; });+ if (world.valid(state.mesh)) world.update(state.mesh, MeshRenderer, mesh => { mesh.color = { ...color }; mesh.opaque = color.a >= 1; });+ }+ // Expose the event contract in the sample without coupling the control to a+ // gameplay type. Other projects can route this to their own bindings.+ for (const event of events.query(UIEventType.Change)) if (event.target === state.tree) {+ const ids = (event.data as { ids: Array<string | number> }).ids;+ if (world.valid(state.status)) world.update(state.status, Text, text => { text.content = `Selected: ${ids.join(', ') || 'none'}`; });+ }+}, { name: 'CollectionsExampleSystem', runAfter: ['UITreeViewSystem', 'UIColorPickerSystem'] });diff --git a/sdk/etc/index.api.md b/sdk/etc/index.api.mdindex 4640f254b..1aa3aa2bf 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 · 129 beta · 1612 experimental · 3 deprecated+Symbols: 115 public · 146 beta · 1612 experimental · 3 deprecated## ABI_LAYOUT_HASH — const @experimental```@@ -1390,7 +1390,7 @@ Record<string, PrefabData>## BUILTIN_UI_WIDGET_NAMES — const @experimental```-readonly ["TabView", "Tooltip", "VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]+readonly ["TreeView", "ColorPicker", "TabView", "Tooltip", "VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]```## BUNDLE_MODES — const @experimental@@ -2431,6 +2431,30 @@ g: numberr: number```+## ColorPickerHandle — interface @beta+```+dispose: () => void+entity: number+getColor: () => Color+setColor: (color: Color) => void+```++## ColorPickerOptions — interface @beta+```+alphaEnabled: boolean | undefined+color: Color | undefined+events: UIEventQueue+format: number | undefined+history: readonly Color[] | undefined+historyLimit: number | undefined+node: UINodeInit | undefined+onChange: ((color: Color) => void) | undefined+onHistoryChange: ((colors: readonly Color[]) => void) | undefined+parent: number | undefined+rememberColors: boolean | undefined+world: World+```+## ColorRole — type @experimental```keyof ThemeColors@@ -9516,6 +9540,96 @@ onStart: (() => void) | undefinedtransition: "none" | "fade" | undefined```+## TreeDataSource — interface @beta+```+getChildren: (item: T) => readonly T[]+getId: (item: T) => TreeItemId+getLabel: (item: T) => string+getRoots: () => readonly T[]+isSelectable: ((item: T) => boolean) | undefined+subscribe: ((listener: () => void) => Unsubscribe) | undefined+```++## TreeDropRequest — interface @beta+```+position: "before" | "inside" | "after"+source: TreeRow<T>+target: TreeRow<T>+```++## TreeItemId — type @beta+```+string | number+```++## TreeRow — interface @beta+```+depth: number+expanded: boolean+hasChildren: boolean+id: TreeItemId+item: T+parentId: TreeItemId | null+selectable: boolean+selected: boolean+```++## TreeViewHandle — interface @beta+```+dispose: () => void+entity: number+getModel: () => TreeViewModel<T> | undefined+refresh: () => void+reveal: (id: TreeItemId) => void+```++## TreeViewModel — class @beta+```+canDrop: (request: TreeDropRequest<T>) => boolean+dispose: () => void+expandedIds: readonly TreeItemId[]+getCount: () => number+getItem: (index: number) => TreeRow<T>+getItemId: (_index: number, row: TreeRow<T>) => TreeItemId+getNode: (id: TreeItemId) => TreeRow<T> | undefined+indexOf: (id: TreeItemId) => number+isSelected: (id: TreeItemId) => boolean+refresh: () => void+reveal: (id: TreeItemId) => void+select: (ids: readonly TreeItemId[], mode?: number) => void+selectedIds: readonly TreeItemId[]+setExpanded: (ids: readonly TreeItemId[]) => void+source: TreeDataSource<T>+subscribe: (listener: (change: DataSourceChange) => void) => Unsubscribe+toggle: (id: TreeItemId) => void+static new <T>(source: TreeDataSource<T>, expanded?: readonly TreeItemId[]): TreeViewModel<T>+static prototype: TreeViewModel<any>+```++## TreeViewNode — interface @beta+```+children: TreeViewNode[] | undefined+id: string+label: string+selectable: boolean | undefined+```++## TreeViewOptions — interface @beta+```+canDrop: ((request: TreeDropRequest<T>) => boolean) | undefined+data: TreeDataSource<T> | undefined+dragHandle: ((rowEntity: Entity) => Entity) | undefined+events: UIEventQueue+item: ListItemTemplate<TreeRow<T>> | undefined+node: UINodeInit | undefined+nodes: TreeViewNode[] | undefined+onChange: ((ids: readonly TreeItemId[]) => void) | undefined+onDrop: ((request: TreeDropRequest<T>) => void) | undefined+parent: number | undefined+settings: Partial<Omit<UITreeViewData, "nodes">> | undefined+world: World+```+## Tween — const @experimental```ResourceDef<TweenAPI>@@ -9636,6 +9750,31 @@ worldTop: numberResourceDef<UICameraData>```+## UIColorPicker — const @beta+```+ComponentDef<UIColorPickerData>+```++## UIColorPickerData — interface @beta+```+alpha: number+alphaEnabled: boolean+alphaRamp: number+color: Color+cursor: number+fields: number[]+format: number+hex: number+history: Color[]+historyLimit: number+historyRoot: number+hue: number+preview: number+rememberButton: number+rememberColors: boolean+sv: number+```+## UIController — const @experimental```ComponentDef<UIControllerData>@@ -9934,6 +10073,24 @@ side: numberstylePrefab: string```+## UITreeView — const @beta+```+ComponentDef<UITreeViewData>+```++## UITreeViewData — interface @beta+```+dragEnabled: boolean+emptyPrefab: string+expandedIds: (string | number)[]+indent: number+nodes: TreeViewNode[]+rowHeight: number+rowPrefab: string+selectedIds: (string | number)[]+selectionMode: number+```+## UIVisibilityPlugin — class @experimental```build: (app: App) => void@@ -11162,7 +11319,7 @@ MotionDriver<AnimatorBlend2DMotion>## col — const @experimental```-{ readonly create: (r?: number, g?: number, b?: number, a?: number) => Color; readonly rgb: (r: number, g: number, b: number) => Color; readonly from255: (r: number, g: number, b: number, a?: number) => Color; readonly clone: (c: Color) => Color; readonly lerp: (a: Color, b: Color, t: number) => Color; readonly withAlpha: (c: Color, a: number) => Color; readonly multiply: (a: Color, b: Color) => Color; readonly scaleRgb: (c: Color, s: number) => Color; readonly fromHex: (hex: string) => Color; readonly toHex: (c: Color, withAlpha?: boolean) => string; readonly equals: (a: Color, b: Color, epsilon?: number) => boolean; }+{ readonly create: (r?: number, g?: number, b?: number, a?: number) => Color; readonly rgb: (r: number, g: number, b: number) => Color; readonly from255: (r: number, g: number, b: number, a?: number) => Color; readonly clone: (c: Color) => Color; readonly fromHsv: (h: number, s: number, v: number, a?: number) => Color; readonly toHsv: (color: Color, fallbackHue?: number) => { h: number; s: number; v: number; }; readonly lerp: (a: Color, b: Color, t: number) => Color; readonly withAlpha: (c: Color, a: number) => Color; readonly multiply: (a: Color, b: Color) => Color; readonly scaleRgb: (c: Color, s: number) => Color; readonly fromHex: (hex: string) => Color; readonly toHex: (c: Color, withAlpha?: boolean) => string; readonly equals: (a: Color, b: Color, epsilon?: number) => boolean; }```## collapseEntry — function @experimental@@ -11295,6 +11452,11 @@ Plugin(app: App | null | undefined, source: GlImageSource): CanvasTexture | null```+## createColorPicker — function @beta+```+(opts: ColorPickerOptions): ColorPickerHandle+```+## createDialog — function @experimental```(opts: DialogOptions): DialogHandle@@ -11400,6 +11562,11 @@ Plugin(opts: TooltipOptions): TooltipHandle```+## createTreeView — function @beta+```+<T = TreeViewNode>(opts: TreeViewOptions<T>): TreeViewHandle<T>+```+## createVirtualButton — function @experimental```(options: VirtualButtonOptions): ButtonHandle@@ -13395,6 +13562,11 @@ ServicesPlugin(tokens: ThemeTokens): void```+## setTreeViewData — function @beta+```+<T>(world: World, entity: Entity, data: TreeDataSource<T>, options?: Pick<TreeViewOptions<T>, "item" | "dragHandle" | "canDrop" | "onDrop">): () => void+```+## setUIVisible — function @experimental```(world: World, entity: Entity, visible: boolean): voiddiff --git a/sdk/etc/index.native.api.md b/sdk/etc/index.native.api.mdindex 4fd250d29..eb702ba10 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 · 134 beta · 1631 experimental · 3 deprecated+Symbols: 115 public · 151 beta · 1631 experimental · 3 deprecated## ABI_LAYOUT_HASH — const @experimental```@@ -1390,7 +1390,7 @@ Record<string, PrefabData>## BUILTIN_UI_WIDGET_NAMES — const @experimental```-readonly ["TabView", "Tooltip", "VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]+readonly ["TreeView", "ColorPicker", "TabView", "Tooltip", "VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]```## BUNDLE_MODES — const @experimental@@ -2431,6 +2431,30 @@ g: numberr: number```+## ColorPickerHandle — interface @beta+```+dispose: () => void+entity: number+getColor: () => Color+setColor: (color: Color) => void+```++## ColorPickerOptions — interface @beta+```+alphaEnabled: boolean | undefined+color: Color | undefined+events: UIEventQueue+format: number | undefined+history: readonly Color[] | undefined+historyLimit: number | undefined+node: UINodeInit | undefined+onChange: ((color: Color) => void) | undefined+onHistoryChange: ((colors: readonly Color[]) => void) | undefined+parent: number | undefined+rememberColors: boolean | undefined+world: World+```+## ColorRole — type @experimental```keyof ThemeColors@@ -9729,6 +9753,96 @@ onStart: (() => void) | undefinedtransition: "none" | "fade" | undefined```+## TreeDataSource — interface @beta+```+getChildren: (item: T) => readonly T[]+getId: (item: T) => TreeItemId+getLabel: (item: T) => string+getRoots: () => readonly T[]+isSelectable: ((item: T) => boolean) | undefined+subscribe: ((listener: () => void) => Unsubscribe) | undefined+```++## TreeDropRequest — interface @beta+```+position: "before" | "inside" | "after"+source: TreeRow<T>+target: TreeRow<T>+```++## TreeItemId — type @beta+```+string | number+```++## TreeRow — interface @beta+```+depth: number+expanded: boolean+hasChildren: boolean+id: TreeItemId+item: T+parentId: TreeItemId | null+selectable: boolean+selected: boolean+```++## TreeViewHandle — interface @beta+```+dispose: () => void+entity: number+getModel: () => TreeViewModel<T> | undefined+refresh: () => void+reveal: (id: TreeItemId) => void+```++## TreeViewModel — class @beta+```+canDrop: (request: TreeDropRequest<T>) => boolean+dispose: () => void+expandedIds: readonly TreeItemId[]+getCount: () => number+getItem: (index: number) => TreeRow<T>+getItemId: (_index: number, row: TreeRow<T>) => TreeItemId+getNode: (id: TreeItemId) => TreeRow<T> | undefined+indexOf: (id: TreeItemId) => number+isSelected: (id: TreeItemId) => boolean+refresh: () => void+reveal: (id: TreeItemId) => void+select: (ids: readonly TreeItemId[], mode?: number) => void+selectedIds: readonly TreeItemId[]+setExpanded: (ids: readonly TreeItemId[]) => void+source: TreeDataSource<T>+subscribe: (listener: (change: DataSourceChange) => void) => Unsubscribe+toggle: (id: TreeItemId) => void+static new <T>(source: TreeDataSource<T>, expanded?: readonly TreeItemId[]): TreeViewModel<T>+static prototype: TreeViewModel<any>+```++## TreeViewNode — interface @beta+```+children: TreeViewNode[] | undefined+id: string+label: string+selectable: boolean | undefined+```++## TreeViewOptions — interface @beta+```+canDrop: ((request: TreeDropRequest<T>) => boolean) | undefined+data: TreeDataSource<T> | undefined+dragHandle: ((rowEntity: Entity) => Entity) | undefined+events: UIEventQueue+item: ListItemTemplate<TreeRow<T>> | undefined+node: UINodeInit | undefined+nodes: TreeViewNode[] | undefined+onChange: ((ids: readonly TreeItemId[]) => void) | undefined+onDrop: ((request: TreeDropRequest<T>) => void) | undefined+parent: number | undefined+settings: Partial<Omit<UITreeViewData, "nodes">> | undefined+world: World+```+## Tween — const @experimental```ResourceDef<TweenAPI>@@ -9849,6 +9963,31 @@ worldTop: numberResourceDef<UICameraData>```+## UIColorPicker — const @beta+```+ComponentDef<UIColorPickerData>+```++## UIColorPickerData — interface @beta+```+alpha: number+alphaEnabled: boolean+alphaRamp: number+color: Color+cursor: number+fields: number[]+format: number+hex: number+history: Color[]+historyLimit: number+historyRoot: number+hue: number+preview: number+rememberButton: number+rememberColors: boolean+sv: number+```+## UIController — const @experimental```ComponentDef<UIControllerData>@@ -10147,6 +10286,24 @@ side: numberstylePrefab: string```+## UITreeView — const @beta+```+ComponentDef<UITreeViewData>+```++## UITreeViewData — interface @beta+```+dragEnabled: boolean+emptyPrefab: string+expandedIds: (string | number)[]+indent: number+nodes: TreeViewNode[]+rowHeight: number+rowPrefab: string+selectedIds: (string | number)[]+selectionMode: number+```+## UIVisibilityPlugin — class @experimental```build: (app: App) => void@@ -11390,7 +11547,7 @@ MotionDriver<AnimatorBlend2DMotion>## col — const @experimental```-{ readonly create: (r?: number, g?: number, b?: number, a?: number) => Color; readonly rgb: (r: number, g: number, b: number) => Color; readonly from255: (r: number, g: number, b: number, a?: number) => Color; readonly clone: (c: Color) => Color; readonly lerp: (a: Color, b: Color, t: number) => Color; readonly withAlpha: (c: Color, a: number) => Color; readonly multiply: (a: Color, b: Color) => Color; readonly scaleRgb: (c: Color, s: number) => Color; readonly fromHex: (hex: string) => Color; readonly toHex: (c: Color, withAlpha?: boolean) => string; readonly equals: (a: Color, b: Color, epsilon?: number) => boolean; }+{ readonly create: (r?: number, g?: number, b?: number, a?: number) => Color; readonly rgb: (r: number, g: number, b: number) => Color; readonly from255: (r: number, g: number, b: number, a?: number) => Color; readonly clone: (c: Color) => Color; readonly fromHsv: (h: number, s: number, v: number, a?: number) => Color; readonly toHsv: (color: Color, fallbackHue?: number) => { h: number; s: number; v: number; }; readonly lerp: (a: Color, b: Color, t: number) => Color; readonly withAlpha: (c: Color, a: number) => Color; readonly multiply: (a: Color, b: Color) => Color; readonly scaleRgb: (c: Color, s: number) => Color; readonly fromHex: (hex: string) => Color; readonly toHex: (c: Color, withAlpha?: boolean) => string; readonly equals: (a: Color, b: Color, epsilon?: number) => boolean; }```## collapseEntry — function @experimental@@ -11523,6 +11680,11 @@ Plugin(app: App | null | undefined, source: GlImageSource): CanvasTexture | null```+## createColorPicker — function @beta+```+(opts: ColorPickerOptions): ColorPickerHandle+```+## createDialog — function @experimental```(opts: DialogOptions): DialogHandle@@ -11653,6 +11815,11 @@ Plugin(opts: TooltipOptions): TooltipHandle```+## createTreeView — function @beta+```+<T = TreeViewNode>(opts: TreeViewOptions<T>): TreeViewHandle<T>+```+## createVirtualButton — function @experimental```(options: VirtualButtonOptions): ButtonHandle@@ -13658,6 +13825,11 @@ ServicesPlugin(tokens: ThemeTokens): void```+## setTreeViewData — function @beta+```+<T>(world: World, entity: Entity, data: TreeDataSource<T>, options?: Pick<TreeViewOptions<T>, "item" | "dragHandle" | "canDrop" | "onDrop">): () => void+```+## setUIVisible — function @experimental```(world: World, entity: Entity, visible: boolean): voiddiff --git a/sdk/etc/index.node.api.md b/sdk/etc/index.node.api.mdindex a955b13e0..6020a31fa 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 · 131 beta · 1611 experimental · 3 deprecated+Symbols: 115 public · 148 beta · 1611 experimental · 3 deprecated## ANCHOR_AXES — const @experimental```@@ -1385,7 +1385,7 @@ Record<string, PrefabData>## BUILTIN_UI_WIDGET_NAMES — const @experimental```-readonly ["TabView", "Tooltip", "VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]+readonly ["TreeView", "ColorPicker", "TabView", "Tooltip", "VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]```## BUNDLE_MODES — const @experimental@@ -2426,6 +2426,30 @@ g: numberr: number```+## ColorPickerHandle — interface @beta+```+dispose: () => void+entity: number+getColor: () => Color+setColor: (color: Color) => void+```++## ColorPickerOptions — interface @beta+```+alphaEnabled: boolean | undefined+color: Color | undefined+events: UIEventQueue+format: number | undefined+history: readonly Color[] | undefined+historyLimit: number | undefined+node: UINodeInit | undefined+onChange: ((color: Color) => void) | undefined+onHistoryChange: ((colors: readonly Color[]) => void) | undefined+parent: number | undefined+rememberColors: boolean | undefined+world: World+```+## ColorRole — type @experimental```keyof ThemeColors@@ -9511,6 +9535,96 @@ onStart: (() => void) | undefinedtransition: "none" | "fade" | undefined```+## TreeDataSource — interface @beta+```+getChildren: (item: T) => readonly T[]+getId: (item: T) => TreeItemId+getLabel: (item: T) => string+getRoots: () => readonly T[]+isSelectable: ((item: T) => boolean) | undefined+subscribe: ((listener: () => void) => Unsubscribe) | undefined+```++## TreeDropRequest — interface @beta+```+position: "before" | "inside" | "after"+source: TreeRow<T>+target: TreeRow<T>+```++## TreeItemId — type @beta+```+string | number+```++## TreeRow — interface @beta+```+depth: number+expanded: boolean+hasChildren: boolean+id: TreeItemId+item: T+parentId: TreeItemId | null+selectable: boolean+selected: boolean+```++## TreeViewHandle — interface @beta+```+dispose: () => void+entity: number+getModel: () => TreeViewModel<T> | undefined+refresh: () => void+reveal: (id: TreeItemId) => void+```++## TreeViewModel — class @beta+```+canDrop: (request: TreeDropRequest<T>) => boolean+dispose: () => void+expandedIds: readonly TreeItemId[]+getCount: () => number+getItem: (index: number) => TreeRow<T>+getItemId: (_index: number, row: TreeRow<T>) => TreeItemId+getNode: (id: TreeItemId) => TreeRow<T> | undefined+indexOf: (id: TreeItemId) => number+isSelected: (id: TreeItemId) => boolean+refresh: () => void+reveal: (id: TreeItemId) => void+select: (ids: readonly TreeItemId[], mode?: number) => void+selectedIds: readonly TreeItemId[]+setExpanded: (ids: readonly TreeItemId[]) => void+source: TreeDataSource<T>+subscribe: (listener: (change: DataSourceChange) => void) => Unsubscribe+toggle: (id: TreeItemId) => void+static new <T>(source: TreeDataSource<T>, expanded?: readonly TreeItemId[]): TreeViewModel<T>+static prototype: TreeViewModel<any>+```++## TreeViewNode — interface @beta+```+children: TreeViewNode[] | undefined+id: string+label: string+selectable: boolean | undefined+```++## TreeViewOptions — interface @beta+```+canDrop: ((request: TreeDropRequest<T>) => boolean) | undefined+data: TreeDataSource<T> | undefined+dragHandle: ((rowEntity: Entity) => Entity) | undefined+events: UIEventQueue+item: ListItemTemplate<TreeRow<T>> | undefined+node: UINodeInit | undefined+nodes: TreeViewNode[] | undefined+onChange: ((ids: readonly TreeItemId[]) => void) | undefined+onDrop: ((request: TreeDropRequest<T>) => void) | undefined+parent: number | undefined+settings: Partial<Omit<UITreeViewData, "nodes">> | undefined+world: World+```+## Tween — const @experimental```ResourceDef<TweenAPI>@@ -9631,6 +9745,31 @@ worldTop: numberResourceDef<UICameraData>```+## UIColorPicker — const @beta+```+ComponentDef<UIColorPickerData>+```++## UIColorPickerData — interface @beta+```+alpha: number+alphaEnabled: boolean+alphaRamp: number+color: Color+cursor: number+fields: number[]+format: number+hex: number+history: Color[]+historyLimit: number+historyRoot: number+hue: number+preview: number+rememberButton: number+rememberColors: boolean+sv: number+```+## UIController — const @experimental```ComponentDef<UIControllerData>@@ -9929,6 +10068,24 @@ side: numberstylePrefab: string```+## UITreeView — const @beta+```+ComponentDef<UITreeViewData>+```++## UITreeViewData — interface @beta+```+dragEnabled: boolean+emptyPrefab: string+expandedIds: (string | number)[]+indent: number+nodes: TreeViewNode[]+rowHeight: number+rowPrefab: string+selectedIds: (string | number)[]+selectionMode: number+```+## UIVisibilityPlugin — class @experimental```build: (app: App) => void@@ -11157,7 +11314,7 @@ MotionDriver<AnimatorBlend2DMotion>## col — const @experimental```-{ readonly create: (r?: number, g?: number, b?: number, a?: number) => Color; readonly rgb: (r: number, g: number, b: number) => Color; readonly from255: (r: number, g: number, b: number, a?: number) => Color; readonly clone: (c: Color) => Color; readonly lerp: (a: Color, b: Color, t: number) => Color; readonly withAlpha: (c: Color, a: number) => Color; readonly multiply: (a: Color, b: Color) => Color; readonly scaleRgb: (c: Color, s: number) => Color; readonly fromHex: (hex: string) => Color; readonly toHex: (c: Color, withAlpha?: boolean) => string; readonly equals: (a: Color, b: Color, epsilon?: number) => boolean; }+{ readonly create: (r?: number, g?: number, b?: number, a?: number) => Color; readonly rgb: (r: number, g: number, b: number) => Color; readonly from255: (r: number, g: number, b: number, a?: number) => Color; readonly clone: (c: Color) => Color; readonly fromHsv: (h: number, s: number, v: number, a?: number) => Color; readonly toHsv: (color: Color, fallbackHue?: number) => { h: number; s: number; v: number; }; readonly lerp: (a: Color, b: Color, t: number) => Color; readonly withAlpha: (c: Color, a: number) => Color; readonly multiply: (a: Color, b: Color) => Color; readonly scaleRgb: (c: Color, s: number) => Color; readonly fromHex: (hex: string) => Color; readonly toHex: (c: Color, withAlpha?: boolean) => string; readonly equals: (a: Color, b: Color, epsilon?: number) => boolean; }```## collapseEntry — function @experimental@@ -11290,6 +11447,11 @@ Plugin(app: App | null | undefined, source: GlImageSource): CanvasTexture | null```+## createColorPicker — function @beta+```+(opts: ColorPickerOptions): ColorPickerHandle+```+## createDialog — function @experimental```(opts: DialogOptions): DialogHandle@@ -11395,6 +11557,11 @@ Plugin(opts: TooltipOptions): TooltipHandle```+## createTreeView — function @beta+```+<T = TreeViewNode>(opts: TreeViewOptions<T>): TreeViewHandle<T>+```+## createVirtualButton — function @experimental```(options: VirtualButtonOptions): ButtonHandle@@ -13400,6 +13567,11 @@ ServicesPlugin(tokens: ThemeTokens): void```+## setTreeViewData — function @beta+```+<T>(world: World, entity: Entity, data: TreeDataSource<T>, options?: Pick<TreeViewOptions<T>, "item" | "dragHandle" | "canDrop" | "onDrop">): () => void+```+## setUIVisible — function @experimental```(world: World, entity: Entity, visible: boolean): voiddiff --git a/sdk/etc/minigame.api.md b/sdk/etc/minigame.api.mdindex c1b77e0ea..0c7f86e83 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 · 129 beta · 1633 experimental · 3 deprecated+Symbols: 115 public · 146 beta · 1633 experimental · 3 deprecated## ANCHOR_AXES — const @experimental```@@ -1385,7 +1385,7 @@ Record<string, PrefabData>## BUILTIN_UI_WIDGET_NAMES — const @experimental```-readonly ["TabView", "Tooltip", "VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]+readonly ["TreeView", "ColorPicker", "TabView", "Tooltip", "VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]```## BUNDLE_MODES — const @experimental@@ -2426,6 +2426,30 @@ g: numberr: number```+## ColorPickerHandle — interface @beta+```+dispose: () => void+entity: number+getColor: () => Color+setColor: (color: Color) => void+```++## ColorPickerOptions — interface @beta+```+alphaEnabled: boolean | undefined+color: Color | undefined+events: UIEventQueue+format: number | undefined+history: readonly Color[] | undefined+historyLimit: number | undefined+node: UINodeInit | undefined+onChange: ((color: Color) => void) | undefined+onHistoryChange: ((colors: readonly Color[]) => void) | undefined+parent: number | undefined+rememberColors: boolean | undefined+world: World+```+## ColorRole — type @experimental```keyof ThemeColors@@ -9804,6 +9828,96 @@ onStart: (() => void) | undefinedtransition: "none" | "fade" | undefined```+## TreeDataSource — interface @beta+```+getChildren: (item: T) => readonly T[]+getId: (item: T) => TreeItemId+getLabel: (item: T) => string+getRoots: () => readonly T[]+isSelectable: ((item: T) => boolean) | undefined+subscribe: ((listener: () => void) => Unsubscribe) | undefined+```++## TreeDropRequest — interface @beta+```+position: "before" | "inside" | "after"+source: TreeRow<T>+target: TreeRow<T>+```++## TreeItemId — type @beta+```+string | number+```++## TreeRow — interface @beta+```+depth: number+expanded: boolean+hasChildren: boolean+id: TreeItemId+item: T+parentId: TreeItemId | null+selectable: boolean+selected: boolean+```++## TreeViewHandle — interface @beta+```+dispose: () => void+entity: number+getModel: () => TreeViewModel<T> | undefined+refresh: () => void+reveal: (id: TreeItemId) => void+```++## TreeViewModel — class @beta+```+canDrop: (request: TreeDropRequest<T>) => boolean+dispose: () => void+expandedIds: readonly TreeItemId[]+getCount: () => number+getItem: (index: number) => TreeRow<T>+getItemId: (_index: number, row: TreeRow<T>) => TreeItemId+getNode: (id: TreeItemId) => TreeRow<T> | undefined+indexOf: (id: TreeItemId) => number+isSelected: (id: TreeItemId) => boolean+refresh: () => void+reveal: (id: TreeItemId) => void+select: (ids: readonly TreeItemId[], mode?: number) => void+selectedIds: readonly TreeItemId[]+setExpanded: (ids: readonly TreeItemId[]) => void+source: TreeDataSource<T>+subscribe: (listener: (change: DataSourceChange) => void) => Unsubscribe+toggle: (id: TreeItemId) => void+static new <T>(source: TreeDataSource<T>, expanded?: readonly TreeItemId[]): TreeViewModel<T>+static prototype: TreeViewModel<any>+```++## TreeViewNode — interface @beta+```+children: TreeViewNode[] | undefined+id: string+label: string+selectable: boolean | undefined+```++## TreeViewOptions — interface @beta+```+canDrop: ((request: TreeDropRequest<T>) => boolean) | undefined+data: TreeDataSource<T> | undefined+dragHandle: ((rowEntity: Entity) => Entity) | undefined+events: UIEventQueue+item: ListItemTemplate<TreeRow<T>> | undefined+node: UINodeInit | undefined+nodes: TreeViewNode[] | undefined+onChange: ((ids: readonly TreeItemId[]) => void) | undefined+onDrop: ((request: TreeDropRequest<T>) => void) | undefined+parent: number | undefined+settings: Partial<Omit<UITreeViewData, "nodes">> | undefined+world: World+```+## Tween — const @experimental```ResourceDef<TweenAPI>@@ -9924,6 +10038,31 @@ worldTop: numberResourceDef<UICameraData>```+## UIColorPicker — const @beta+```+ComponentDef<UIColorPickerData>+```++## UIColorPickerData — interface @beta+```+alpha: number+alphaEnabled: boolean+alphaRamp: number+color: Color+cursor: number+fields: number[]+format: number+hex: number+history: Color[]+historyLimit: number+historyRoot: number+hue: number+preview: number+rememberButton: number+rememberColors: boolean+sv: number+```+## UIController — const @experimental```ComponentDef<UIControllerData>@@ -10222,6 +10361,24 @@ side: numberstylePrefab: string```+## UITreeView — const @beta+```+ComponentDef<UITreeViewData>+```++## UITreeViewData — interface @beta+```+dragEnabled: boolean+emptyPrefab: string+expandedIds: (string | number)[]+indent: number+nodes: TreeViewNode[]+rowHeight: number+rowPrefab: string+selectedIds: (string | number)[]+selectionMode: number+```+## UIVisibilityPlugin — class @experimental```build: (app: App) => void@@ -11456,7 +11613,7 @@ MotionDriver<AnimatorBlend2DMotion>## col — const @experimental```-{ readonly create: (r?: number, g?: number, b?: number, a?: number) => Color; readonly rgb: (r: number, g: number, b: number) => Color; readonly from255: (r: number, g: number, b: number, a?: number) => Color; readonly clone: (c: Color) => Color; readonly lerp: (a: Color, b: Color, t: number) => Color; readonly withAlpha: (c: Color, a: number) => Color; readonly multiply: (a: Color, b: Color) => Color; readonly scaleRgb: (c: Color, s: number) => Color; readonly fromHex: (hex: string) => Color; readonly toHex: (c: Color, withAlpha?: boolean) => string; readonly equals: (a: Color, b: Color, epsilon?: number) => boolean; }+{ readonly create: (r?: number, g?: number, b?: number, a?: number) => Color; readonly rgb: (r: number, g: number, b: number) => Color; readonly from255: (r: number, g: number, b: number, a?: number) => Color; readonly clone: (c: Color) => Color; readonly fromHsv: (h: number, s: number, v: number, a?: number) => Color; readonly toHsv: (color: Color, fallbackHue?: number) => { h: number; s: number; v: number; }; readonly lerp: (a: Color, b: Color, t: number) => Color; readonly withAlpha: (c: Color, a: number) => Color; readonly multiply: (a: Color, b: Color) => Color; readonly scaleRgb: (c: Color, s: number) => Color; readonly fromHex: (hex: string) => Color; readonly toHex: (c: Color, withAlpha?: boolean) => string; readonly equals: (a: Color, b: Color, epsilon?: number) => boolean; }```## collapseEntry — function @experimental@@ -11589,6 +11746,11 @@ Plugin(app: App | null | undefined, source: GlImageSource): CanvasTexture | null```+## createColorPicker — function @beta+```+(opts: ColorPickerOptions): ColorPickerHandle+```+## createDialog — function @experimental```(opts: DialogOptions): DialogHandle@@ -11699,6 +11861,11 @@ Plugin(opts: TooltipOptions): TooltipHandle```+## createTreeView — function @beta+```+<T = TreeViewNode>(opts: TreeViewOptions<T>): TreeViewHandle<T>+```+## createVirtualButton — function @experimental```(options: VirtualButtonOptions): ButtonHandle@@ -13704,6 +13871,11 @@ ServicesPlugin(tokens: ThemeTokens): void```+## setTreeViewData — function @beta+```+<T>(world: World, entity: Entity, data: TreeDataSource<T>, options?: Pick<TreeViewOptions<T>, "item" | "dragHandle" | "canDrop" | "onDrop">): () => void+```+## setUIVisible — function @experimental```(world: World, entity: Entity, visible: boolean): voiddiff --git a/sdk/etc/wechat.api.md b/sdk/etc/wechat.api.mdindex 710f6e0e1..3577199fb 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 · 129 beta · 1624 experimental · 3 deprecated+Symbols: 115 public · 146 beta · 1624 experimental · 3 deprecated## ANCHOR_AXES — const @experimental```@@ -1385,7 +1385,7 @@ Record<string, PrefabData>## BUILTIN_UI_WIDGET_NAMES — const @experimental```-readonly ["TabView", "Tooltip", "VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]+readonly ["TreeView", "ColorPicker", "TabView", "Tooltip", "VirtualJoystick", "VirtualButton", "Button", "Toggle", "Slider", "Dialog", "TextInput", "Progress", "Dropdown", "ListView", "ScrollView"]```## BUNDLE_MODES — const @experimental@@ -2426,6 +2426,30 @@ g: numberr: number```+## ColorPickerHandle — interface @beta+```+dispose: () => void+entity: number+getColor: () => Color+setColor: (color: Color) => void+```++## ColorPickerOptions — interface @beta+```+alphaEnabled: boolean | undefined+color: Color | undefined+events: UIEventQueue+format: number | undefined+history: readonly Color[] | undefined+historyLimit: number | undefined+node: UINodeInit | undefined+onChange: ((color: Color) => void) | undefined+onHistoryChange: ((colors: readonly Color[]) => void) | undefined+parent: number | undefined+rememberColors: boolean | undefined+world: World+```+## ColorRole — type @experimental```keyof ThemeColors@@ -9518,6 +9542,96 @@ onStart: (() => void) | undefinedtransition: "none" | "fade" | undefined```+## TreeDataSource — interface @beta+```+getChildren: (item: T) => readonly T[]+getId: (item: T) => TreeItemId+getLabel: (item: T) => string+getRoots: () => readonly T[]+isSelectable: ((item: T) => boolean) | undefined+subscribe: ((listener: () => void) => Unsubscribe) | undefined+```++## TreeDropRequest — interface @beta+```+position: "before" | "inside" | "after"+source: TreeRow<T>+target: TreeRow<T>+```++## TreeItemId — type @beta+```+string | number+```++## TreeRow — interface @beta+```+depth: number+expanded: boolean+hasChildren: boolean+id: TreeItemId+item: T+parentId: TreeItemId | null+selectable: boolean+selected: boolean+```++## TreeViewHandle — interface @beta+```+dispose: () => void+entity: number+getModel: () => TreeViewModel<T> | undefined+refresh: () => void+reveal: (id: TreeItemId) => void+```++## TreeViewModel — class @beta+```+canDrop: (request: TreeDropRequest<T>) => boolean+dispose: () => void+expandedIds: readonly TreeItemId[]+getCount: () => number+getItem: (index: number) => TreeRow<T>+getItemId: (_index: number, row: TreeRow<T>) => TreeItemId+getNode: (id: TreeItemId) => TreeRow<T> | undefined+indexOf: (id: TreeItemId) => number+isSelected: (id: TreeItemId) => boolean+refresh: () => void+reveal: (id: TreeItemId) => void+select: (ids: readonly TreeItemId[], mode?: number) => void+selectedIds: readonly TreeItemId[]+setExpanded: (ids: readonly TreeItemId[]) => void+source: TreeDataSource<T>+subscribe: (listener: (change: DataSourceChange) => void) => Unsubscribe+toggle: (id: TreeItemId) => void+static new <T>(source: TreeDataSource<T>, expanded?: readonly TreeItemId[]): TreeViewModel<T>+static prototype: TreeViewModel<any>+```++## TreeViewNode — interface @beta+```+children: TreeViewNode[] | undefined+id: string+label: string+selectable: boolean | undefined+```++## TreeViewOptions — interface @beta+```+canDrop: ((request: TreeDropRequest<T>) => boolean) | undefined+data: TreeDataSource<T> | undefined+dragHandle: ((rowEntity: Entity) => Entity) | undefined+events: UIEventQueue+item: ListItemTemplate<TreeRow<T>> | undefined+node: UINodeInit | undefined+nodes: TreeViewNode[] | undefined+onChange: ((ids: readonly TreeItemId[]) => void) | undefined+onDrop: ((request: TreeDropRequest<T>) => void) | undefined+parent: number | undefined+settings: Partial<Omit<UITreeViewData, "nodes">> | undefined+world: World+```+## Tween — const @experimental```ResourceDef<TweenAPI>@@ -9638,6 +9752,31 @@ worldTop: numberResourceDef<UICameraData>```+## UIColorPicker — const @beta+```+ComponentDef<UIColorPickerData>+```++## UIColorPickerData — interface @beta+```+alpha: number+alphaEnabled: boolean+alphaRamp: number+color: Color+cursor: number+fields: number[]+format: number+hex: number+history: Color[]+historyLimit: number+historyRoot: number+hue: number+preview: number+rememberButton: number+rememberColors: boolean+sv: number+```+## UIController — const @experimental```ComponentDef<UIControllerData>@@ -9936,6 +10075,24 @@ side: numberstylePrefab: string```+## UITreeView — const @beta+```+ComponentDef<UITreeViewData>+```++## UITreeViewData — interface @beta+```+dragEnabled: boolean+emptyPrefab: string+expandedIds: (string | number)[]+indent: number+nodes: TreeViewNode[]+rowHeight: number+rowPrefab: string+selectedIds: (string | number)[]+selectionMode: number+```+## UIVisibilityPlugin — class @experimental```build: (app: App) => void@@ -11188,7 +11345,7 @@ MotionDriver<AnimatorBlend2DMotion>## col — const @experimental```-{ readonly create: (r?: number, g?: number, b?: number, a?: number) => Color; readonly rgb: (r: number, g: number, b: number) => Color; readonly from255: (r: number, g: number, b: number, a?: number) => Color; readonly clone: (c: Color) => Color; readonly lerp: (a: Color, b: Color, t: number) => Color; readonly withAlpha: (c: Color, a: number) => Color; readonly multiply: (a: Color, b: Color) => Color; readonly scaleRgb: (c: Color, s: number) => Color; readonly fromHex: (hex: string) => Color; readonly toHex: (c: Color, withAlpha?: boolean) => string; readonly equals: (a: Color, b: Color, epsilon?: number) => boolean; }+{ readonly create: (r?: number, g?: number, b?: number, a?: number) => Color; readonly rgb: (r: number, g: number, b: number) => Color; readonly from255: (r: number, g: number, b: number, a?: number) => Color; readonly clone: (c: Color) => Color; readonly fromHsv: (h: number, s: number, v: number, a?: number) => Color; readonly toHsv: (color: Color, fallbackHue?: number) => { h: number; s: number; v: number; }; readonly lerp: (a: Color, b: Color, t: number) => Color; readonly withAlpha: (c: Color, a: number) => Color; readonly multiply: (a: Color, b: Color) => Color; readonly scaleRgb: (c: Color, s: number) => Color; readonly fromHex: (hex: string) => Color; readonly toHex: (c: Color, withAlpha?: boolean) => string; readonly equals: (a: Color, b: Color, epsilon?: number) => boolean; }```## collapseEntry — function @experimental@@ -11321,6 +11478,11 @@ Plugin(app: App | null | undefined, source: GlImageSource): CanvasTexture | null```+## createColorPicker — function @beta+```+(opts: ColorPickerOptions): ColorPickerHandle+```+## createDialog — function @experimental```(opts: DialogOptions): DialogHandle@@ -11426,6 +11588,11 @@ Plugin(opts: TooltipOptions): TooltipHandle```+## createTreeView — function @beta+```+<T = TreeViewNode>(opts: TreeViewOptions<T>): TreeViewHandle<T>+```+## createVirtualButton — function @experimental```(options: VirtualButtonOptions): ButtonHandle@@ -13431,6 +13598,11 @@ ServicesPlugin(tokens: ThemeTokens): void```+## setTreeViewData — function @beta+```+<T>(world: World, entity: Entity, data: TreeDataSource<T>, options?: Pick<TreeViewOptions<T>, "item" | "dragHandle" | "canDrop" | "onDrop">): () => void+```+## setUIVisible — function @experimental```(world: World, entity: Entity, visible: boolean): voiddiff --git a/sdk/src/core-ui.ts b/sdk/src/core-ui.tsindex 856b73ec9..7b5de1b4d 100644--- a/sdk/src/core-ui.ts+++ b/sdk/src/core-ui.ts@@ -55,6 +55,10 @@ export {// authored data both need the canonical type strings.UIEventType,UITabView, type UITabViewData, createTabView, type TabViewOptions, type TabViewHandle,+ UITreeView, type UITreeViewData, type TreeViewNode, TreeViewModel,+ type TreeDataSource, type TreeItemId, type TreeRow, type TreeDropRequest,+ createTreeView, setTreeViewData, type TreeViewOptions, type TreeViewHandle,+ UIColorPicker, type UIColorPickerData, createColorPicker, type ColorPickerOptions, type ColorPickerHandle,UITooltip, type UITooltipData, attachTooltip, createTooltip,type TooltipOptions, type TooltipHandle,applyTabViewSelection, previewTooltip,diff --git a/sdk/src/math/color.ts b/sdk/src/math/color.tsindex eb7265ab3..7828c1c2e 100644--- a/sdk/src/math/color.ts+++ b/sdk/src/math/color.ts@@ -24,6 +24,28 @@ export const col = {},clone(c: Color): Color { return { r: c.r, g: c.g, b: c.b, a: c.a }; },+ /** HSV uses degrees for hue and 0..1 for saturation/value/alpha. @beta */+ fromHsv(h: number, s: number, v: number, a = 1): Color {+ const hue = Number.isFinite(h) ? ((h % 360) + 360) % 360 : 0;+ const saturation = Number.isFinite(s) ? scalar.clamp01(s) : 0;+ const value = Number.isFinite(v) ? scalar.clamp01(v) : 0;+ const c = value * saturation, x = c * (1 - Math.abs((hue / 60) % 2 - 1)), m = value - c;+ const rgb = hue < 60 ? [c, x, 0] : hue < 120 ? [x, c, 0] : hue < 180 ? [0, c, x]+ : hue < 240 ? [0, x, c] : hue < 300 ? [x, 0, c] : [c, 0, x];+ return { r: rgb[0] + m, g: rgb[1] + m, b: rgb[2] + m,+ a: Number.isFinite(a) ? scalar.clamp01(a) : 1 };+ },++ /** Preserve a caller's hue at zero saturation/value; no color-space conversion. @beta */+ toHsv(color: Color, fallbackHue = 0): { h: number; s: number; v: number } {+ const channel = (v: number): number => Number.isFinite(v) ? scalar.clamp01(v) : 0;+ const r = channel(color.r), g = channel(color.g), b = channel(color.b);+ const max = Math.max(r, g, b), delta = max - Math.min(r, g, b);+ const h = delta === 0 ? fallbackHue : 60 * (max === r ? (g - b) / delta+ : max === g ? (b - r) / delta + 2 : (r - g) / delta + 4);+ return { h: Number.isFinite(h) ? ((h % 360) + 360) % 360 : 0, s: max ? delta / max : 0, v: max };+ },+/** Per-channel linear interpolate a→b by t (t not clamped). */lerp(a: Color, b: Color, t: number): Color {return {diff --git a/sdk/src/ui/ARCHITECTURE.md b/sdk/src/ui/ARCHITECTURE.mdindex 6898a09dd..e9458e61d 100644--- a/sdk/src/ui/ARCHITECTURE.md+++ b/sdk/src/ui/ARCHITECTURE.md@@ -81,6 +81,26 @@ Rules:## Conventions+Collection widgets accept project data through adapters with stable application+IDs. They must not require ECS entities, scene paths, inventory item types or+other gameplay schemas. `TreeViewModel` projects hierarchy data into the existing+`DataSource` / `ListView` virtualization path. Selection and expansion belong to+the control; drop validation and domain mutations belong to the host.++`UICollections` captures the collection registries of its app. Widget adoption is+installed by the composed UI plugin after those registries exist; the behavior+layer does not import widget factories. Runtime row wrappers and prefab views+remain ordinary ECS UI entities. Removing a widget releases its registrations,+subscriptions and pending views.++Color editing uses the canonical `Color` shape and shared `col` HSV helpers. HSV+is an editing coordinate system, not a new color-space convention. UI, sprite+and material consumers bind through the same RGBA change event; the picker does+not mutate targets or write global history storage. Pointer capture, focus,+text editing, theme roles and rendering use the existing pipeline. A control+that consumes its drag blocks an enclosing collection's drag scroll while+leaving wheel input available.+- **File names are `kebab-case`** (`ui-camera-info.ts`, not `UICameraInfo.ts`).Exported *symbols* keep their natural casing (`UICameraInfo`, `createButton`).- **A concept's component and its plugin are co-located** in one file when smalldiff --git a/sdk/src/ui/behavior/color-picker-system.ts b/sdk/src/ui/behavior/color-picker-system.tsnew file mode 100644index 000000000..2198151c4--- /dev/null+++ b/sdk/src/ui/behavior/color-picker-system.ts@@ -0,0 +1,282 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import type { App } from '../../app/app';+import type { Color, Entity, Vec2 } from '../../types';+import { Children, Name, Parent, registerComponent } from '../../ecs/component';+import { Schedule, defineSystem } from '../../ecs/system';+import { Input } from '../../input/input';+import { playModeOnly } from '../../ecs/env';+import { primaryPointerCancellationVersion } from '../../input/pointerCancellation';+import { col } from '../../math/color';+import { getResourceManager, provideTextureContent, withdrawTextureContent, textureRefill, evictTextureDimensions } from '../../wasm/resourceManager';+import { TextureContent, type CppResourceManager } from '../../wasm';+import { createTextureFromPixels, updateTextureSubregion } from '../../runtime/runtimeAssets';+import { UIColorPicker } from './color-picker';+import { UISlider } from './slider';+import { UIEvents, UIEventType } from '../core/events';+import { UINode, UIDisplay } from '../core/ui-node';+import { UIVisual, UIVisualType } from '../core/ui-visual';+import { Text } from '../core/text';+import { TextInput } from '../text/text-input';+import { px, percent } from '../core/dimension';+import { spawnUIEntity } from '../core/compose';+import { UIControlPointers } from '../input/control-pointers';+import { makeWidgetInteractable, Interactable } from '../input/interactable';+import { FocusManager } from '../input/focusable';+import { isFocusEligible } from '../input/focus-inspection';+import { createLocalTransformReader } from '../util/local-transform';+import { isScreenEntity } from '../util/ui-pick';+import { worldEngineApi } from '../../ecs/bridge/engineApi';+import { themeColors } from '../theme/tokens';+import { UIConsumesDrag } from '../input/drag-consumption';++interface State {+ color: Color;+ hsv: { h: number; s: number; v: number };+ alpha: number;+ refs: string;+ format: number;+ history: string;+ swatches: Entity[];+ off: Array<() => void>;+ swatchOff: Array<() => void>;+ editingHSV: boolean;+ plane?: { handle: number; hue: number; pixels: Uint8Array; refill: () => boolean };+}++/** Normalize malformed/imported values before they reach rendering or events. */+export function normalizePickerColor(color: Color, alphaEnabled = true): Color {+ const channel = (value: number, fallback: number): number => Number.isFinite(value) ? Math.max(0, Math.min(1, value)) : fallback;+ return { r: channel(color.r, 0), g: channel(color.g, 0), b: channel(color.b, 0), a: alphaEnabled ? channel(color.a, 1) : 1 };+}++/** Shared alpha, hue and checker images; editing coordinates are not blended colors. */+function createRamps(app: App, owner: CppResourceManager): number[] {+ const upload = (width: number, height: number, values: number[]): number => createTextureFromPixels(app.wasmModule,+ { width, height, pixels: new Uint8Array(values) }, TextureContent.Retained, true,+ { filterMode: 'linear', wrapMode: 'clamp' }, owner);+ const created: number[] = [];+ try {+ created.push(upload(2, 1, [255, 255, 255, 255, 255, 255, 255, 0]));+ const hue: number[] = []; for (let i = 0; i <= 360; i++) { const c = col.fromHsv(i, 1, 1); hue.push(c.r * 255, c.g * 255, c.b * 255, 255); }+ created.push(upload(361, 1, hue));+ const checker: number[] = [], theme = themeColors();+ for (let y = 0; y < 8; y++) for (let x = 0; x < 8; x++) {+ const c = ((x < 4) !== (y < 4)) ? theme.control : theme.track;+ checker.push(c.r * 255, c.g * 255, c.b * 255, 255);+ }+ created.push(upload(8, 8, checker)); return created;+ } catch (error) { created.forEach(handle => owner.releaseTexture(handle)); throw error; }+}++// Bottom-first encoded colors follow the same upload/decode contract as sprites.+// White/black overlays would interpolate in linear light and change HSV meaning.+function paintPlane(pixels: Uint8Array, hue: number): void {+ const color = col.fromHsv(hue, 1, 1);+ for (let y = 0; y < 64; y++) for (let x = 0; x < 64; x++) {+ const s = x / 63, v = y / 63, at = (y * 64 + x) * 4;+ pixels[at] = Math.round(v * (1 - s + s * color.r) * 255);+ pixels[at + 1] = Math.round(v * (1 - s + s * color.g) * 255);+ pixels[at + 2] = Math.round(v * (1 - s + s * color.b) * 255);+ pixels[at + 3] = 255;+ }+}++/** @internal Composed once by UIPlugin; all state and cleanup belong to its app. */+export function installColorPickers(app: App): () => void {+ registerComponent('UIColorPicker', UIColorPicker);+ const playing = (): boolean => playModeOnly() && !app.isPaused() && !app.isExecutionHeld();+ const world = app.world, events = app.getResource(UIEvents), states = new Map<Entity, State>();+ const local = createLocalTransformReader(world), engine = worldEngineApi(world), registry = world.getCppRegistry();+ let owner: CppResourceManager | null = null, ramps: number[] = [], cancellation = primaryPointerCancellationVersion(app.getResource(Input));+ const destroy = (entity: Entity): void => {+ const state = states.get(entity); if (!state) return; states.delete(entity);+ if (state.plane) {+ const plane = state.plane;+ if (textureRefill(plane.handle) === plane.refill) withdrawTextureContent(plane.handle);+ if (getResourceManager() === owner) evictTextureDimensions(plane.handle);+ owner?.releaseTexture(plane.handle);+ }+ state.off.forEach(off => off()); state.swatchOff.forEach(off => off());+ state.swatches.forEach(e => { if (world.valid(e)) world.despawn(e); });+ };+ const child = (root: Entity, entity: Entity, component: Parameters<typeof world.has>[1]): boolean => {+ if (!entity || entity === root || !world.valid(entity) || !world.has(entity, component)) return false;+ const seen = new Set<Entity>(); let current = entity;+ while (world.valid(current) && world.has(current, Parent) && !seen.has(current)) {+ seen.add(current); current = world.get(current, Parent).entity; if (current === root) return true;+ }+ return false;+ };+ const setColor = (root: Entity, color: Color): void => {+ if (world.valid(root) && world.has(root, UIColorPicker)) world.update(root, UIColorPicker, data => { data.color = normalizePickerColor(color, data.alphaEnabled); });+ };+ const available = (entity: Entity): boolean => world.valid(entity) && world.isEntityActive(entity) && !world.isDestructionPending(entity)+ && (!world.has(entity, Interactable) || world.get(entity, Interactable).enabled)+ && !engine?.getUINodeHiddenInTree?.(registry!, entity);+ const image = (root: Entity, entity: Entity, texture: number, color: Color = { r: 1, g: 1, b: 1, a: 1 },+ offset: Vec2 = { x: 0, y: 0 }, scale: Vec2 = { x: 1, y: 1 }, tiled = false): void => {+ if (!child(root, entity, UIVisual)) return;+ const visual = world.get(entity, UIVisual);+ const visualType = tiled ? UIVisualType.Tiled : UIVisualType.Image;+ const near = (a: number, b: number): boolean => Math.abs(a - b) < .000001;+ if (visual.texture !== texture || visual.visualType !== visualType || !col.equals(visual.color, color)+ || !near(visual.uvOffset.x, offset.x) || !near(visual.uvOffset.y, offset.y) || !near(visual.uvScale.x, scale.x) || !near(visual.uvScale.y, scale.y)) {+ world.insert(entity, UIVisual, { ...visual, visualType, texture, color, uvOffset: offset, uvScale: scale, ...(tiled ? { tileSize: { x: 8, y: 8 } } : {}) });+ }+ };+ app.addSystemToSchedule(Schedule.Update, defineSystem([], () => {+ const roots = new Set(world.getEntitiesWithComponents([UIColorPicker]));+ for (const entity of states.keys()) if (!roots.has(entity) || !world.valid(entity)) destroy(entity);+ if (roots.size && !owner) { owner = getResourceManager(); if (owner) ramps = createRamps(app, owner); }+ const pointers = app.getResource(UIControlPointers).pointers, input = app.getResource(Input), focus = app.getResource(FocusManager);+ const version = primaryPointerCancellationVersion(input), cancelled = version !== cancellation; cancellation = version;+ for (const root of roots) {+ if (!world.valid(root)) continue;+ let data = world.get(root, UIColorPicker), state = states.get(root);+ for (const entity of [data.sv, data.hue, data.alpha]) if (child(root, entity, UINode) && !world.has(entity, UIConsumesDrag)) world.insert(entity, UIConsumesDrag);+ const refs = JSON.stringify([data.fields, data.hex, data.rememberButton, data.historyRoot]);+ if (state && state.refs !== refs) { destroy(root); state = undefined; }+ const initial = !state;+ if (!state) {+ const color = normalizePickerColor(data.color, data.alphaEnabled);+ state = { color, hsv: col.toHsv(color), alpha: color.a, refs, format: data.format, history: '', swatches: [], off: [], swatchOff: [], editingHSV: false };+ states.set(root, state);+ const edit = (field: Entity, index: number): void => {+ if (!playing() || !available(root) || !child(root, field, TextInput)) return;+ const current = world.get(root, UIColorPicker), text = world.get(field, TextInput).value, s = states.get(root)!;+ if (index === 4) {+ try { setColor(root, col.fromHex(text)); } catch { /* Incomplete text remains editable until blur. */ }+ } else {+ if (!text.trim()) return;+ const n = Number(text); if (!Number.isFinite(n)) return;+ if (index === 3) setColor(root, { ...current.color, a: n / 100 });+ else if (current.format === 1) setColor(root, { ...current.color, [(['r', 'g', 'b'] as const)[index]]: n / 255 });+ else {+ const hsv = { ...s.hsv, [(['h', 's', 'v'] as const)[index]]: index === 0 ? n : n / 100 };+ hsv.h = ((hsv.h % 360) + 360) % 360;+ hsv.s = Math.max(0, Math.min(1, hsv.s)); hsv.v = Math.max(0, Math.min(1, hsv.v));+ s.hsv = hsv; s.editingHSV = true; setColor(root, col.fromHsv(hsv.h, hsv.s, hsv.v, current.color.a));+ }+ }+ };+ const inputs = [...data.fields.slice(0, 4).map((field, index) => ({ field, index })), { field: data.hex, index: 4 }];+ for (const { index, field } of inputs) if (child(root, field, TextInput)) {+ state.off.push(events.on(field, UIEventType.Change, () => edit(field, index)), events.on(field, UIEventType.Submit, () => edit(field, index)));+ }+ if (world.valid(data.rememberButton)) state.off.push(events.on(data.rememberButton, UIEventType.Click, () => {+ if (!playing() || !available(root)) return;+ const d = world.get(root, UIColorPicker); if (!d.rememberColors) return;+ const limit = Math.max(0, Math.min(32, Math.floor(d.historyLimit) || 0));+ const color = normalizePickerColor(d.color, d.alphaEnabled);+ const history = [color, ...d.history.filter(item => !col.equals(normalizePickerColor(item), color))].slice(0, limit);+ world.insert(root, UIColorPicker, { ...d, history }); events.emit(root, 'history_change', { colors: history.map(c => ({ ...c })) });+ }));+ }+ const previous = { ...state.color };+ let color = normalizePickerColor(data.color, data.alphaEnabled);+ const external = !col.equals(color, state.color);+ if (external && !state.editingHSV) { state.hsv = col.toHsv(color, state.hsv.h); state.alpha = color.a; }+ const enabled = playing() && available(root);+ if (enabled && !external && !initial && !state.editingHSV) {+ const hue = child(root, data.hue, UISlider) ? world.get(data.hue, UISlider).value : state.hsv.h;+ const a = child(root, data.alpha, UISlider) && data.alphaEnabled ? world.get(data.alpha, UISlider).value : color.a;+ if (hue !== state.hsv.h || a !== state.alpha) { state.hsv.h = hue; state.alpha = a; color = col.fromHsv(hue, state.hsv.s, state.hsv.v, a); }+ }+ if (enabled && !cancelled && child(root, data.sv, UINode)) {+ for (const pointer of pointers.values()) if (pointer.down && pointer.entity === data.sv) {+ const screen = isScreenEntity(world, data.sv);+ const point = local.point(data.sv, screen ? pointer.layoutX : pointer.worldX, screen ? pointer.layoutY : pointer.worldY);+ const width = engine?.getUINodeComputedWidth?.(registry!, data.sv) ?? 0, height = engine?.getUINodeComputedHeight?.(registry!, data.sv) ?? 0;+ if (point && width > 0 && height > 0) {+ state.hsv.s = Math.max(0, Math.min(1, point.x / width + .5)); state.hsv.v = Math.max(0, Math.min(1, point.y / height + .5));+ color = col.fromHsv(state.hsv.h, state.hsv.s, state.hsv.v, color.a);+ }+ }+ if (focus.focusedEntity === data.sv && isFocusEligible(world, data.sv)) {+ const step = input.isKeyDown('ShiftLeft') || input.isKeyDown('ShiftRight') ? .1 : .01;+ if (input.isKeyPressed('ArrowLeft')) state.hsv.s -= step; if (input.isKeyPressed('ArrowRight')) state.hsv.s += step;+ if (input.isKeyPressed('ArrowDown')) state.hsv.v -= step; if (input.isKeyPressed('ArrowUp')) state.hsv.v += step;+ state.hsv.s = Math.max(0, Math.min(1, state.hsv.s)); state.hsv.v = Math.max(0, Math.min(1, state.hsv.v));+ color = col.fromHsv(state.hsv.h, state.hsv.s, state.hsv.v, color.a);+ }+ }+ color = normalizePickerColor(color, data.alphaEnabled); state.color = { ...color }; state.alpha = color.a;+ state.editingHSV = false;+ if (!col.equals(data.color, color)) { world.insert(root, UIColorPicker, { ...data, color }); data = world.get(root, UIColorPicker); }+ if (child(root, data.hue, UISlider) && world.get(data.hue, UISlider).value !== state.hsv.h) world.update(data.hue, UISlider, slider => { slider.value = state!.hsv.h; });+ if (child(root, data.alpha, UISlider) && world.get(data.alpha, UISlider).value !== color.a) world.update(data.alpha, UISlider, slider => { slider.value = color.a; });+ const alphaDisplay = data.alphaEnabled ? UIDisplay.Flex : UIDisplay.None;+ if (child(root, data.alpha, UINode) && world.get(data.alpha, UINode).display !== alphaDisplay) world.update(data.alpha, UINode, node => { node.display = alphaDisplay; });+ if (owner && !state.plane) {+ const pixels = new Uint8Array(64 * 64 * 4); paintPlane(pixels, state.hsv.h);+ // Canvas content means its owner repaints after loss, without+ // requiring a DOM canvas or changing the engine texture handle.+ const handle = createTextureFromPixels(app.wasmModule, { width: 64, height: 64, pixels }, TextureContent.Canvas, false,+ { filterMode: 'linear', wrapMode: 'clamp' }, owner);+ const current = state;+ const refill = (): boolean => {+ if (states.get(root) !== current || !owner) return false;+ updateTextureSubregion(app.wasmModule, handle, 0, 0, 64, 64, pixels, owner); return true;+ };+ state.plane = { handle, pixels, hue: state.hsv.h, refill }; provideTextureContent(handle, refill);+ }+ if (state.plane) {+ if (Math.abs(state.plane.hue - state.hsv.h) > .0001) {+ state.plane.hue = state.hsv.h; paintPlane(state.plane.pixels, state.hsv.h);+ updateTextureSubregion(app.wasmModule, state.plane.handle, 0, 0, 64, 64, state.plane.pixels, owner!);+ }+ image(root, data.sv, state.plane.handle, undefined, { x: .5 / 64, y: .5 / 64 }, { x: 63 / 64, y: 63 / 64 });+ } else {+ const hueColor = col.fromHsv(state.hsv.h, 1, 1);+ if (child(root, data.sv, UIVisual) && !col.equals(world.get(data.sv, UIVisual).color, hueColor)) world.update(data.sv, UIVisual, visual => { visual.color = hueColor; });+ }+ if (child(root, data.cursor, UINode)) {+ const node = world.get(data.cursor, UINode), left = state.hsv.s * 100, top = (1 - state.hsv.v) * 100;+ if (Math.abs(node.insetLeft.value - left) > .001 || Math.abs(node.insetTop.value - top) > .001) world.update(data.cursor, UINode, n => { n.insetLeft = percent(left); n.insetTop = percent(top); });+ }+ if (child(root, data.preview, UIVisual) && !col.equals(world.get(data.preview, UIVisual).color, color)) world.update(data.preview, UIVisual, visual => { visual.color = color; });+ if (ramps.length) {+ image(root, data.hue, ramps[1], undefined, { x: .5 / 361, y: 0 }, { x: 360 / 361, y: 1 });+ image(root, data.alpha, ramps[2], undefined, undefined, undefined, true);+ // Reverse the shared white ramp for a transparent-to-opaque alpha bar.+ image(root, data.alphaRamp, ramps[0], { ...color, a: 1 }, { x: .75, y: 0 }, { x: -.5, y: 1 });+ for (const entity of [data.hue, data.alpha]) if (child(root, entity, UISlider)) {+ const slider = world.get(entity, UISlider);+ if (child(root, slider.fill, UIVisual) && world.get(slider.fill, UIVisual).enabled) world.update(slider.fill, UIVisual, visual => { visual.enabled = false; });+ }+ }+ const values = data.format === 1 ? [color.r * 255, color.g * 255, color.b * 255, color.a * 100]+ : [state.hsv.h, state.hsv.s * 100, state.hsv.v * 100, color.a * 100];+ const inputs = [...data.fields.slice(0, 4).map((field, index) => ({ field, index })), { field: data.hex, index: 4 }];+ for (const { index, field } of inputs) if (child(root, field, TextInput) && focus.focusedEntity !== field) {+ const value = index === 4 ? col.toHex(color, true) : String(Math.round(values[index]));+ if (world.get(field, TextInput).value !== value) world.update(field, TextInput, text => { text.value = value; text.cursorPos = Math.min(text.cursorPos, value.length); });+ }+ if (state.format !== data.format || initial) {+ const labels = data.format === 1 ? ['R', 'G', 'B', 'A %'] : ['H °', 'S %', 'V %', 'A %'];+ if (world.has(root, Children)) for (const entity of world.get(root, Children).entities) if (world.has(entity, Name) && world.has(entity, Text)) {+ const match = /^ColorChannelLabel([0-3])$/.exec(world.get(entity, Name).value);+ if (match) world.update(entity, Text, text => { text.content = labels[Number(match[1])]; });+ }+ state.format = data.format;+ }+ const history = JSON.stringify([data.history, data.historyLimit, data.rememberColors]);+ if (state.history !== history) {+ state.history = history; state.swatchOff.forEach(off => off()); state.swatchOff = [];+ state.swatches.forEach(e => { if (world.valid(e)) world.despawn(e); }); state.swatches = [];+ const colors = data.history.slice(0, Math.max(0, Math.min(32, Math.floor(data.historyLimit) || 0)));+ if (child(root, data.rememberButton, UINode)) world.update(data.rememberButton, UINode, node => { node.display = data.rememberColors ? UIDisplay.Flex : UIDisplay.None; });+ if (child(root, data.historyRoot, UINode) && data.rememberColors) colors.forEach((value, index) => {+ const swatch = spawnUIEntity({ world, parent: data.historyRoot,+ node: { position: 1, width: px(22), height: px(22), insetLeft: px((index % 8) * 29), insetTop: px(Math.floor(index / 8) * 29) }, visual: { color: normalizePickerColor(value) } });+ makeWidgetInteractable(world, swatch); state!.swatches.push(swatch);+ state!.swatchOff.push(events.on(swatch, UIEventType.Click, () => { if (playing() && available(root)) setColor(root, value); }));+ });+ }+ if (!initial && !col.equals(previous, color)) events.emit(root, UIEventType.Change, { color: { ...color } });+ }+ }, { name: 'UIColorPickerSystem', runAfter: ['UISliderSystem', 'FocusSystem'] }));+ const offDespawn = world.onDespawn(entity => destroy(entity));+ return () => { offDespawn(); for (const entity of [...states.keys()]) destroy(entity); local.dispose(); ramps.forEach(handle => owner?.releaseTexture(handle)); ramps = []; };+}diff --git a/sdk/src/ui/behavior/color-picker.ts b/sdk/src/ui/behavior/color-picker.tsnew file mode 100644index 000000000..2b7a3ca3e--- /dev/null+++ b/sdk/src/ui/behavior/color-picker.ts@@ -0,0 +1,37 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import { defineComponent } from '../../ecs/component';+import type { Color, Entity } from '../../types';++/** Canonical RGBA value plus ordinary editable UI children. @beta */+export interface UIColorPickerData {+ color: Color;+ alphaEnabled: boolean;+ format: number;+ rememberColors: boolean;+ historyLimit: number;+ history: Color[];+ sv: Entity;+ alphaRamp: Entity;+ cursor: Entity;+ hue: Entity;+ alpha: Entity;+ fields: Entity[];+ hex: Entity;+ historyRoot: Entity;+ rememberButton: Entity;+ preview: Entity;+}++/** HSV is an editing coordinate system; values retain the engine's Color semantics. @beta */+export const UIColorPicker = defineComponent<UIColorPickerData>('UIColorPicker', {+ color: { r: 0.216, g: 0.565, b: 0.878, a: 1 }, alphaEnabled: true, format: 0,+ rememberColors: true, historyLimit: 8, history: [], sv: 0 as Entity,+ alphaRamp: 0 as Entity, cursor: 0 as Entity,+ hue: 0 as Entity, alpha: 0 as Entity, fields: [], hex: 0 as Entity,+ historyRoot: 0 as Entity, rememberButton: 0 as Entity, preview: 0 as Entity,+}, {+ entityFields: ['sv', 'alphaRamp', 'cursor', 'hue', 'alpha', 'fields', 'hex', 'historyRoot', 'rememberButton', 'preview'],+ fields: { format: { enum: [{ label: 'HSV + HEX', value: 0 }, { label: 'RGB + HEX', value: 1 }] },+ historyLimit: { min: 0, max: 32, step: 1 } },+});diff --git a/sdk/src/ui/behavior/plugin.ts b/sdk/src/ui/behavior/plugin.tsindex 8120dfd94..a230754e2 100644--- a/sdk/src/ui/behavior/plugin.ts+++ b/sdk/src/ui/behavior/plugin.ts@@ -16,6 +16,8 @@ import { ScreenOverlay, type ScreenOverlayData } from '../core/screen-overlay';import { uiPointerFor } from '../util/ui-pick';import { PluginName, SystemLabel } from '../../ecs/systemLabels';import { ListView, ListViewRegistry } from '../collection/list-view';+import { UICollections } from '../collection/collection-host';+import { UIConsumesDrag } from '../input/drag-consumption';import { ScrollContainer, ScrollContainerRegistry } from '../collection/scroll-container';import { createScrollAdoptSystem } from './scroll';import { engineApi } from '../../ecs/bridge/engineApi';@@ -112,6 +114,11 @@ export class UIBehaviorPlugin implements Plugin {const scrollContainers = new ScrollContainerRegistry();this.scrollContainers_ = scrollContainers;+ app.insertResource(UICollections, {+ registerListView: list => listViews.add(list), unregisterListView: list => listViews.remove(list),+ attachScrollContainer: (entity, container) => scrollContainers.attach(entity, container),+ detachScrollContainer: entity => scrollContainers.detach(entity),+ });app.world.onDespawn((entity) => scrollContainers.detach(entity));const world = app.world;@@ -222,6 +229,7 @@ export class UIBehaviorPlugin implements Plugin {}}if (hovered === null) return null;+ if (dragOnly && world.has(hovered, UIConsumesDrag)) return null;const eligible = (e: Entity): boolean => {const c = scrollContainers.get(e);return !!c && scrollAvailable(e) && (!dragOnly || c.getDragScroll());@@ -229,6 +237,7 @@ export class UIBehaviorPlugin implements Plugin {if (eligible(hovered)) return hovered;let found: Entity | null = null;walkParentChain(world, hovered, (ancestor) => {+ if (dragOnly && world.has(ancestor, UIConsumesDrag)) return true;if (eligible(ancestor)) {found = ancestor;return true;diff --git a/sdk/src/ui/behavior/slider.ts b/sdk/src/ui/behavior/slider.tsindex 12f2fd8f3..9ecc4a103 100644--- a/sdk/src/ui/behavior/slider.ts+++ b/sdk/src/ui/behavior/slider.ts@@ -30,6 +30,7 @@ import { Interactable, type InteractableData } from '../input/interactable';import { Focusable, type FocusableData } from '../input/focusable';import { UIEventType, type UIEventQueue } from '../core/events';import { EntityStateMap } from '../util/helpers';+import { UIConsumesDrag } from '../input/drag-consumption';export interface UISliderData {min: number;@@ -98,6 +99,7 @@ export function createSliderSystem(world: World, events: UIEventQueue): SystemDe|| !world.has(active, Transform) || !input.isMouseButtonDown(0))) active = null;for (const e of world.getEntitiesWithComponents([UISlider])) {if (!world.valid(e) || !world.has(e, UISlider)) continue;+ if (!world.has(e, UIConsumesDrag)) world.insert(e, UIConsumesDrag);const d = world.get(e, UISlider) as UISliderData;let next = d.value;diff --git a/sdk/src/ui/behavior/tree-view.ts b/sdk/src/ui/behavior/tree-view.tsnew file mode 100644index 000000000..ef3c70192--- /dev/null+++ b/sdk/src/ui/behavior/tree-view.ts@@ -0,0 +1,36 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import { defineComponent } from '../../ecs/component';++/** Optional authored adapter; runtime TreeDataSource can wrap any project model. @beta */+export interface TreeViewNode {+ id: string;+ label: string;+ children?: TreeViewNode[];+ selectable?: boolean;+}++/** Serializable configuration; live adapters and subscriptions remain per world. @beta */+export interface UITreeViewData {+ nodes: TreeViewNode[];+ expandedIds: Array<string | number>;+ selectedIds: Array<string | number>;+ selectionMode: number;+ rowHeight: number;+ indent: number;+ dragEnabled: boolean;+ rowPrefab: string;+ emptyPrefab: string;+}++/** One virtualized collection with stable project IDs, not a second UI tree. @beta */+export const UITreeView = defineComponent<UITreeViewData>('UITreeView', {+ nodes: [], expandedIds: [], selectedIds: [], selectionMode: 1,+ rowHeight: 32, indent: 20, dragEnabled: false, rowPrefab: '', emptyPrefab: '',+}, {+ fields: {+ selectionMode: { enum: [{ label: 'None', value: 0 }, { label: 'Single', value: 1 }, { label: 'Multiple', value: 2 }] },+ rowHeight: { min: 12, step: 1, unit: 'px' }, indent: { min: 0, step: 1, unit: 'px' },+ },+ assetFields: [{ field: 'rowPrefab', type: 'prefab' }, { field: 'emptyPrefab', type: 'prefab' }],+});diff --git a/sdk/src/ui/collection/collection-host.ts b/sdk/src/ui/collection/collection-host.tsnew file mode 100644index 000000000..b8361c9ed--- /dev/null+++ b/sdk/src/ui/collection/collection-host.ts@@ -0,0 +1,16 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import { defineResource } from '../../ecs/resource';+import type { Entity } from '../../types';+import type { ListView } from './list-view';+import type { ScrollContainer } from './scroll-container';++/** @internal Per-app collection wiring; never captured through a plugin singleton. */+export interface CollectionHost {+ registerListView(list: ListView<unknown>): void;+ unregisterListView(list: ListView<unknown>): void;+ attachScrollContainer(entity: Entity, container: ScrollContainer): void;+ detachScrollContainer(entity: Entity): void;+}+/** @internal Installed by UIBehaviorPlugin before collection widget adoption. */+export const UICollections = defineResource<CollectionHost>(null!, 'UICollections');diff --git a/sdk/src/ui/collection/tree-data-source.ts b/sdk/src/ui/collection/tree-data-source.tsnew file mode 100644index 000000000..b8586c294--- /dev/null+++ b/sdk/src/ui/collection/tree-data-source.ts@@ -0,0 +1,145 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import type { DataSource, DataSourceChange, Unsubscribe } from './data-source';++/** Stable application identity, independent of ECS entity IDs. @beta */+export type TreeItemId = string | number;++/** Adapt any project model to a tree; mutations and persistence stay with the host. @beta */+export interface TreeDataSource<T> {+ getRoots(): readonly T[];+ getChildren(item: T): readonly T[];+ getId(item: T): TreeItemId;+ getLabel(item: T): string;+ isSelectable?(item: T): boolean;+ subscribe?(listener: () => void): Unsubscribe;+}++/** A visible row projected into the existing virtualized ListView. @beta */+export interface TreeRow<T> {+ readonly id: TreeItemId;+ readonly item: T;+ readonly parentId: TreeItemId | null;+ readonly depth: number;+ readonly hasChildren: boolean;+ readonly expanded: boolean;+ readonly selectable: boolean;+ readonly selected: boolean;+}++/** A drop is a request, never an implicit mutation of the host model. @beta */+export interface TreeDropRequest<T> {+ readonly source: TreeRow<T>;+ readonly target: TreeRow<T>;+ readonly position: 'before' | 'inside' | 'after';+}++/** Iterative traversal handles deep trees; stable IDs retain state through reorder. @beta */+export class TreeViewModel<T> implements DataSource<TreeRow<T>> {+ private rows_: TreeRow<T>[] = [];+ private nodes_ = new Map<TreeItemId, TreeRow<T>>();+ private children_ = new Map<TreeItemId | null, TreeItemId[]>();+ private expanded_ = new Set<TreeItemId>();+ private selected_ = new Set<TreeItemId>();+ private readonly listeners_ = new Set<(change: DataSourceChange) => void>();+ private readonly off_: Unsubscribe | undefined;+ private disposed_ = false;++ constructor(readonly source: TreeDataSource<T>, expanded: readonly TreeItemId[] = []) {+ this.expanded_ = new Set(expanded);+ this.refresh();+ this.off_ = source.subscribe?.(() => this.refresh());+ }++ getCount(): number { return this.rows_.length; }+ getItem(index: number): TreeRow<T> {+ if (!Number.isInteger(index) || index < 0 || index >= this.rows_.length) throw new RangeError('Tree row index out of range');+ return this.rows_[index];+ }+ getItemId(_index: number, row: TreeRow<T>): TreeItemId { return row.id; }+ getNode(id: TreeItemId): TreeRow<T> | undefined {+ const node = this.nodes_.get(id);+ return node ? { ...node, expanded: this.expanded_.has(id), selected: this.selected_.has(id) } : undefined;+ }+ indexOf(id: TreeItemId): number { return this.rows_.findIndex(row => row.id === id); }+ get expandedIds(): readonly TreeItemId[] { return [...this.expanded_]; }+ get selectedIds(): readonly TreeItemId[] { return [...this.selected_]; }+ subscribe(listener: (change: DataSourceChange) => void): Unsubscribe {+ this.listeners_.add(listener); return () => { this.listeners_.delete(listener); };+ }++ /** Build transactionally: invalid IDs/cycles leave the previous projection intact. */+ refresh(): void {+ if (this.disposed_) return;+ const nodes = new Map<TreeItemId, TreeRow<T>>(), children = new Map<TreeItemId | null, TreeItemId[]>();+ const roots = this.source.getRoots();+ const stack: Array<{ item: T; parentId: TreeItemId | null; depth: number }> = [];+ for (let i = roots.length - 1; i >= 0; i--) stack.push({ item: roots[i], parentId: null, depth: 0 });+ while (stack.length) {+ const { item, parentId, depth } = stack.pop()!;+ const id = this.source.getId(item);+ if ((typeof id !== 'string' && typeof id !== 'number') || (typeof id === 'number' && !Number.isFinite(id))) {+ throw new Error('Tree item ID must be a finite number or a string');+ }+ if (nodes.has(id)) throw new Error(`Duplicate or cyclic tree item ID: ${id}`);+ const nested = this.source.getChildren(item);+ nodes.set(id, { id, item, parentId, depth, hasChildren: nested.length > 0,+ expanded: this.expanded_.has(id), selectable: this.source.isSelectable?.(item) !== false, selected: this.selected_.has(id) });+ let siblings = children.get(parentId);+ if (!siblings) children.set(parentId, siblings = []);+ siblings.push(id);+ for (let i = nested.length - 1; i >= 0; i--) stack.push({ item: nested[i], parentId: id, depth: depth + 1 });+ }+ this.nodes_ = nodes; this.children_ = children;+ this.expanded_ = new Set([...this.expanded_].filter(id => nodes.get(id)?.hasChildren));+ this.selected_ = new Set([...this.selected_].filter(id => nodes.get(id)?.selectable));+ this.project_();+ }++ setExpanded(ids: readonly TreeItemId[]): void {+ const next = new Set(ids.filter(id => this.nodes_.get(id)?.hasChildren));+ if (next.size === this.expanded_.size && [...next].every(id => this.expanded_.has(id))) return;+ this.expanded_ = next; this.project_();+ }+ toggle(id: TreeItemId): void {+ if (!this.nodes_.get(id)?.hasChildren) return;+ if (this.expanded_.has(id)) this.expanded_.delete(id); else this.expanded_.add(id);+ this.project_();+ }+ select(ids: readonly TreeItemId[], mode: number = 1): void {+ const eligible = ids.filter(id => this.nodes_.get(id)?.selectable);+ const next = new Set(mode === 0 ? [] : mode === 2 ? eligible : eligible.slice(-1));+ if (next.size === this.selected_.size && [...next].every(id => this.selected_.has(id))) return;+ this.selected_ = next;+ this.project_();+ }+ isSelected(id: TreeItemId): boolean { return this.selected_.has(id); }+ /** Reveal ancestors without forcing any project-specific selection policy. */+ reveal(id: TreeItemId): void {+ let node = this.nodes_.get(id);+ while (node?.parentId != null) { this.expanded_.add(node.parentId); node = this.nodes_.get(node.parentId); }+ this.project_();+ }+ canDrop(request: TreeDropRequest<T>): boolean {+ if (!['before', 'inside', 'after'].includes(request.position)) return false;+ const source = this.nodes_.get(request.source.id), target = this.nodes_.get(request.target.id);+ if (!source || !target || source.id === target.id) return false;+ let ancestor: TreeRow<T> | undefined = target;+ while (ancestor) { if (ancestor.id === source.id) return false; ancestor = ancestor.parentId == null ? undefined : this.nodes_.get(ancestor.parentId); }+ return true;+ }+ dispose(): void {+ if (this.disposed_) return; this.disposed_ = true; this.off_?.(); this.listeners_.clear();+ this.rows_ = []; this.nodes_.clear(); this.children_.clear();+ }+ private project_(): void {+ const rows: TreeRow<T>[] = [], stack = [...(this.children_.get(null) ?? [])].reverse();+ while (stack.length) {+ const id = stack.pop()!, node = this.nodes_.get(id)!;+ const row = { ...node, expanded: this.expanded_.has(id), selected: this.selected_.has(id) }; this.nodes_.set(id, row); rows.push(row);+ if (row.expanded) { const children = this.children_.get(id) ?? []; for (let i = children.length - 1; i >= 0; i--) stack.push(children[i]); }+ }+ this.rows_ = rows; this.emit_();+ }+ private emit_(): void { for (const listener of [...this.listeners_]) listener({ type: 'reset' }); }+}diff --git a/sdk/src/ui/index.ts b/sdk/src/ui/index.tsindex 98ae91742..a91403051 100644--- a/sdk/src/ui/index.ts+++ b/sdk/src/ui/index.ts@@ -143,6 +143,16 @@ export {} from './behavior/toggle';export { UITabView, createTabViewSystem, applyTabViewSelection, tabViewBindings } from './behavior/tab-view';export type { UITabViewData } from './behavior/tab-view';+export { UITreeView } from './behavior/tree-view';+export type { UITreeViewData, TreeViewNode } from './behavior/tree-view';+export { UIColorPicker } from './behavior/color-picker';+export type { UIColorPickerData } from './behavior/color-picker';+export { TreeViewModel } from './collection/tree-data-source';+export type { TreeDataSource, TreeItemId, TreeRow, TreeDropRequest } from './collection/tree-data-source';+export { createTreeView, setTreeViewData } from './widgets/tree-view';+export type { TreeViewOptions, TreeViewHandle } from './widgets/tree-view';+export { createColorPicker } from './widgets/color-picker';+export type { ColorPickerOptions, ColorPickerHandle } from './widgets/color-picker';export { UITooltip, createTooltipSystem, placeTooltip, previewTooltip } from './behavior/tooltip';export type { UITooltipData, TooltipPrefabHost } from './behavior/tooltip';export { createTabView } from './widgets/tab-view';diff --git a/sdk/src/ui/input/drag-consumption.ts b/sdk/src/ui/input/drag-consumption.tsnew file mode 100644index 000000000..e0da72536--- /dev/null+++ b/sdk/src/ui/input/drag-consumption.ts@@ -0,0 +1,6 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import { defineComponent } from '../../ecs/component';++/** @internal A control owns its drag; enclosing scroll views still accept wheel input. */+export const UIConsumesDrag = defineComponent('UIConsumesDrag', {}, { transient: true });diff --git a/sdk/src/ui/input/focus.ts b/sdk/src/ui/input/focus.tsindex df6ecbfba..4eaa0d49c 100644--- a/sdk/src/ui/input/focus.ts+++ b/sdk/src/ui/input/focus.ts@@ -19,6 +19,9 @@ import { UIEvents, UIEventQueue, UIEventType } from '../core/events';import { PluginName } from '../../ecs/systemLabels';import { moveUIFocus } from './focus-transition';import { UITabView, tabViewBindings } from '../behavior/tab-view';+import { UITreeView } from '../behavior/tree-view';+import { UIColorPicker } from '../behavior/color-picker';+import { UISlider } from '../behavior/slider';export class FocusPlugin implements Plugin {name = PluginName.Focus;@@ -42,6 +45,10 @@ export class FocusPlugin implements Plugin {this.keyDefaults_.set(app, setKeyDefaultPolicy(app.getResource(Input), code => {if (!playModeOnly() || app.isPaused()) return false;if (['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Home', 'End'].includes(code)) {+ const focused = focusManager.focusedEntity;+ if (focused !== null && isFocusEligible(world, focused)+ && (world.has(focused, UITreeView) || world.has(focused, UISlider)+ || (code.startsWith('Arrow') && world.getEntitiesWithComponents([UIColorPicker]).some(root => world.get(root, UIColorPicker).sv === focused)))) return true;return world.getEntitiesWithComponents([UITabView]).some(root => {const d = world.get(root, UITabView);return (code === 'Home' || code === 'End' || (d.verticaldiff --git a/sdk/src/ui/ui-plugin.ts b/sdk/src/ui/ui-plugin.tsindex f035f6215..bcab0c165 100644--- a/sdk/src/ui/ui-plugin.ts+++ b/sdk/src/ui/ui-plugin.ts@@ -29,6 +29,9 @@ import { focusPlugin } from './input/focus';import { textInputPlugin } from './text/text-input-plugin';import { uiRenderOrderPlugin } from './render/render-order';import { uiVisibilityPlugin } from './core/visibility';+import { UICollections } from './collection/collection-host';+import { installTreeViews } from './widgets/tree-view';+import { installColorPickers } from './behavior/color-picker-system';import type { UIEventQueue } from './core/events';import type { ListView } from './collection/list-view';@@ -55,16 +58,21 @@ const SUB_PLUGINS: Plugin[] = [export class UIPlugin implements Plugin {name = 'ui';+ private readonly widgetCleanups_ = new WeakMap<App, () => void>();build(app: App): void {for (const plugin of SUB_PLUGINS) {plugin.build(app);}+ const offTree = installTreeViews(app, app.getResource(UICollections));+ const offColor = installColorPickers(app);+ this.widgetCleanups_.set(app, () => { offTree(); offColor(); });}// App.quit only reaches *installed* plugins — the composed sub-plugins'// cleanups are unreachable unless forwarded here.cleanup(app?: App): void {+ if (app) { this.widgetCleanups_.get(app)?.(); this.widgetCleanups_.delete(app); }for (let i = SUB_PLUGINS.length - 1; i >= 0; i--) {SUB_PLUGINS[i].cleanup?.(app);}diff --git a/sdk/src/ui/widgets/color-picker.ts b/sdk/src/ui/widgets/color-picker.tsnew file mode 100644index 000000000..67588e6ec--- /dev/null+++ b/sdk/src/ui/widgets/color-picker.ts@@ -0,0 +1,80 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import type { World } from '../../ecs/world';+import type { Color, Entity } from '../../types';+import { Name } from '../../ecs/component';+import { spawnUIEntity, type UINodeInit } from '../core/compose';+import { px, percent } from '../core/dimension';+import { UIColorPicker } from '../behavior/color-picker';+import { createSlider } from './slider';+import { createTextInput } from './text-input';+import { createButton } from './button';+import { makeWidgetInteractable } from '../input/interactable';+import { UIEventType, type UIEventQueue } from '../core/events';+import { themeColors } from '../theme/tokens';+import { markThemed, ThemeStyle } from '../theme/theme-style';+import { col } from '../../math/color';+import { TextAlign, TextVerticalAlign } from '../core/text';++/** Explicit callbacks bind the same picker to UI, sprites, materials, or project data. @beta */+export interface ColorPickerOptions {+ world: World;+ events: UIEventQueue;+ parent?: Entity;+ node?: UINodeInit;+ color?: Color;+ alphaEnabled?: boolean;+ format?: number;+ history?: readonly Color[];+ historyLimit?: number;+ rememberColors?: boolean;+ onChange?: (color: Color) => void;+ onHistoryChange?: (colors: readonly Color[]) => void;+}+/** No implicit target mutation or global history storage. @beta */+export interface ColorPickerHandle {+ readonly entity: Entity;+ getColor(): Color;+ setColor(color: Color): void;+ dispose(): void;+}++/** The picker composes existing TextInput, Slider and Button controls. @beta */+export function createColorPicker(opts: ColorPickerOptions): ColorPickerHandle {+ const { world, events } = opts, colors = themeColors();+ const entity = spawnUIEntity({ world, parent: opts.parent, node: opts.node ?? { width: px(280), height: px(412) }, visual: { color: colors.surfaceElevated } });+ markThemed(world, entity, { visual: 'surfaceElevated' });+ const box = (top: number, height: number): UINodeInit => ({ position: 1, insetLeft: px(14), insetRight: px(14), insetTop: px(top), height: px(height) });+ const sv = spawnUIEntity({ world, parent: entity, node: box(14, 168), visual: { color: colors.primary } });+ makeWidgetInteractable(world, sv); world.insert(sv, Name, { value: 'SaturationValue' });+ const cursor = spawnUIEntity({ world, parent: sv, node: { position: 1, width: px(18), height: px(18), insetLeft: percent(75), insetTop: percent(12), marginLeft: px(-9), marginTop: px(-9) },+ text: { content: '○', fontSize: 16, color: { r: 1, g: 1, b: 1, a: 1 }, strokeColor: { r: 0, g: 0, b: 0, a: 1 }, strokeWidth: 1, align: TextAlign.Center, verticalAlign: TextVerticalAlign.Middle, wordWrap: false } });+ const color = opts.color ?? UIColorPicker._default.color, hsv = col.toHsv(color);+ const hue = createSlider({ world, events, parent: entity, node: box(194, 12), min: 0, max: 360, value: hsv.h, handleWidth: 6 });+ const alpha = createSlider({ world, events, parent: entity, node: box(218, 12), min: 0, max: 1, value: color.a, handleWidth: 6 });+ // Gradient data has its own color meaning; only the surrounding chrome themes.+ world.remove(hue.entity, ThemeStyle); world.remove(alpha.entity, ThemeStyle);+ const alphaRamp = spawnUIEntity({ world, parent: alpha.fillEntity, node: { fill: true }, visual: {} });+ world.insert(hue.entity, Name, { value: 'Hue' }); world.insert(alpha.entity, Name, { value: 'Alpha' });+ const fields: Entity[] = [];+ for (let i = 0; i < 4; i++) {+ const label = spawnUIEntity({ world, parent: entity, node: { position: 1, insetLeft: percent(i * 23 + 5), insetTop: px(246), width: percent(21), height: px(16) }, text: { content: ['H °', 'S %', 'V %', 'A %'][i], fontSize: 11, color: colors.text } });+ markThemed(world, label, { text: 'text' }); world.insert(label, Name, { value: `ColorChannelLabel${i}` });+ const field = createTextInput({ world, events, parent: entity, value: '', node: { position: 1, insetLeft: percent(i * 23 + 5), insetTop: px(264), width: percent(21), height: px(27) }, fontSize: 12 });+ fields.push(field.entity); world.insert(field.entity, Name, { value: `ColorChannel${i}` });+ }+ const hex = createTextInput({ world, events, parent: entity, value: col.toHex(color, true), node: box(303, 28), fontSize: 12 });+ world.insert(hex.entity, Name, { value: 'ColorHex' });+ const remember = createButton({ world, events, parent: entity, node: { position: 1, insetRight: px(14), insetTop: px(343), width: px(104), height: px(24) }, text: { content: '+ Remember', fontSize: 11 } });+ const preview = spawnUIEntity({ world, parent: entity, node: { position: 1, insetLeft: px(14), insetTop: px(343), width: px(32), height: px(24) }, visual: { color } });+ const historyRoot = spawnUIEntity({ world, parent: entity, node: box(378, 22) });+ world.insert(entity, UIColorPicker, { ...structuredClone(UIColorPicker._default), color: { ...color },+ alphaEnabled: opts.alphaEnabled ?? true, format: opts.format ?? 0, history: opts.history?.map(value => ({ ...value })) ?? [],+ historyLimit: opts.historyLimit ?? 8, rememberColors: opts.rememberColors ?? true,+ sv, alphaRamp, cursor, hue: hue.entity, alpha: alpha.entity, fields, hex: hex.entity, historyRoot, rememberButton: remember.entity, preview });+ const off = opts.onChange ? events.on(entity, UIEventType.Change, event => opts.onChange!({ ...(event.data as { color: Color }).color })) : undefined;+ const offHistory = opts.onHistoryChange ? events.on(entity, 'history_change', event => opts.onHistoryChange!((event.data as { colors: Color[] }).colors.map(value => ({ ...value })))) : undefined;+ return { entity, getColor: () => ({ ...world.get(entity, UIColorPicker).color }),+ setColor(next) { world.update(entity, UIColorPicker, data => { data.color = { ...next }; }); },+ dispose() { off?.(); offHistory?.(); if (world.valid(entity)) world.despawn(entity); } };+}diff --git a/sdk/src/ui/widgets/list-view.ts b/sdk/src/ui/widgets/list-view.tsindex 14a79b5ae..b229fa5b1 100644--- a/sdk/src/ui/widgets/list-view.ts+++ b/sdk/src/ui/widgets/list-view.ts@@ -17,7 +17,7 @@import type { Entity, Vec2 } from '../../types';import type { World } from '../../ecs/world';-import { UINode, UIPositionType, type UINodeData } from '../core/ui-node';+import { UINode, UIDisplay, UIPositionType, type UINodeData } from '../core/ui-node';import { px, auto } from '../core/dimension';import { UIMask, MaskMode } from '../core/ui-mask';@@ -267,7 +267,7 @@ export function createListView<T>(opts: CreateListViewOptions<T>): ListViewHandlconst viewport = spawnUIEntity({world,parent: opts.parent,- node: { width: px(viewportSize.x), height: px(viewportSize.y), ...opts.node },+ node: { width: opts.node?.fill ? auto() : px(viewportSize.x), height: opts.node?.fill ? auto() : px(viewportSize.y), ...opts.node },visual: opts.background ?? { color: { r: 0, g: 0, b: 0, a: 0 } },});world.insert(viewport, UIMask, { enabled: true, mode: MaskMode.Scissor });@@ -317,7 +317,15 @@ export function createListView<T>(opts: CreateListViewOptions<T>): ListViewHandltemplates,recycleBuffer: opts.recycleBuffer,placeItem: (w, e, rect) => placeByInset(w, e, rect),- setVisible: (w, e, v) => setUIVisible(w, e, v),+ setVisible: (w, e, visible) => {+ // Recycled rows include text, nested controls and style prefabs.+ // Hide the subtree, rather than only its background quad.+ if (w.valid(e) && w.has(e, UINode)) {+ const node = w.get(e, UINode), display = visible ? UIDisplay.Flex : UIDisplay.None;+ if (node.display !== display) w.insert(e, UINode, { ...node, display });+ }+ setUIVisible(w, e, visible);+ },onItemBound: opts.onItemBound,}, viewport, scroll, crossLayout);host.registerListView(view as ListView<unknown>);diff --git a/sdk/src/ui/widgets/prefabs/ColorPicker.esprefab b/sdk/src/ui/widgets/prefabs/ColorPicker.esprefabnew file mode 100644index 000000000..837ffa487--- /dev/null+++ b/sdk/src/ui/widgets/prefabs/ColorPicker.esprefab@@ -0,0 +1,3966 @@+{+ "version": "2",+ "name": "ColorPicker",+ "rootEntityId": "0",+ "entities": [+ {+ "prefabEntityId": "0",+ "name": "ColorPicker",+ "parent": null,+ "children": [+ "21",+ "18",+ "14",+ "13",+ "12",+ "11",+ "10",+ "9",+ "8",+ "7",+ "6",+ "5",+ "3",+ "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": 280,+ "unit": 0+ },+ "height": {+ "value": 412,+ "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.14,+ "g": 0.14,+ "b": 0.16,+ "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": "surfaceElevated"+ }+ },+ {+ "type": "UIColorPicker",+ "data": {+ "color": {+ "r": 0.216,+ "g": 0.565,+ "b": 0.878,+ "a": 1+ },+ "alphaEnabled": true,+ "format": 0,+ "rememberColors": true,+ "historyLimit": 8,+ "history": [],+ "sv": "21",+ "alphaRamp": "17",+ "cursor": "22",+ "hue": "18",+ "alpha": "14",+ "fields": [+ "12",+ "10",+ "8",+ "6"+ ],+ "hex": "5",+ "historyRoot": "1",+ "rememberButton": "3",+ "preview": "2"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "21",+ "name": "SaturationValue",+ "parent": "0",+ "children": [+ "22"+ ],+ "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": 168,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 14,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "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": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "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": 18,+ "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": -9,+ "unit": 0+ },+ "marginTop": {+ "value": -9,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 75,+ "unit": 1+ },+ "insetTop": {+ "value": 12,+ "unit": 1+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "○",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 16,+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "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": 1,+ "shadowColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "shadowBlur": 0,+ "shadowOffsetX": 0,+ "shadowOffsetY": 0,+ "richText": false,+ "renderMode": 0,+ "layer": 0,+ "enabled": true+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "18",+ "name": "Hue",+ "parent": "0",+ "children": [+ "20",+ "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": 0,+ "unit": 2+ },+ "height": {+ "value": 12,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 194,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "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": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UISlider",+ "data": {+ "min": 0,+ "max": 360,+ "step": 0,+ "value": 208.36858006042303,+ "fill": "20",+ "handle": "19"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "20",+ "name": "Node",+ "parent": "18",+ "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.5788016112789529,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "primary"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "19",+ "name": "Node",+ "parent": "18",+ "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": 6,+ "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": -3,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 57.88016112789529,+ "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+ },+ {+ "prefabEntityId": "14",+ "name": "Alpha",+ "parent": "0",+ "children": [+ "16",+ "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": 0,+ "unit": 2+ },+ "height": {+ "value": 12,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 218,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "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": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UISlider",+ "data": {+ "min": 0,+ "max": 1,+ "step": 0,+ "value": 1,+ "fill": "16",+ "handle": "15"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "16",+ "name": "Node",+ "parent": "14",+ "children": [+ "17"+ ],+ "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": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "primary"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "17",+ "name": "Node",+ "parent": "16",+ "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": 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+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "15",+ "name": "Node",+ "parent": "14",+ "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": 6,+ "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": -3,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 100,+ "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+ },+ {+ "prefabEntityId": "13",+ "name": "ColorChannelLabel0",+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 16,+ "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": 5,+ "unit": 1+ },+ "insetTop": {+ "value": 246,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "H °",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 11,+ "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": "12",+ "name": "ColorChannel0",+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 27,+ "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": 5,+ "unit": 1+ },+ "insetTop": {+ "value": 264,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "TextInput",+ "data": {+ "value": "",+ "placeholder": "",+ "placeholderI18nKey": "",+ "placeholderColor": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 0.5+ },+ "fontFamily": "",+ "fontSize": 12,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "backgroundColor": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "padding": 6,+ "maxLength": 0,+ "multiline": false,+ "password": false,+ "readOnly": false,+ "focused": false,+ "cursorPos": 0,+ "renderMode": 0+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "input": {+ "background": "control",+ "text": "text",+ "placeholder": "text"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "11",+ "name": "ColorChannelLabel1",+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 16,+ "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": 28,+ "unit": 1+ },+ "insetTop": {+ "value": 246,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "S %",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 11,+ "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": "10",+ "name": "ColorChannel1",+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 27,+ "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": 28,+ "unit": 1+ },+ "insetTop": {+ "value": 264,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "TextInput",+ "data": {+ "value": "",+ "placeholder": "",+ "placeholderI18nKey": "",+ "placeholderColor": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 0.5+ },+ "fontFamily": "",+ "fontSize": 12,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "backgroundColor": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "padding": 6,+ "maxLength": 0,+ "multiline": false,+ "password": false,+ "readOnly": false,+ "focused": false,+ "cursorPos": 0,+ "renderMode": 0+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "input": {+ "background": "control",+ "text": "text",+ "placeholder": "text"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "9",+ "name": "ColorChannelLabel2",+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 16,+ "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": 51,+ "unit": 1+ },+ "insetTop": {+ "value": 246,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "V %",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 11,+ "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": "8",+ "name": "ColorChannel2",+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 27,+ "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": 51,+ "unit": 1+ },+ "insetTop": {+ "value": 264,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "TextInput",+ "data": {+ "value": "",+ "placeholder": "",+ "placeholderI18nKey": "",+ "placeholderColor": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 0.5+ },+ "fontFamily": "",+ "fontSize": 12,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "backgroundColor": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "padding": 6,+ "maxLength": 0,+ "multiline": false,+ "password": false,+ "readOnly": false,+ "focused": false,+ "cursorPos": 0,+ "renderMode": 0+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "input": {+ "background": "control",+ "text": "text",+ "placeholder": "text"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "7",+ "name": "ColorChannelLabel3",+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 16,+ "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": 74,+ "unit": 1+ },+ "insetTop": {+ "value": 246,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "A %",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 11,+ "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": "6",+ "name": "ColorChannel3",+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 27,+ "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": 74,+ "unit": 1+ },+ "insetTop": {+ "value": 264,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "TextInput",+ "data": {+ "value": "",+ "placeholder": "",+ "placeholderI18nKey": "",+ "placeholderColor": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 0.5+ },+ "fontFamily": "",+ "fontSize": 12,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "backgroundColor": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "padding": 6,+ "maxLength": 0,+ "multiline": false,+ "password": false,+ "readOnly": false,+ "focused": false,+ "cursorPos": 0,+ "renderMode": 0+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "input": {+ "background": "control",+ "text": "text",+ "placeholder": "text"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "5",+ "name": "ColorHex",+ "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": 28,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 303,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "TextInput",+ "data": {+ "value": "#3790e0ff",+ "placeholder": "",+ "placeholderI18nKey": "",+ "placeholderColor": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 0.5+ },+ "fontFamily": "",+ "fontSize": 12,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "backgroundColor": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "padding": 6,+ "maxLength": 0,+ "multiline": false,+ "password": false,+ "readOnly": false,+ "focused": false,+ "cursorPos": 9,+ "renderMode": 0+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "input": {+ "background": "control",+ "text": "text",+ "placeholder": "text"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "3",+ "name": "Node",+ "parent": "0",+ "children": [+ "4"+ ],+ "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": 104,+ "unit": 0+ },+ "height": {+ "value": 24,+ "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": 343,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "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"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "4",+ "name": "Label",+ "parent": "3",+ "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": "+ Remember",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 11,+ "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": "2",+ "name": "Node",+ "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": 32,+ "unit": 0+ },+ "height": {+ "value": 24,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 343,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.216,+ "g": 0.565,+ "b": 0.878,+ "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+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "1",+ "name": "Node",+ "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": 22,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 378,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ }+ ],+ "visible": true+ }+ ]+}diff --git a/sdk/src/ui/widgets/prefabs/TreeView.esprefab b/sdk/src/ui/widgets/prefabs/TreeView.esprefabnew file mode 100644index 000000000..518a57447--- /dev/null+++ b/sdk/src/ui/widgets/prefabs/TreeView.esprefab@@ -0,0 +1,197 @@+{+ "version": "2",+ "name": "TreeView",+ "rootEntityId": "0",+ "entities": [+ {+ "prefabEntityId": "0",+ "name": "TreeView",+ "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": 320,+ "unit": 0+ },+ "height": {+ "value": 320,+ "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": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UITreeView",+ "data": {+ "nodes": [],+ "expandedIds": [],+ "selectedIds": [],+ "selectionMode": 1,+ "rowHeight": 32,+ "indent": 20,+ "dragEnabled": false,+ "rowPrefab": "",+ "emptyPrefab": ""+ }+ }+ ],+ "visible": true+ }+ ]+}diff --git a/sdk/src/ui/widgets/prefabs/generated.ts b/sdk/src/ui/widgets/prefabs/generated.tsindex 6d197b46d..9a699a4e7 100644--- a/sdk/src/ui/widgets/prefabs/generated.ts+++ b/sdk/src/ui/widgets/prefabs/generated.ts@@ -2,6 +2,4169 @@import type { PrefabData } from '../../../prefab/types';export const BUILTIN_UI_PREFABS: Record<string, PrefabData> = {+ "TreeView": {+ "version": "2",+ "name": "TreeView",+ "rootEntityId": "0",+ "entities": [+ {+ "prefabEntityId": "0",+ "name": "TreeView",+ "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": 320,+ "unit": 0+ },+ "height": {+ "value": 320,+ "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": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UITreeView",+ "data": {+ "nodes": [],+ "expandedIds": [],+ "selectedIds": [],+ "selectionMode": 1,+ "rowHeight": 32,+ "indent": 20,+ "dragEnabled": false,+ "rowPrefab": "",+ "emptyPrefab": ""+ }+ }+ ],+ "visible": true+ }+ ]+ },+ "ColorPicker": {+ "version": "2",+ "name": "ColorPicker",+ "rootEntityId": "0",+ "entities": [+ {+ "prefabEntityId": "0",+ "name": "ColorPicker",+ "parent": null,+ "children": [+ "21",+ "18",+ "14",+ "13",+ "12",+ "11",+ "10",+ "9",+ "8",+ "7",+ "6",+ "5",+ "3",+ "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": 280,+ "unit": 0+ },+ "height": {+ "value": 412,+ "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.14,+ "g": 0.14,+ "b": 0.16,+ "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": "surfaceElevated"+ }+ },+ {+ "type": "UIColorPicker",+ "data": {+ "color": {+ "r": 0.216,+ "g": 0.565,+ "b": 0.878,+ "a": 1+ },+ "alphaEnabled": true,+ "format": 0,+ "rememberColors": true,+ "historyLimit": 8,+ "history": [],+ "sv": "21",+ "alphaRamp": "17",+ "cursor": "22",+ "hue": "18",+ "alpha": "14",+ "fields": [+ "12",+ "10",+ "8",+ "6"+ ],+ "hex": "5",+ "historyRoot": "1",+ "rememberButton": "3",+ "preview": "2"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "21",+ "name": "SaturationValue",+ "parent": "0",+ "children": [+ "22"+ ],+ "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": 168,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 14,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "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": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "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": 18,+ "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": -9,+ "unit": 0+ },+ "marginTop": {+ "value": -9,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 75,+ "unit": 1+ },+ "insetTop": {+ "value": 12,+ "unit": 1+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "○",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 16,+ "color": {+ "r": 1,+ "g": 1,+ "b": 1,+ "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": 1,+ "shadowColor": {+ "r": 0,+ "g": 0,+ "b": 0,+ "a": 1+ },+ "shadowBlur": 0,+ "shadowOffsetX": 0,+ "shadowOffsetY": 0,+ "richText": false,+ "renderMode": 0,+ "layer": 0,+ "enabled": true+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "18",+ "name": "Hue",+ "parent": "0",+ "children": [+ "20",+ "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": 0,+ "unit": 2+ },+ "height": {+ "value": 12,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 194,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "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": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UISlider",+ "data": {+ "min": 0,+ "max": 360,+ "step": 0,+ "value": 208.36858006042303,+ "fill": "20",+ "handle": "19"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "20",+ "name": "Node",+ "parent": "18",+ "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.5788016112789529,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "primary"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "19",+ "name": "Node",+ "parent": "18",+ "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": 6,+ "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": -3,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 57.88016112789529,+ "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+ },+ {+ "prefabEntityId": "14",+ "name": "Alpha",+ "parent": "0",+ "children": [+ "16",+ "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": 0,+ "unit": 2+ },+ "height": {+ "value": 12,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 218,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "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": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "UISlider",+ "data": {+ "min": 0,+ "max": 1,+ "step": 0,+ "value": 1,+ "fill": "16",+ "handle": "15"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "16",+ "name": "Node",+ "parent": "14",+ "children": [+ "17"+ ],+ "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": 1,+ "material": 0,+ "enabled": true+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "visual": "primary"+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "17",+ "name": "Node",+ "parent": "16",+ "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": 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+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "15",+ "name": "Node",+ "parent": "14",+ "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": 6,+ "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": -3,+ "unit": 0+ },+ "marginTop": {+ "value": 0,+ "unit": 0+ },+ "marginRight": {+ "value": 0,+ "unit": 0+ },+ "marginBottom": {+ "value": 0,+ "unit": 0+ },+ "insetLeft": {+ "value": 100,+ "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+ },+ {+ "prefabEntityId": "13",+ "name": "ColorChannelLabel0",+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 16,+ "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": 5,+ "unit": 1+ },+ "insetTop": {+ "value": 246,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "H °",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 11,+ "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": "12",+ "name": "ColorChannel0",+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 27,+ "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": 5,+ "unit": 1+ },+ "insetTop": {+ "value": 264,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "TextInput",+ "data": {+ "value": "",+ "placeholder": "",+ "placeholderI18nKey": "",+ "placeholderColor": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 0.5+ },+ "fontFamily": "",+ "fontSize": 12,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "backgroundColor": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "padding": 6,+ "maxLength": 0,+ "multiline": false,+ "password": false,+ "readOnly": false,+ "focused": false,+ "cursorPos": 0,+ "renderMode": 0+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "input": {+ "background": "control",+ "text": "text",+ "placeholder": "text"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "11",+ "name": "ColorChannelLabel1",+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 16,+ "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": 28,+ "unit": 1+ },+ "insetTop": {+ "value": 246,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "S %",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 11,+ "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": "10",+ "name": "ColorChannel1",+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 27,+ "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": 28,+ "unit": 1+ },+ "insetTop": {+ "value": 264,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "TextInput",+ "data": {+ "value": "",+ "placeholder": "",+ "placeholderI18nKey": "",+ "placeholderColor": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 0.5+ },+ "fontFamily": "",+ "fontSize": 12,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "backgroundColor": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "padding": 6,+ "maxLength": 0,+ "multiline": false,+ "password": false,+ "readOnly": false,+ "focused": false,+ "cursorPos": 0,+ "renderMode": 0+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "input": {+ "background": "control",+ "text": "text",+ "placeholder": "text"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "9",+ "name": "ColorChannelLabel2",+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 16,+ "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": 51,+ "unit": 1+ },+ "insetTop": {+ "value": 246,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "V %",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 11,+ "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": "8",+ "name": "ColorChannel2",+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 27,+ "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": 51,+ "unit": 1+ },+ "insetTop": {+ "value": 264,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "TextInput",+ "data": {+ "value": "",+ "placeholder": "",+ "placeholderI18nKey": "",+ "placeholderColor": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 0.5+ },+ "fontFamily": "",+ "fontSize": 12,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "backgroundColor": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "padding": 6,+ "maxLength": 0,+ "multiline": false,+ "password": false,+ "readOnly": false,+ "focused": false,+ "cursorPos": 0,+ "renderMode": 0+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "input": {+ "background": "control",+ "text": "text",+ "placeholder": "text"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "7",+ "name": "ColorChannelLabel3",+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 16,+ "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": 74,+ "unit": 1+ },+ "insetTop": {+ "value": 246,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Text",+ "data": {+ "content": "A %",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 11,+ "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": "6",+ "name": "ColorChannel3",+ "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": 21,+ "unit": 1+ },+ "height": {+ "value": 27,+ "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": 74,+ "unit": 1+ },+ "insetTop": {+ "value": 264,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "TextInput",+ "data": {+ "value": "",+ "placeholder": "",+ "placeholderI18nKey": "",+ "placeholderColor": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 0.5+ },+ "fontFamily": "",+ "fontSize": 12,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "backgroundColor": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "padding": 6,+ "maxLength": 0,+ "multiline": false,+ "password": false,+ "readOnly": false,+ "focused": false,+ "cursorPos": 0,+ "renderMode": 0+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "input": {+ "background": "control",+ "text": "text",+ "placeholder": "text"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "5",+ "name": "ColorHex",+ "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": 28,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 303,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "Interactable",+ "data": {+ "enabled": true,+ "blockRaycast": true,+ "raycastTarget": true+ }+ },+ {+ "type": "Focusable",+ "data": {+ "tabIndex": 0,+ "isFocused": false+ }+ },+ {+ "type": "TextInput",+ "data": {+ "value": "#3790e0ff",+ "placeholder": "",+ "placeholderI18nKey": "",+ "placeholderColor": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 0.5+ },+ "fontFamily": "",+ "fontSize": 12,+ "color": {+ "r": 0.92,+ "g": 0.92,+ "b": 0.94,+ "a": 1+ },+ "backgroundColor": {+ "r": 0.22,+ "g": 0.22,+ "b": 0.26,+ "a": 1+ },+ "padding": 6,+ "maxLength": 0,+ "multiline": false,+ "password": false,+ "readOnly": false,+ "focused": false,+ "cursorPos": 9,+ "renderMode": 0+ }+ },+ {+ "type": "ThemeStyle",+ "data": {+ "input": {+ "background": "control",+ "text": "text",+ "placeholder": "text"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "3",+ "name": "Node",+ "parent": "0",+ "children": [+ "4"+ ],+ "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": 104,+ "unit": 0+ },+ "height": {+ "value": 24,+ "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": 343,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "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"+ }+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "4",+ "name": "Label",+ "parent": "3",+ "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": "+ Remember",+ "i18nKey": "",+ "font": 0,+ "fontFamily": "",+ "fontSize": 11,+ "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": "2",+ "name": "Node",+ "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": 32,+ "unit": 0+ },+ "height": {+ "value": 24,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 343,+ "unit": 0+ },+ "insetRight": {+ "value": 0,+ "unit": 2+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ },+ {+ "type": "UIVisual",+ "data": {+ "visualType": 1,+ "texture": 0,+ "color": {+ "r": 0.216,+ "g": 0.565,+ "b": 0.878,+ "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+ }+ }+ ],+ "visible": true+ },+ {+ "prefabEntityId": "1",+ "name": "Node",+ "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": 22,+ "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": 14,+ "unit": 0+ },+ "insetTop": {+ "value": 378,+ "unit": 0+ },+ "insetRight": {+ "value": 14,+ "unit": 0+ },+ "insetBottom": {+ "value": 0,+ "unit": 2+ }+ }+ }+ ],+ "visible": true+ }+ ]+ },"TabView": {"version": "2","name": "TabView",@@ -6759,4 +10922,4 @@ export const BUILTIN_UI_PREFABS: Record<string, PrefabData> = {}};-export const BUILTIN_UI_WIDGET_NAMES = ["TabView","Tooltip","VirtualJoystick","VirtualButton","Button","Toggle","Slider","Dialog","TextInput","Progress","Dropdown","ListView","ScrollView"] as const;+export const BUILTIN_UI_WIDGET_NAMES = ["TreeView","ColorPicker","TabView","Tooltip","VirtualJoystick","VirtualButton","Button","Toggle","Slider","Dialog","TextInput","Progress","Dropdown","ListView","ScrollView"] as const;diff --git a/sdk/src/ui/widgets/tree-view.ts b/sdk/src/ui/widgets/tree-view.tsnew file mode 100644index 000000000..2cc9681be--- /dev/null+++ b/sdk/src/ui/widgets/tree-view.ts@@ -0,0 +1,364 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import type { App } from '../../app/app';+import type { World } from '../../ecs/world';+import type { Entity } from '../../types';+import { Name, registerComponent } from '../../ecs/component';+import { Schedule, defineSystem } from '../../ecs/system';+import { Input } from '../../input/input';+import { primaryPointerCancellationVersion } from '../../input/pointerCancellation';+import { playModeOnly } from '../../ecs/env';+import { worldEngineApi } from '../../ecs/bridge/engineApi';+import { UITreeView, type UITreeViewData, type TreeViewNode } from '../behavior/tree-view';+import { TreeViewModel, type TreeDataSource, type TreeItemId, type TreeRow, type TreeDropRequest } from '../collection/tree-data-source';+import { createListView, type ListViewHandle, type ListViewHost, type ListItemTemplate } from './list-view';+import { spawnUIEntity, type UINodeInit } from '../core/compose';+import { UINode, UIDisplay, UIPointerEvents } from '../core/ui-node';+import { UIVisual } from '../core/ui-visual';+import { Text, TextAlign, TextVerticalAlign, TextOverflow } from '../core/text';+import { px, auto } from '../core/dimension';+import { UIEvents, UIEventType, type UIEventQueue } from '../core/events';+import { makeWidgetInteractable, Interactable, UIInteraction } from '../input/interactable';+import { FocusManager } from '../input/focusable';+import { Focusable } from '../input/focusable';+import { moveUIFocus } from '../input/focus-transition';+import { createLocalTransformReader } from '../util/local-transform';+import { isScreenEntity } from '../util/ui-pick';+import { UIConsumesDrag } from '../input/drag-consumption';+import { isFocusEligible } from '../input/focus-inspection';+import { UIControlPointers, type ControlPointer } from '../input/control-pointers';+import { themeColors } from '../theme/tokens';+import { markThemed } from '../theme/theme-style';+import { log } from '../../util/logger';+import type { PrefabServer } from '../../prefab/prefabServer';++/** Generic data, optional custom row template, and host-owned drop policy. @beta */+export interface TreeViewOptions<T = TreeViewNode> {+ world: World;+ events: UIEventQueue;+ parent?: Entity;+ node?: UINodeInit;+ data?: TreeDataSource<T>;+ nodes?: TreeViewNode[];+ settings?: Partial<Omit<UITreeViewData, 'nodes'>>;+ item?: ListItemTemplate<TreeRow<T>>;+ /** A custom template can nominate its drag grip; the rest of the row scrolls. */+ dragHandle?: (rowEntity: Entity) => Entity;+ canDrop?: (request: TreeDropRequest<T>) => boolean;+ onDrop?: (request: TreeDropRequest<T>) => void;+ onChange?: (ids: readonly TreeItemId[]) => void;+}+/** Stable identity and explicit refresh keep application data authoritative. @beta */+export interface TreeViewHandle<T = TreeViewNode> {+ readonly entity: Entity;+ getModel(): TreeViewModel<T> | undefined;+ refresh(): void;+ reveal(id: TreeItemId): void;+ dispose(): void;+}++interface Binding {+ options: Omit<TreeViewOptions<unknown>, 'events'>;+ model?: TreeViewModel<unknown>;+ list?: ListViewHandle<TreeRow<unknown>>;+}+const bindings = new WeakMap<World, Map<Entity, Binding>>();+function bindingsFor(world: World): Map<Entity, Binding> {+ let map = bindings.get(world); if (!map) bindings.set(world, map = new Map()); return map;+}++/** Bind project data to an authored TreeView; disposal restores the previous adapter. @beta */+export function setTreeViewData<T>(world: World, entity: Entity, data: TreeDataSource<T>,+ options: Pick<TreeViewOptions<T>, 'item' | 'dragHandle' | 'canDrop' | 'onDrop'> = {}): () => void {+ if (!world.valid(entity) || !world.has(entity, UITreeView)) throw new Error('Expected an entity with UITreeView');+ const map = bindingsFor(world), binding = map.get(entity) ?? { options: { world } };+ const previous = binding.options;+ const next = { ...previous, ...options, data } as Omit<TreeViewOptions<unknown>, 'events'>;+ binding.options = next; map.set(entity, binding);+ if (binding.model?.source === data) binding.model.refresh();+ return () => { if (map.get(entity) === binding && binding.options === next) binding.options = previous; };+}++/** Factories and authored prefabs enter the same composed UI runtime. @beta */+export function createTreeView<T = TreeViewNode>(opts: TreeViewOptions<T>): TreeViewHandle<T> {+ const { world, events } = opts;+ const entity = spawnUIEntity({ world, parent: opts.parent,+ node: opts.node ?? { width: px(320), height: px(320) }, visual: { color: themeColors().surface } });+ markThemed(world, entity, { visual: 'surface' }); makeWidgetInteractable(world, entity);+ world.insert(entity, UITreeView, { ...structuredClone(UITreeView._default), ...opts.settings, nodes: opts.nodes ?? [] });+ const binding: Binding = { options: opts as unknown as TreeViewOptions<unknown> }; bindingsFor(world).set(entity, binding);+ const off = opts.onChange ? events.on(entity, UIEventType.Change, event => opts.onChange!((event.data as { ids: TreeItemId[] }).ids)) : undefined;+ return { entity, getModel: () => binding.model as TreeViewModel<T> | undefined,+ refresh() { binding.model?.refresh(); },+ reveal(id) { binding.model?.reveal(id); const index = binding.model?.indexOf(id) ?? -1; if (index >= 0) binding.list?.scrollToIndex(index); },+ dispose() { off?.(); binding.list?.dispose(); binding.model?.dispose(); bindingsFor(world).delete(entity); if (world.valid(entity)) world.despawn(entity); } };+}++interface Runtime {+ binding: Binding;+ model: TreeViewModel<unknown>;+ list: ListViewHandle<TreeRow<unknown>>;+ rowIds: Map<Entity, TreeItemId>;+ grips: Map<Entity, Entity>;+ targets: Map<Entity, Entity>;+ cues: Map<Entity, Entity>;+ cueRow: Entity | null;+ unsubs: Array<() => void>;+ config: string;+ nodes: TreeViewNode[];+ snapshot: string;+ empty: Entity;+ disposed: boolean;+ drag: { id: TreeItemId; pointer: number; x: number; y: number; moved: boolean } | null;+ activeId: TreeItemId | null;+ externalSource?: TreeDataSource<unknown>;+ itemTemplate?: ListItemTemplate<TreeRow<unknown>>;+ dragHandle?: (row: Entity) => Entity;+ selectionSnapshot: string;+}++/** @internal Installed by UIPlugin after the behavior/collection host exists. */+export function installTreeViews(app: App, host: ListViewHost): () => void {+ registerComponent('UITreeView', UITreeView);+ const playing = (): boolean => playModeOnly() && !app.isPaused() && !app.isExecutionHeld();+ const world = app.world, events = app.getResource(UIEvents), live = new Map<Entity, Runtime>();+ const engine = worldEngineApi(world), registry = world.getCppRegistry();+ const local = createLocalTransformReader(world);+ let cancellation = primaryPointerCancellationVersion(app.getResource(Input));+ const available = (e: Entity): boolean => world.valid(e) && world.isEntityActive(e) && !world.isDestructionPending(e)+ && (!world.has(e, Interactable) || world.get(e, Interactable).enabled)+ && !engine?.getUINodeHiddenInTree?.(registry!, e);+ const destroy = (root: Entity, runtime: Runtime): void => {+ runtime.disposed = true; runtime.unsubs.forEach(off => off()); runtime.list.dispose(); runtime.model.dispose();+ runtime.binding.model = undefined; runtime.binding.list = undefined;+ if (world.valid(runtime.list.entity)) world.despawn(runtime.list.entity);+ if (world.valid(runtime.empty)) world.despawn(runtime.empty);+ live.delete(root);+ };+ const writeState = (root: Entity, runtime: Runtime): void => {+ if (!world.valid(root) || !world.has(root, UITreeView)) return;+ const data = world.get(root, UITreeView);+ const selectedIds = [...runtime.model.selectedIds], expandedIds = [...runtime.model.expandedIds];+ runtime.snapshot = JSON.stringify([expandedIds, selectedIds]);+ if (runtime.snapshot === JSON.stringify([data.expandedIds, data.selectedIds])) return;+ world.insert(root, UITreeView, { ...data, selectedIds, expandedIds });+ };+ const style = (ref: string, parent: Entity, runtime: Runtime, ready?: (entities: Entity[], styleRoot: Entity) => void): void => {+ if (!ref) return;+ const prefabs = app.getResourceByName('Prefabs') as PrefabServer | undefined;+ if (!prefabs) return;+ void prefabs.instantiate(ref, { parent, scene: false }).then(result => {+ if (runtime.disposed || !world.valid(parent)) { if (world.valid(result.root)) world.despawn(result.root); return; }+ if (!world.has(result.root, UINode)) { world.despawn(result.root); throw new Error('TreeView style prefabs require a UINode root'); }+ const node = world.get(result.root, UINode);+ world.insert(result.root, UINode, { ...node, position: 1, insetLeft: px(0), insetTop: px(0), insetRight: px(0), insetBottom: px(0), width: auto(), height: auto(), pointerEvents: UIPointerEvents.None });+ for (const entity of result.entities.values()) {+ if (world.has(entity, Focusable)) world.remove(entity, Focusable);+ if (world.has(entity, Interactable)) world.remove(entity, Interactable);+ }+ ready?.([...result.entities.values()], result.root);+ runtime.list.refresh();+ }).catch(error => log.error('ui', 'TreeView style prefab failed', error));+ };+ const dropAt = (runtime: Runtime, pointer: ControlPointer): { row: Entity; request: TreeDropRequest<unknown> } | null => {+ const source = runtime.drag ? runtime.model.getNode(runtime.drag.id) : undefined;+ if (!source) return null;+ for (const [targetEntity, row] of runtime.targets) {+ if (!world.valid(targetEntity) || !world.has(targetEntity, UIInteraction) || !world.get(targetEntity, UIInteraction).hovered) continue;+ const id = runtime.rowIds.get(row), target = id === undefined ? undefined : runtime.model.getNode(id);+ if (!target) continue;+ const screen = isScreenEntity(world, row), point = local.point(row, screen ? pointer.layoutX : pointer.worldX, screen ? pointer.layoutY : pointer.worldY);+ const height = engine?.getUINodeComputedHeight?.(registry!, row) ?? 0;+ const position = point && height > 0 ? point.y > height / 6 ? 'before' : point.y < -height / 6 ? 'after' : 'inside' : 'after';+ const request: TreeDropRequest<unknown> = { source, target, position };+ if (runtime.model.canDrop(request) && runtime.binding.options.canDrop?.(request) !== false) return { row, request };+ }+ return null;+ };+ const showDrop = (runtime: Runtime, candidate: ReturnType<typeof dropAt>): void => {+ if (runtime.cueRow !== null && runtime.cueRow !== candidate?.row) {+ const previous = runtime.cues.get(runtime.cueRow);+ if (previous && world.valid(previous)) world.update(previous, UINode, node => { node.display = UIDisplay.None; });+ }+ runtime.cueRow = candidate?.row ?? null;+ const cue = candidate ? runtime.cues.get(candidate.row) : undefined;+ if (!cue || !world.valid(cue)) return;+ const height = engine?.getUINodeComputedHeight?.(registry!, candidate!.row) ?? 32;+ const position = candidate!.request.position;+ world.update(cue, UINode, node => {+ node.display = UIDisplay.Flex; node.height = px(position === 'inside' ? height : 2);+ node.insetTop = px(position === 'after' ? height - 2 : 0); node.opacity = position === 'inside' ? .2 : 1;+ });+ };+ app.addSystemToSchedule(Schedule.Update, defineSystem([], () => {+ const version = primaryPointerCancellationVersion(app.getResource(Input)), cancelled = version !== cancellation;+ if (cancelled) { cancellation = version; for (const runtime of live.values()) runtime.drag = null; }+ const roots = new Set(world.getEntitiesWithComponents([UITreeView]));+ for (const [root, runtime] of live) if (!roots.has(root) || !world.valid(root)) destroy(root, runtime);+ for (const root of roots) {+ if (!world.valid(root) || !world.has(root, UINode)) continue;+ if (!world.has(root, Interactable)) makeWidgetInteractable(world, root);+ const data = world.get(root, UITreeView);+ const config = JSON.stringify([data.rowHeight, data.indent, data.rowPrefab, data.emptyPrefab, data.dragEnabled]);+ let runtime = live.get(root);+ const priorSelection = runtime?.model.selectedIds;+ const bindingOptions = bindingsFor(world).get(root)?.options;+ if (runtime && (runtime.config !== config || runtime.externalSource !== bindingOptions?.data+ || runtime.itemTemplate !== bindingOptions?.item || runtime.dragHandle !== bindingOptions?.dragHandle)) { destroy(root, runtime); runtime = undefined; }+ if (!runtime) {+ const binding: Binding = bindingsFor(world).get(root) ?? { options: { world } };+ const source: TreeDataSource<unknown> = binding.options.data ?? {+ getRoots: () => world.get(root, UITreeView).nodes,+ getChildren: item => (item as TreeViewNode).children ?? [], getId: item => (item as TreeViewNode).id,+ getLabel: item => (item as TreeViewNode).label, isSelectable: item => (item as TreeViewNode).selectable !== false,+ };+ const model = new TreeViewModel(source, data.expandedIds); model.select(data.selectedIds, data.selectionMode);+ const rowIds = new Map<Entity, TreeItemId>(), grips = new Map<Entity, Entity>(), targets = new Map<Entity, Entity>(), cues = new Map<Entity, Entity>(), unsubs: Array<() => void> = [];+ const height = Math.max(12, Number.isFinite(data.rowHeight) ? data.rowHeight : 32);+ const item = binding.options.item;+ const labels = new Map<Entity, Entity>(), arrows = new Map<Entity, Entity>();+ const measuredWidth = engine?.getUINodeComputedWidth?.(registry!, root) ?? 0;+ const measuredHeight = engine?.getUINodeComputedHeight?.(registry!, root) ?? 0;+ const viewportSize = { x: Number.isFinite(measuredWidth) && measuredWidth > 0 ? measuredWidth : 320,+ y: Number.isFinite(measuredHeight) && measuredHeight > 0 ? measuredHeight : 320 };+ const list = createListView({ world, host, parent: root, node: { fill: true }, viewportSize,+ data: model, layout: { itemHeight: height }, dragScroll: true,+ item: { create(w, parent) {+ const rowEntity = item ? item.create(w, parent) : spawnUIEntity({ world: w, parent, node: { height: px(height) }, visual: { color: themeColors().surface } });+ makeWidgetInteractable(w, rowEntity, { focusable: false });+ targets.set(rowEntity, rowEntity);+ if (!item) {+ const label = spawnUIEntity({ world: w, parent: rowEntity, node: { fill: true, insetLeft: px(28), insetRight: px(data.dragEnabled ? 28 : 4) }, text: { content: '', fontSize: 14, color: themeColors().text, verticalAlign: TextVerticalAlign.Middle, wordWrap: false, overflow: TextOverflow.Ellipsis } });+ const arrow = spawnUIEntity({ world: w, parent: rowEntity, node: { position: 1, width: px(24), height: px(height), insetLeft: px(0), insetTop: px(0) }, text: { content: '', fontSize: 14, color: themeColors().text, align: TextAlign.Center, verticalAlign: TextVerticalAlign.Middle } });+ labels.set(rowEntity, label); arrows.set(rowEntity, arrow);+ markThemed(w, label, { text: 'text' }); markThemed(w, arrow, { text: 'text' });+ makeWidgetInteractable(w, arrow, { focusable: false });+ targets.set(arrow, rowEntity);+ unsubs.push(events.on(arrow, UIEventType.Click, () => {+ if (!playing() || !available(root)) return;+ const id = rowIds.get(rowEntity); if (id === undefined) return;+ model.toggle(id); moveUIFocus(world, events, app.getResource(FocusManager), root, false);+ writeState(root, live.get(root)!);+ }));+ if (data.rowPrefab) style(data.rowPrefab, rowEntity, live.get(root)!, (entities, styleRoot) => {+ const styledLabel = entities.find(entity => world.has(entity, Text) && world.has(entity, UINode));+ if (styledLabel) { if (world.valid(label)) world.despawn(label); labels.set(rowEntity, styledLabel); }+ // Keep behavior affordances above a style's opaque background.+ const controls = [arrow, ...[...grips].filter(([, owner]) => owner === rowEntity).map(([grip]) => grip), cues.get(rowEntity)];+ for (const control of controls) if (control && world.valid(control)) { world.setParent(control, styleRoot); world.setParent(control, rowEntity); }+ });+ }+ if (data.dragEnabled) {+ const grip = item ? binding.options.dragHandle?.(rowEntity) ?? rowEntity : spawnUIEntity({ world: w, parent: rowEntity,+ node: { position: 1, insetRight: px(0), insetTop: px(0), width: px(24), height: px(height) },+ text: { content: '⠿', fontSize: 14, color: themeColors().text, align: TextAlign.Center, verticalAlign: TextVerticalAlign.Middle } });+ if (w.valid(grip)) { makeWidgetInteractable(w, grip, { focusable: false }); w.insert(grip, UIConsumesDrag); grips.set(grip, rowEntity); targets.set(grip, rowEntity); }+ const cue = spawnUIEntity({ world: w, parent: rowEntity, node: { position: 1, insetLeft: px(0), insetRight: px(0), insetTop: px(0), height: px(2), pointerEvents: UIPointerEvents.None }, visual: { color: themeColors().primary } });+ w.update(cue, UINode, node => { node.display = UIDisplay.None; }); cues.set(rowEntity, cue); markThemed(w, cue, { visual: 'primary' });+ }+ unsubs.push(events.on(rowEntity, UIEventType.Click, () => {+ if (!playing() || !available(root)) return;+ const id = rowIds.get(rowEntity); if (id === undefined) return;+ if (live.get(root)?.drag?.moved) return;+ const row = model.getNode(id); if (!row) return;+ const current = world.get(root, UITreeView), input = app.getResource(Input);+ moveUIFocus(world, events, app.getResource(FocusManager), root, false);+ live.get(root)!.activeId = id;+ const multi = current.selectionMode === 2 && (input.isKeyDown('ControlLeft') || input.isKeyDown('ControlRight') || input.isKeyDown('MetaLeft') || input.isKeyDown('MetaRight'));+ model.select(multi ? model.isSelected(id) ? model.selectedIds.filter(value => value !== id) : [...model.selectedIds, id] : [id], current.selectionMode);+ writeState(root, live.get(root)!);+ }));+ return rowEntity;+ }, bind(rowEntity, row, index) {+ rowIds.set(rowEntity, row.id);+ if (!item) {+ world.insert(rowEntity, Name, { value: `TreeRow:${row.id}` });+ const arrow = arrows.get(rowEntity); if (arrow) world.insert(arrow, Name, { value: `TreeDisclosure:${row.id}` });+ for (const [grip, owner] of grips) if (owner === rowEntity) world.insert(grip, Name, { value: `TreeDrag:${row.id}` });+ }+ if (item) { item.bind(rowEntity, row, index); return; }+ const label = labels.get(rowEntity)!, arrow = arrows.get(rowEntity)!;+ const indent = row.depth * (Number.isFinite(data.indent) ? Math.max(0, data.indent) : 20);+ world.update(label, Text, text => { text.content = source.getLabel(row.item); });+ world.update(label, UINode, node => { node.insetLeft = px(indent + 28); });+ world.update(arrow, Text, text => { text.content = row.hasChildren ? row.expanded ? '⌄' : '›' : ''; });+ world.update(arrow, UINode, node => { node.insetLeft = px(indent); });+ const role = model.isSelected(row.id) ? 'controlFocus' : 'surface';+ world.update(rowEntity, UIVisual, visual => { visual.color = themeColors()[role]; }); markThemed(world, rowEntity, { visual: role });+ } } });+ const empty = spawnUIEntity({ world, parent: root, node: { fill: true }, text: { content: 'No items', fontSize: 14, color: themeColors().text } });+ markThemed(world, empty, { text: 'text' });+ runtime = { binding, model, list, rowIds, grips, targets, cues, cueRow: null, unsubs, config, nodes: data.nodes, snapshot: '', empty, disposed: false, drag: null,+ activeId: model.selectedIds[model.selectedIds.length - 1] ?? null,+ externalSource: binding.options.data, itemTemplate: binding.options.item, dragHandle: binding.options.dragHandle,+ selectionSnapshot: JSON.stringify(priorSelection ?? model.selectedIds) };+ live.set(root, runtime); binding.model = model; binding.list = list;+ unsubs.push(events.on(root, UIEventType.Click, event => {+ if (event.target !== root || !playing() || !available(root)) return;+ const current = live.get(root), id = current?.activeId;+ if (id == null) return;+ const mode = world.get(root, UITreeView).selectionMode;+ model.select(mode === 2 ? model.isSelected(id) ? model.selectedIds.filter(value => value !== id) : [...model.selectedIds, id] : [id], mode);+ writeState(root, current!);+ }));+ const syncState = (): void => {+ const current = live.get(root); if (!current || current.disposed) return;+ list.refresh();+ if (playing()) writeState(root, current);+ const selection = JSON.stringify(model.selectedIds);+ if (current.selectionSnapshot !== selection) { current.selectionSnapshot = selection; if (playing()) events.emit(root, UIEventType.Change, { ids: model.selectedIds }); }+ };+ runtime.unsubs.push(model.subscribe(syncState)); syncState();+ if (data.emptyPrefab) { world.update(empty, Text, text => { text.content = ''; }); style(data.emptyPrefab, empty, runtime); }+ }+ if (!runtime.binding.options.data && runtime.nodes !== data.nodes) { runtime.nodes = data.nodes; runtime.model.refresh(); }+ const snapshot = JSON.stringify([data.expandedIds, data.selectedIds]);+ if (runtime.snapshot !== snapshot) { runtime.snapshot = snapshot; runtime.model.setExpanded(data.expandedIds); runtime.model.select(data.selectedIds, data.selectionMode); runtime.activeId = runtime.model.selectedIds[runtime.model.selectedIds.length - 1] ?? runtime.activeId; }+ const emptyDisplay = runtime.model.getCount() ? 1 : 0;+ if (world.get(runtime.empty, UINode).display !== emptyDisplay) world.update(runtime.empty, UINode, node => { node.display = emptyDisplay; });+ if (!playing() || !available(root)) { runtime.drag = null; showDrop(runtime, null); continue; }+ const input = app.getResource(Input), focus = app.getResource(FocusManager);+ if (focus.focusedEntity === root && isFocusEligible(world, root)) {+ const model = runtime.model, current = runtime.activeId, index = current == null ? -1 : model.indexOf(current);+ let next = index;+ if (input.isKeyPressed('ArrowDown')) next = Math.min(model.getCount() - 1, index + 1);+ if (input.isKeyPressed('ArrowUp')) next = Math.max(0, index - 1);+ if (input.isKeyPressed('Home')) next = 0; if (input.isKeyPressed('End')) next = model.getCount() - 1;+ const node = current == null ? undefined : model.getNode(current);+ if (node && input.isKeyPressed('ArrowRight')) { if (!node.expanded) model.setExpanded([...model.expandedIds, node.id]); else next = Math.min(model.getCount() - 1, index + 1); }+ if (node && input.isKeyPressed('ArrowLeft')) { if (node.expanded) model.setExpanded(model.expandedIds.filter(id => id !== node.id)); else next = node.parentId == null ? index : model.indexOf(node.parentId); }+ if (next >= 0 && next < model.getCount() && next !== index) {+ const direction = next >= index ? 1 : -1;+ while (next >= 0 && next < model.getCount() && !model.getItem(next).selectable) next += direction;+ if (next >= 0 && next < model.getCount()) {+ runtime.activeId = model.getItem(next).id;+ model.select([runtime.activeId], data.selectionMode); runtime.list.scrollToIndex(next);+ }+ }+ writeState(root, runtime);+ }+ if (data.dragEnabled && !cancelled) {+ const pointers = app.getResource(UIControlPointers).pointers;+ for (const pointer of pointers.values()) if (pointer.pressedEntity != null && runtime.grips.has(pointer.pressedEntity)) {+ const row = runtime.grips.get(pointer.pressedEntity)!;+ runtime.drag = { id: runtime.rowIds.get(row)!, pointer: pointer.id, x: pointer.layoutX, y: pointer.layoutY, moved: false };+ }+ const drag = runtime.drag, pointer = drag ? pointers.get(drag.pointer) : undefined;+ if (drag && pointer) {+ drag.moved ||= Math.hypot(pointer.layoutX - drag.x, pointer.layoutY - drag.y) > 5;+ const candidate = drag.moved ? dropAt(runtime, pointer) : null;+ showDrop(runtime, candidate);+ if (!pointer.down) {+ runtime.drag = null;+ showDrop(runtime, null);+ if (candidate) {+ runtime.binding.options.onDrop?.(candidate.request); events.emit(root, 'drop_request', candidate.request);+ }+ }+ } else { if (drag) runtime.drag = null; showDrop(runtime, null); }+ } else showDrop(runtime, null);+ }+ }, { name: 'UITreeViewSystem', runAfter: ['FocusSystem'], runBefore: ['ListViewSystem'] }));+ const offDespawn = world.onDespawn(root => { const runtime = live.get(root); if (runtime) destroy(root, runtime); bindingsFor(world).delete(root); });+ return () => { offDespawn(); for (const [root, runtime] of [...live]) destroy(root, runtime); local.dispose(); };+}diff --git a/sdk/tests/ui-scroll-motion-wasm.test.ts b/sdk/tests/ui-scroll-motion-wasm.test.tsindex b7e9811a6..06e8270ce 100644--- a/sdk/tests/ui-scroll-motion-wasm.test.ts+++ b/sdk/tests/ui-scroll-motion-wasm.test.ts@@ -16,6 +16,7 @@ import { ScrollContainer } from '../src/ui/collection/scroll-container';import type { CppRegistry, ESEngineModule } from '../src/wasm';import type { Entity } from '../src/types';import { HAS_WASM, loadWasmModule } from './helpers/loadWasm';+import { UIConsumesDrag } from '../src/ui/input/drag-consumption';describe.skipIf(!HAS_WASM)('scroll motion ownership on real WASM', () => {let engine: ESEngineModule, registry: CppRegistry, app: App, plugin: UIBehaviorPlugin;@@ -43,6 +44,20 @@ describe.skipIf(!HAS_WASM)('scroll motion ownership on real WASM', () => {async function drag() {input.noteMouseDown(0); await step(0); await step(40); await step(80);}+ it('a child control consumes drag without preventing the parent wheel scroll', async () => {+ const scroll = container(); plugin.attachScrollContainer(entity, scroll);+ const child = app.world.spawn(); app.world.setParent(child, entity);+ app.world.insert(child, UIInteraction, { hovered: true }); app.world.insert(child, UIConsumesDrag);+ await drag(); expect(scroll.getOffset().y).toBe(0);+ input.scrollDeltaY = 30; await step(80); expect(scroll.getOffset().y).toBe(30);+ });+ it('drag consumption on an ancestor protects a nested hit as well', async () => {+ const scroll = container(); plugin.attachScrollContainer(entity, scroll);+ const control = app.world.spawn(), leaf = app.world.spawn();+ app.world.setParent(control, entity); app.world.setParent(leaf, control);+ app.world.insert(control, UIConsumesDrag); app.world.insert(leaf, UIInteraction, { hovered: true });+ await drag(); expect(scroll.getOffset().y).toBe(0);+ });it('does not dirty native thumb geometry after fractional lengths settle', async () => {const scroll = new ScrollContainer({ viewportSize: { x: 100, y: 100 },contentSize: { x: 300, y: 300 }, direction: 'both' });diff --git a/sdk/tests/ui-tree-color-wasm.test.ts b/sdk/tests/ui-tree-color-wasm.test.tsnew file mode 100644index 000000000..3dff57f35--- /dev/null+++ b/sdk/tests/ui-tree-color-wasm.test.ts@@ -0,0 +1,214 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import { beforeAll, beforeEach, afterEach, describe, it, expect, vi } from 'vitest';+import { App } from '../src/app/app';+import { AppContext, setDefaultContext } from '../src/ecs/context';+import { Canvas, Name, Transform, Parent, Children, registerComponent } from '../src/ecs/component';+import { Schedule, defineSystem } from '../src/ecs/system';+import { setEditorMode, setPlayMode } from '../src/ecs/env';+import { Input, InputState } from '../src/input/input';+import { UIEvents, UIEventQueue } from '../src/ui/core/events';+import { UITreeView } from '../src/ui/behavior/tree-view';+import { UIColorPicker } from '../src/ui/behavior/color-picker';+import { installColorPickers } from '../src/ui/behavior/color-picker-system';+import { UISlider, createSliderSystem } from '../src/ui/behavior/slider';+import { createTreeView, installTreeViews } from '../src/ui/widgets/tree-view';+import { createColorPicker } from '../src/ui/widgets/color-picker';+import { TextInput } from '../src/ui/text/text-input';+import { Text } from '../src/ui/core/text';+import { UINode } from '../src/ui/core/ui-node';+import { UIVisual } from '../src/ui/core/ui-visual';+import { spawnUIEntity } from '../src/ui/core/compose';+import { px } from '../src/ui/core/dimension';+import { UIControlPointers } from '../src/ui/input/control-pointers';+import { FocusManager, FocusManagerState, Focusable } from '../src/ui/input/focusable';+import { Interactable } from '../src/ui/input/interactable';+import { UIInteractionPlugin } from '../src/ui/input/interaction';+import { ScreenOverlay, defaultScreenOverlay } from '../src/ui/core/screen-overlay';+import { ScreenLayout, screenLayoutRect, screenProjection } from '../src/ui/core/screen-layout';+import { UICameraInfo } from '../src/ui/core/ui-camera-info';+import { ListViewRegistry } from '../src/ui/collection/list-view';+import { ScrollContainerRegistry } from '../src/ui/collection/scroll-container';+import { UIController } from '../src/ui/controller/ui-controller';+import { UIGear } from '../src/ui/controller/ui-gear';+import { ThemeStyle } from '../src/ui/theme/theme-style';+import { widgetToPrefab } from '../src/ui/widgets/toPrefab';+import { instantiatePrefab } from '../src/prefab';+import { col } from '../src/math/color';+import { HAS_WASM, loadWasmModule } from './helpers/loadWasm';+import type { ESEngineModule, CppRegistry } from '../src/wasm';+import { initResourceManager, shutdownResourceManager, textureRefill } from '../src/wasm/resourceManager';+import { Prefabs } from '../src/prefab/prefabServer';++describe.skipIf(!HAS_WASM)('TreeView / ColorPicker on real WASM', () => {+ let engine: ESEngineModule, registry: CppRegistry, app: App, events: UIEventQueue;+ let offTree: () => void, offColor: () => void, lists: ListViewRegistry, root: number;+ let interaction: UIInteractionPlugin | undefined;+ 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(); app.insertResource(UIEvents, events);+ for (const component of [UITreeView, UIColorPicker, UISlider, TextInput, Text, Name, Focusable, UIController, UIGear, ThemeStyle]) registerComponent(component._name, component);+ 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() });+ lists=new ListViewRegistry();const scrolls=new ScrollContainerRegistry();+ offTree=installTreeViews(app,{registerListView:list=>lists.add(list),unregisterListView:list=>lists.remove(list),attachScrollContainer:(e,c)=>scrolls.attach(e,c),detachScrollContainer:e=>scrolls.detach(e)});+ offColor=installColorPickers(app);+ app.addSystemToSchedule(Schedule.Update,createSliderSystem(app.world,events));+ app.addSystemToSchedule(Schedule.Update,defineSystem([],()=>lists.tick(),{name:'ListViewSystem'}));+ root=spawnUIEntity({world:app.world,node:{width:px(800),height:px(600)}});app.world.insert(root,Canvas);+ });+ afterEach(()=>{interaction?.cleanup(app);interaction=undefined;offTree();offColor();shutdownResourceManager();app.quit({keepRenderer:true});registry.delete();});+ async function tick() { engine.uiLayout_update(registry,-400,-300,400,300,true);engine.transform_update(registry);await app.tick(.016);app.getResource(Input).keysPressed.clear(); }+ const tree=()=>createTreeView({world:app.world,events,parent:root,node:{width:px(300),height:px(128)},nodes:[{id:'root',label:'Root',children:[{id:'a',label:'Alpha'},{id:'b',label:'Beta'}]}],settings:{expandedIds:['root']}});+ const picker=()=>createColorPicker({world:app.world,events,parent:root});+ it('row style prefabs fit the shared wrapper and keep disclosure controls above them',async()=>{+ const styled:number[]=[];+ app.insertResource(Prefabs,{instantiate:async(_ref:string,options:{parent:number})=>{+ const panel=spawnUIEntity({world:app.world,parent:options.parent,node:{width:px(99),height:px(20)},visual:{color:col.rgb(.2,.2,.2)}});+ const label=spawnUIEntity({world:app.world,parent:panel,node:{fill:true},text:{content:'Custom'}});styled.push(panel);+ return {root:panel,entities:new Map([[0,panel],[1,label]])};+ }} as never);+ const handle=tree();app.world.update(handle.entity,UITreeView,data=>{data.rowPrefab='Row.esprefab';});+ await tick();await tick();await tick();+ expect(styled).toHaveLength(3);+ expect(engine.getUINodeComputedWidth!(registry,styled[0])).toBeCloseTo(300);+ const row=app.world.get(styled[0],Parent).entity,children=app.world.get(row,Children).entities;+ const arrow=children.find(e=>app.world.tryGet(e,Name)?.value==='TreeDisclosure:root')!;+ expect(children.indexOf(arrow)).toBeGreaterThan(children.indexOf(styled[0]));+ expect(app.world.getEntitiesWithComponents([Text]).some(e=>app.world.get(e,Text).content==='Root')).toBe(true);+ });+ it('a late row style cannot resurrect a disposed tree',async()=>{+ let finish:(value:unknown)=>void=()=>{};const loading=new Promise(resolve=>{finish=resolve;});+ app.insertResource(Prefabs,{instantiate:()=>loading} as never);+ const handle=tree();app.world.update(handle.entity,UITreeView,data=>{data.rowPrefab='Row.esprefab';});await tick();handle.dispose();+ const late=spawnUIEntity({world:app.world,node:{width:px(100),height:px(32)}});+ finish({root:late,entities:new Map([[0,late]])});await Promise.resolve();await Promise.resolve();expect(app.world.valid(late)).toBe(false);+ });+ it('shares ramps, updates the plane only for hue, restores its content, and releases each texture once',async()=>{+ let next=1;const create=vi.fn((_width:number,_height:number,_pixels:Uint8Array)=>next++),release=vi.fn(),update=vi.fn();+ initResourceManager({createTextureFromBytes:create,releaseTexture:release,updateTextureSubregionFromBytes:update} as never);+ const first=picker();picker();await tick();await tick();expect(create).toHaveBeenCalledTimes(5);+ const pixels=create.mock.calls[3][2],hue=col.toHsv(first.getColor()).h;+ for(const x of [0,16,32,63])for(const y of [0,16,32,63]){+ const expected=col.fromHsv(hue,x/63,y/63);const at=(y*64+x)*4;+ expect([...pixels.slice(at,at+3)]).toEqual([expected.r,expected.g,expected.b].map(v=>Math.round(v*255)));+ }+ first.setColor(col.fromHsv(30,.6,.8));await tick();await tick();expect(create).toHaveBeenCalledTimes(5);expect(update).toHaveBeenCalledTimes(1);+ first.setColor(col.fromHsv(30,.4,.5,.6));await tick();await tick();expect(update).toHaveBeenCalledTimes(1);+ const restore=textureRefill(4)!;expect(restore()).toBe(true);expect(update).toHaveBeenCalledTimes(2);+ const insert=vi.spyOn(app.world,'insert');try{await tick();expect(insert.mock.calls.filter(([,component])=>component===UIVisual||component===UINode)).toHaveLength(0);}finally{insert.mockRestore();}+ offColor();expect(release).toHaveBeenCalledTimes(5);expect(textureRefill(4)).toBeUndefined();expect(restore()).toBe(false);+ offColor();expect(release).toHaveBeenCalledTimes(5);+ });+ it('real hit testing drives sustained SV pointer capture without a second input path',async()=>{+ interaction=new UIInteractionPlugin();interaction.build(app);+ const handle=picker();await tick();await tick();const data=app.world.get(handle.entity,UIColorPicker);+ const at=app.world.get(data.sv,Transform).worldPosition,input=app.getResource(Input);+ input.mouseX=at.x+400;input.mouseY=300-at.y;input.noteMouseDown(0);await tick();input.clearFrameState();+ expect(app.getResource(UIControlPointers).pointers.get(-1)?.entity).toBe(data.sv);+ expect(col.toHsv(handle.getColor()).s).toBeCloseTo(.5);expect(col.toHsv(handle.getColor()).v).toBeCloseTo(.5);+ input.mouseX+=60;await tick();expect(col.toHsv(handle.getColor()).s).toBeGreaterThan(.7);+ });+ it('real row clicks select through the shared event queue',async()=>{+ interaction=new UIInteractionPlugin();interaction.build(app);+ const handle=tree();await tick();await tick();+ const row=app.world.getEntitiesWithComponents([Name]).find(e=>app.world.get(e,Name).value==='TreeRow:a')!;+ const at=app.world.get(row,Transform).worldPosition,input=app.getResource(Input);+ input.mouseX=at.x+400;input.mouseY=300-at.y;input.noteMouseDown(0);await tick();input.clearFrameState();+ input.mouseButtons.delete(0);input.mouseButtonsReleased.add(0);await tick();+ expect(handle.getModel()!.selectedIds).toEqual(['a']);expect(app.getResource(FocusManager).focusedEntity).toBe(handle.entity);+ });+ it('stable controls avoid rewriting unchanged visual geometry',async()=>{+ tree();picker();for(let i=0;i<4;i++)await tick();const insert=vi.spyOn(app.world,'insert');+ try {await tick();expect(insert.mock.calls.filter(([,component])=>component===UINode||component===Text||component===UIVisual)).toHaveLength(0);}finally{insert.mockRestore();}+ });+ it('foreign picker references cannot overwrite another widget',async()=>{+ const a=picker(),b=picker();await tick();const target=app.world.get(b.entity,UIColorPicker).preview;+ app.world.update(a.entity,UIColorPicker,data=>{data.preview=target;});a.setColor(col.rgb(1,0,0));await tick();+ expect(col.equals(app.world.get(target,UIVisual).color,b.getColor())).toBe(true);+ });+ it('virtualizes 10,000 rows with a bounded entity count and follows viewport resize',async()=>{+ const handle=createTreeView({world:app.world,events,parent:root,node:{width:px(300),height:px(128)},nodes:Array.from({length:10000},(_,i)=>({id:String(i),label:`Row ${i}`}))});+ await tick();await tick();expect(handle.getModel()!.getCount()).toBe(10000);expect(lists.count()).toBe(1);+ expect(app.world.getEntitiesWithComponents([Text]).length).toBeLessThan(20);+ const viewport=app.world.get(handle.entity,Children).entities.find(e=>app.world.has(e,UINode)&&app.world.get(e,UINode).pointerEvents===0)!;+ expect(engine.getUINodeComputedWidth!(registry,viewport)).toBeCloseTo(300);+ expect(engine.getUINodeComputedHeight!(registry,viewport)).toBeCloseTo(128);+ app.world.update(handle.entity,UINode,node=>{node.width=px(200);node.height=px(64);});await tick();await tick();+ expect(engine.getUINodeComputedWidth!(registry,viewport)).toBeCloseTo(200);+ expect(engine.getUINodeComputedHeight!(registry,viewport)).toBeCloseTo(64);+ handle.reveal('9999');await tick();expect(app.world.getEntitiesWithComponents([Text]).some(e=>app.world.get(e,Text).content==='Row 9999')).toBe(true);+ handle.dispose();expect(lists.count()).toBe(0);+ });+ it('authored and factory trees share keyboard selection and collapse state',async()=>{+ const handle=tree();await tick();app.getResource(FocusManager).focus(handle.entity,true);+ app.getResource(Input).keysPressed.add('ArrowDown');await tick();expect(handle.getModel()!.selectedIds).toEqual(['root']);+ app.getResource(Input).keysPressed.add('ArrowDown');await tick();expect(handle.getModel()!.selectedIds).toEqual(['a']);+ app.getResource(Input).keysPressed.add('ArrowLeft');await tick();expect(handle.getModel()!.selectedIds).toEqual(['root']);+ app.getResource(Input).keysPressed.add('ArrowLeft');await tick();expect(handle.getModel()!.getCount()).toBe(1);+ });+ it('component removal disposes its registered list and subscriptions',async()=>{+ const handle=tree();await tick();app.world.remove(handle.entity,UITreeView);await tick();expect(lists.count()).toBe(0);expect(handle.getModel()).toBeUndefined();+ });+ it('collapse hides pooled text descendants and their input geometry',async()=>{+ const handle=tree();await tick();await tick();+ const label=app.world.getEntitiesWithComponents([Text]).find(e=>app.world.get(e,Text).content==='Beta')!;+ const row=app.world.get(label,Parent).entity;+ handle.getModel()!.toggle('root');await tick();await tick();+ expect(app.world.get(row,UINode).display).toBe(1);+ expect(engine.getUINodeHiddenInTree!(registry,label)).toBe(true);+ handle.getModel()!.toggle('root');await tick();await tick();+ const visible=app.world.getEntitiesWithComponents([Text]).filter(e=>app.world.get(e,Text).content==='Beta'&&!engine.getUINodeHiddenInTree!(registry,e));+ expect(visible).toHaveLength(1);+ });+ it('does not apply gameplay keyboard changes in editor mode',async()=>{+ const handle=tree();await tick();setEditorMode(true);app.getResource(FocusManager).focus(handle.entity,true);+ app.getResource(Input).keysPressed.add('ArrowDown');await tick();expect(handle.getModel()!.selectedIds).toEqual([]);+ });+ it('programmatic color changes emit once and synchronize standard fields and sliders',async()=>{+ const change=vi.fn(),handle=createColorPicker({world:app.world,events,parent:root,onChange:change});await tick();expect(change).not.toHaveBeenCalled();+ handle.setColor(col.fromHex('#61bc9080'));await tick();await tick();expect(change).toHaveBeenCalledOnce();+ const data=app.world.get(handle.entity,UIColorPicker);expect(app.world.get(data.hex,TextInput).value).toBe('#61bc9080');+ expect(app.world.get(data.alpha,UISlider).value).toBeCloseTo(128/255);expect(col.equals(app.world.get(data.preview,UIVisual).color,handle.getColor())).toBe(true);+ });+ it('hex input normalizes to the same Color and ignores incomplete input',async()=>{+ const handle=picker();await tick();const data=app.world.get(handle.entity,UIColorPicker);+ app.world.update(data.hex,TextInput,text=>{text.value='#abc';});events.emit(data.hex,'change');await tick();expect(col.toHex(handle.getColor())).toBe('#aabbcc');+ const color=handle.getColor();app.world.update(data.hex,TextInput,text=>{text.value='#xx';});events.emit(data.hex,'change');await tick();expect(handle.getColor()).toEqual(color);+ });+ it('HEX remains independently bindable when a project omits numeric channels',async()=>{+ const handle=picker();app.world.update(handle.entity,UIColorPicker,data=>{data.fields=[];});await tick();+ const data=app.world.get(handle.entity,UIColorPicker);+ app.world.update(data.hex,TextInput,text=>{text.value='#aabbcc';});events.emit(data.hex,'change');await tick();+ expect(col.toHex(handle.getColor())).toBe('#aabbcc');expect(app.world.get(data.hex,TextInput).value).toBe('#aabbccff');+ });+ it('preserves the editing hue at zero saturation and clamps alpha-disabled values',async()=>{+ const handle=picker();await tick();const data=app.world.get(handle.entity,UIColorPicker);+ app.world.update(data.fields[1],TextInput,text=>{text.value='0';});events.emit(data.fields[1],'change');await tick();+ app.world.update(data.fields[0],TextInput,text=>{text.value='300';});events.emit(data.fields[0],'change');await tick();+ expect(app.world.get(data.hue,UISlider).value).toBeCloseTo(300);+ app.world.update(handle.entity,UIColorPicker,picker=>{picker.alphaEnabled=false;picker.color.a=.1;});await tick();expect(handle.getColor().a).toBe(1);+ });+ it('history is per picker, bounded, and does not persist without the host',async()=>{+ const a=picker(),b=picker();await tick();const data=app.world.get(a.entity,UIColorPicker);+ events.emit(data.rememberButton,'click');await tick();events.emit(data.rememberButton,'click');await tick();+ expect(app.world.get(a.entity,UIColorPicker).history).toHaveLength(1);expect(app.world.get(b.entity,UIColorPicker).history).toHaveLength(0);+ });+ it('ignores edits and history actions on disabled controls',async()=>{+ const handle=picker();await tick();const original=handle.getColor(),data=app.world.get(handle.entity,UIColorPicker);+ app.world.insert(handle.entity,Interactable,{enabled:false,blockRaycast:true,raycastTarget:true});+ app.world.update(data.hex,TextInput,text=>{text.value='#ff0000';});events.emit(data.hex,'change');events.emit(data.rememberButton,'click');await tick();+ expect(handle.getColor()).toEqual(original);expect(app.world.get(handle.entity,UIColorPicker).history).toHaveLength(0);+ });+ it('independent prefab copies remap all picker references',async()=>{+ const prefab=widgetToPrefab(world=>createColorPicker({world,events}).entity,'ColorPicker');+ const a=await instantiatePrefab(app.world,prefab),b=await instantiatePrefab(app.world,prefab);+ const first=app.world.get(a.root,UIColorPicker),second=app.world.get(b.root,UIColorPicker);+ expect(first.hex).not.toBe(second.hex);expect(first.fields.every(e=>!second.fields.includes(e))).toBe(true);+ expect(first.sv).not.toBe(second.sv);expect(app.world.has(first.hex,TextInput)).toBe(true);+ });+});diff --git a/sdk/tests/ui-tree-model.test.ts b/sdk/tests/ui-tree-model.test.tsnew file mode 100644index 000000000..830bf1b38--- /dev/null+++ b/sdk/tests/ui-tree-model.test.ts@@ -0,0 +1,77 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+import { describe, it, expect, vi } from 'vitest';+import { TreeViewModel, type TreeDataSource } from '../src/ui/collection/tree-data-source';+import { col } from '../src/math/color';+import { normalizePickerColor } from '../src/ui/behavior/color-picker-system';++interface Item { key: string | number; title: string; items?: Item[]; selectable?: boolean }+function source(items: Item[]): TreeDataSource<Item> {+ return { getRoots: () => items, getChildren: item => item.items ?? [], getId: item => item.key,+ getLabel: item => item.title, isSelectable: item => item.selectable !== false };+}+const items = (): Item[] => [{ key: 'root', title: 'World', items: [+ { key: '3d', title: 'Models', items: [{ key: 0, title: 'Hero' }] },+ { key: '2d', title: 'Sprites' }, { key: 'locked', title: 'Disabled', selectable: false },+] }];+describe('generic tree projection', () => {+ it('projects arbitrary data, preserving numeric zero identity and depth', () => {+ const model = new TreeViewModel(source(items()), ['root', '3d']);+ expect(Array.from({length:model.getCount()},(_,i)=>model.getItem(i).id)).toEqual(['root','3d',0,'2d','locked']);+ expect(model.getNode(0)).toMatchObject({ depth:2,parentId:'3d' });+ expect(model.source.getLabel(model.getItem(2).item)).toBe('Hero');+ expect(()=>model.getItem(-1)).toThrow(RangeError);+ });+ it('retains selection when ancestors collapse and reveals without selecting', () => {+ const model=new TreeViewModel(source(items()),['root','3d']);model.select([0]);model.toggle('root');+ expect(model.getCount()).toBe(1);expect(model.selectedIds).toEqual([0]);model.reveal(0);+ expect(model.indexOf(0)).toBe(2);expect(model.selectedIds).toEqual([0]);+ });+ it('supports none/single/multiple selection and rejects unselectable IDs', () => {+ const model=new TreeViewModel(source(items()));model.select([0,'locked','2d','missing'],2);+ expect(model.selectedIds).toEqual([0,'2d']);model.select([0,'2d'],1);expect(model.selectedIds).toEqual(['2d']);+ model.select([0],0);expect(model.selectedIds).toEqual([]);+ });+ it('retains state across reorder and prunes removed IDs', () => {+ const data=items(),model=new TreeViewModel(source(data),['root','3d']);model.select([0]);+ data[0].items!.reverse();model.refresh();expect(model.selectedIds).toEqual([0]);expect(model.indexOf(0)).toBe(4);+ data[0].items=data[0].items!.filter(item=>item.key!=='3d');model.refresh();expect(model.selectedIds).toEqual([]);expect(model.expandedIds).toEqual(['root']);+ });+ it('rejects duplicate IDs transactionally, including collapsed branches', () => {+ const data=items(),model=new TreeViewModel(source(data));data.push({key:0,title:'Duplicate'});+ expect(()=>model.refresh()).toThrow('Duplicate');expect(model.getCount()).toBe(1);expect(model.getNode('root')).toBeDefined();+ });+ it('rejects a cyclic host tree instead of recursing forever', () => {+ const data=items();data[0].items!.push(data[0]);expect(()=>new TreeViewModel(source(data))).toThrow('cyclic');+ });+ it('handles 20,000 levels without recursive traversal', () => {+ let root:Item={key:0,title:'0'};const ids:number[]=[];+ for(let i=1;i<20000;i++){root={key:i,title:String(i),items:[root]};ids.push(i);}+ const model=new TreeViewModel(source([root]),ids);expect(model.getCount()).toBe(20000);expect(model.getItem(19999).depth).toBe(19999);+ });+ it('rejects self and descendant drops while leaving mutation to the host', () => {+ const data=items(),model=new TreeViewModel(source(data));+ expect(model.canDrop({source:model.getNode('3d')!,target:model.getNode(0)!,position:'inside'})).toBe(false);+ expect(model.canDrop({source:model.getNode(0)!,target:model.getNode('2d')!,position:'after'})).toBe(true);+ expect(data[0].items![0].items![0].key).toBe(0);+ });+ it('unsubscribes once and releases subscribers on disposal', () => {+ const off=vi.fn(),data=source(items());let notify=()=>{};data.subscribe=cb=>{notify=cb;return off;};+ const model=new TreeViewModel(data),listener=vi.fn();model.subscribe(listener);notify();expect(listener).toHaveBeenCalledOnce();+ model.dispose();model.dispose();notify();expect(off).toHaveBeenCalledOnce();expect(listener).toHaveBeenCalledOnce();+ });+});+describe('canonical HSV editing', () => {+ it.each([0,37,60,120,208,240,300,359])('round trips hue %s without implicit color-space conversion', h=>{+ const color=col.fromHsv(h,.73,.82,.42),hsv=col.toHsv(color);+ expect(hsv.h).toBeCloseTo(h);expect(hsv.s).toBeCloseTo(.73);expect(hsv.v).toBeCloseTo(.82);expect(color.a).toBe(.42);+ });+ it('preserves hue for gray and black editing and wraps hue',()=>{+ expect(col.toHsv(col.rgb(.5,.5,.5),208).h).toBe(208);expect(col.toHsv(col.rgb(0,0,0),208).h).toBe(208);+ expect(col.fromHsv(-60,1,1)).toEqual(col.fromHsv(300,1,1));+ });+ it('bounds nonfinite/imported colors and disables alpha explicitly',()=>{+ expect(normalizePickerColor({r:NaN,g:Infinity,b:-3,a:NaN})).toEqual({r:0,g:0,b:0,a:1});+ expect(normalizePickerColor({r:1,g:.4,b:.2,a:.1},false).a).toBe(1);+ });+});diff --git a/sdk/tests/ui-widget-prefabs.gen.test.ts b/sdk/tests/ui-widget-prefabs.gen.test.tsindex 43cd53d08..b11aff0c8 100644--- a/sdk/tests/ui-widget-prefabs.gen.test.ts+++ b/sdk/tests/ui-widget-prefabs.gen.test.ts@@ -32,6 +32,11 @@ 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';+import { UITreeView } from '../src/ui/behavior/tree-view';+import { UIColorPicker } from '../src/ui/behavior/color-picker';+import { createTreeView } from '../src/ui/widgets/tree-view';+import { createColorPicker } from '../src/ui/widgets/color-picker';+import { TextInput } from '../src/ui/text/text-input';const OUT_DIR = resolve(__dirname, '../src/ui/widgets/prefabs');/** Rewriting identical bytes still moves the mtime, and these are SOURCES: every@@ -74,6 +79,20 @@ afterAll(() => {});describe('UI widget prefab codegen', () => {+ it('TreeView: authored data is optional; runtime rows are never captured', () => {+ registerComponent('UITreeView', UITreeView);+ const p = generate('TreeView', world => createTreeView({ world, events: noEvents }).entity);+ expect(p.entities).toHaveLength(1);+ expect(typesOf(p, p.rootEntityId)).toContain('UITreeView');+ });+ it('ColorPicker: composes standard inputs and remaps every child reference', () => {+ for (const component of [UIColorPicker, UISlider, TextInput]) registerComponent(component._name, component);+ const p = generate('ColorPicker', world => createColorPicker({ world, events: noEvents }).entity);+ const data = entityById(p, p.rootEntityId).components.find(c => c.type === 'UIColorPicker')!.data;+ for (const ref of [data.sv, data.alphaRamp, data.cursor, data.hue, data.alpha,+ data.hex, data.historyRoot, data.rememberButton, data.preview, ...data.fields as string[]]) expect(entityById(p, ref as string)).toBeDefined();+ expect(p.entities.filter(e => e.components.some(c => c.type === 'TextInput'))).toHaveLength(5);+ });it('TabView: ordered tab and page references survive prefab capture', () => {registerComponent('UITabView', UITabView);registerComponent('UIToggle', UIToggle);diff --git a/tools/check-gizmo-coverage.mjs b/tools/check-gizmo-coverage.mjsindex 94de531cb..67021cf3c 100644--- a/tools/check-gizmo-coverage.mjs+++ b/tools/check-gizmo-coverage.mjs@@ -144,6 +144,7 @@ const DISPOSITION = {'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'],+ 'UITreeView.rowHeight': ['not-world', 'virtualized row height in local layout pixels'],'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 e4ff5437f..451d56ab0 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 reusable TreeView and ColorPicker UI controls': { note: 'Reusable UI trees and color pickers.' },+ 'feat(editor): add TreeView and ColorPicker authoring': { note: 'Reusable UI trees and color pickers.' },'feat: add TabView and Tooltip UI controls': { note: 'UI tabs and tooltips.' },'fix(ui): use hover state and sustained captures for tooltips': { note: 'UI tabs and tooltips.' },'fix(ui): render tooltips in the screen paint order': { note: 'UI tabs and tooltips.' },