[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CMNDESZN79EK5FRDXCA2WA":3,"skill-same:01M7CMNDESZN79EK5FRDXCA2WA":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7CMNDESZN79EK5FRDXCA2WA","unity-ui-toolkit",null,"UI Toolkit (UXML, USS, UIDocument): flex layout, binding, custom elements, editor windows.","tipoLi5890\u002Funity-dev-skills","tipoLi5890","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F177803612?v=4","01M7CMD7DHGZ09CB53CRFHAA34","Li, ching yu","01M7CMD7E70K5RAHWWZVYX9YMG",2,"MIT","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ui-toolkit\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: unity-ui-toolkit\ndescription: >-\n  UI Toolkit (UXML, USS, UIDocument): flex layout, binding, custom elements, editor windows.\n---\n\n# unity-ui-toolkit — USS is a subset of CSS, and it fails quietly\n\n> **An unsupported USS property is not an error. It is ignored.** No console warning in many\n> cases, no visual difference, nothing to grep for. Writing `gap`, `z-index` or `box-shadow`\n> out of CSS habit produces a stylesheet that parses cleanly and lays out wrong — which is why\n> §1 is a list of things that do not exist rather than a list of things that do.\n\nNot sure the project is UI Toolkit? `unity-game-ui` §0 has the detection ladder.\n\n## Symptom → where to look\n\n| Symptom | Go to |\n|---|---|\n| Authoring `.uxml` \u002F `.uss`, a `UIDocument`, `VisualElement` or `Manipulator` from scratch | §0, then §1–§4 |\n| Nothing renders at all, and the Console is clean | [`reference\u002Fflex-layout.md`](reference\u002Fflex-layout.md) — a `UIDocument` with no `PanelSettings` |\n| \"The USS property does nothing\" — a style property has no effect | §1 — it probably does not exist |\n| A rule loses to another rule; tokens, hover states, 9-slice | `reference\u002Fuss-patterns.md` |\n| The hover transition only animates one way: in, then snaps back out | §2 |\n| \"The layout ignores my width\" — elements ignore the width\u002Fheight you set | [`reference\u002Fflex-layout.md`](reference\u002Fflex-layout.md) |\n| The layout is right but nothing responds to clicks | §4 |\n| It parses but renders wrong | §2 |\n| Need a gradient, a custom shape, a meter | §5 |\n| Drag-and-drop between inventory or crafting slots | §4 |\n| The bound label never updates, or updates one way only | §4 |\n| A custom element does not resolve from UXML | §5 |\n| An editor window, custom inspector or property drawer | §6 |\n| Text needs a font asset, or shows tofu | [`reference\u002Fflex-layout.md`](reference\u002Fflex-layout.md), then `unity-localization` |\n\n**There is no automated design-file import in this toolchain.** A link to a mockup in a\nbrowser-based design tool converts to nothing here. Say that plainly rather than promising a\nconversion, then ask for a description or a screenshot and build the screen the ordinary way.\n\n## 0. You cannot validate these files from outside the Editor\n\nUXML and USS are parsed on import. There is no offline linter, so mistakes cost a round trip\nthrough a human or a live Editor. Two consequences:\n\n- **Write complete files, never partial ones.** A half-written UXML file is a parse error the\n  instant the Editor picks it up — and if the Editor is watching, it picks it up mid-save.\n- **Finish every file before asking for a check**, so one reimport covers the whole change.\n- **Build only what was asked.** \"Proper buttons\" and \"a menu screen\" are styling and layout, not\n  behaviour — add scripts only when the request does. Full rule: `unity-game-ui` §0.\n\nBest case, drive a live Editor and trigger the reimport yourself —\n`unity-debug` → `reference\u002Feditor-control.md`. Failing that, ask the user to focus the Editor\nand report the Console: UXML parse errors name file and line; USS problems appear as warnings\nabout unknown properties or selectors. **The mistakes in §2 survive the parse and appear\nnowhere in the Console** — those need eyes on the UI.\n\n## 1. Properties that do not exist in USS\n\n| Reach for | Use instead |\n|---|---|\n| `border` shorthand | `border-width`, `border-color` separately |\n| `gap` | `margin` on the children |\n| `z-index` | Document order, or nest under a different parent |\n| `pointer-events` | `picking-mode` — a UXML attribute, not a style |\n| `outline` | `border-*` |\n| `box-shadow` | A nested element, or a background image |\n| `:first-child`, `:last-child`, `:nth-child` | Explicit classes |\n| `[attribute]` selectors | Explicit classes |\n| `linear-gradient()`, `radial-gradient()` | `FillGradient` on a Painter2D element — §5 |\n\nEnumerating `UnityEngine.UIElements.IStyle` shows `gap`, `zIndex`, `boxShadow`, `outline`,\n`pointerEvents` and the shorthand `borderWidth` all **absent**, while `borderTopWidth`,\n`backgroundImage` and `flexGrow` are present. `picking-mode` takes exactly `Position` or `Ignore`.\n\nTwo near-misses that belong in neither column — `filter`, which does exist, and\n`transition-property`, which exists but ignores a named property value — are in\n[`reference\u002Fuss-patterns.md`](reference\u002Fuss-patterns.md).\n\nThree more absolutes:\n\n- **Never `style=\"…\"` in UXML.** Inline styles carry per-element memory overhead and put styling\n  somewhere no stylesheet can override.\n- **Never `url()` with an external path.** Only `url(\"project:\u002F\u002Fdatabase\u002FAssets\u002F…\")`.\n- **Do not reference `UnityDefaultRuntimeTheme.tss`** or built-in theme icons; build styles from\n  project assets instead, or the UI inherits an editor look that will change under you.\n\n## 2. Things that parse and still render wrong\n\n**Transitions belong on the base selector, not the state.** On the state, the property is only\ndefined while hovering — so it animates in and snaps back out.\n\n```uss\n\u002F* wrong — no animation on hover-out *\u002F\n.button:hover { background-color: blue; transition-duration: 0.2s; }\n\n\u002F* right *\u002F\n.button       { background-color: white; transition-duration: 0.2s; }\n.button:hover { background-color: blue; }\n```\n\n**An unclosed brace swallows the next rule** rather than erroring where you left it — the\nsymptom is \"the rule after the broken one stopped applying\".\n\n**Hardcoded percentage widths** are the flex equivalent of absolute positioning: `width: 33%`\nbreaks the moment padding, margin or a scrollbar exists. `flex-grow: 1` is what you meant.\n\n## 3. Flex is the layout model → `reference\u002Fflex-layout.md`\n\nWhy elements ignore the width you set, grow and shrink, a `UIDocument` that renders nothing\nwithout `PanelSettings`, and text that needs a font asset.\n\n## 4. Interactivity, and the data behind it\n\nAttach a **PointerManipulator** to the element rather than wiring callbacks from the outside —\nit keeps the behaviour with the thing that has it, and it is how drag-and-drop is expressed at\nall. A plain click is `Button`'s own `clicked` event, or a `Clickable` attached from C#: there is\n**no UXML attribute that attaches one** — `Button`'s only UXML attribute of its own sets its icon\nimage, and `Clickable` is an ordinary `PointerManipulator` subclass with no UXML-object attribute.\nReach for explicit C# event callbacks only when the interaction genuinely spans elements.\n\nAnything drag-shaped needs four events, a pointer capture and a decision about `picking-mode` on\nthe item being dragged; moving it with `translate` rather than `left`\u002F`top` is what keeps a\nfifty-slot inventory smooth. Full pattern, drop-target detection, and the questions to ask before\nbuilding an inventory or crafting screen at all:\n[`reference\u002Fmanipulators-and-drag-drop.md`](reference\u002Fmanipulators-and-drag-drop.md).\n\n**Values that should follow game state get a binding, not an `Update`.** The member on the far end\nof a binding has to be a property carrying `[CreateProperty]` — a public field resolves to nothing,\nsilently, and the label simply never changes. `BindingMode` has **four** values, not the three\nusually quoted: `TwoWay`, `ToSource`, `ToTarget`, `ToTargetOnce`. Modes, `nameof` paths, the UXML\n`\u003CBindings>` form, the root `data-source` that makes design-time preview work, the enable\u002Fdisable\nlifecycle, and when binding is the wrong tool:\n[`reference\u002Fruntime-binding.md`](reference\u002Fruntime-binding.md).\n\n## 5. Drawing what USS cannot, and elements of your own\n\nGradients, custom shapes, meters, graphs: a custom `VisualElement` with `generateVisualContent`\nand Painter2D. Gradients have a real API — `FillGradient.MakeLinearGradient` \u002F\n`MakeRadialGradient` assigned to `painter2D.fillGradient` — so this is not \"hand-build the ramp\".\nReusable elements: `[UxmlElement]` needs `partial`, the old factory attributes are obsolete, the\nUXML namespace declaration must carry no assembly name, C# camelCase becomes UXML kebab-case, and\nan element that *draws* derives from `VisualElement` directly. The factories, `AddressMode`, the\n`Arc` \u002F `Angle` \u002F `ArcDirection` signatures, `Fill(FillRule)`, `ctx.DrawText`, attribute\nconverters and where icons should come from:\n→ [`reference\u002Fpainter2d-and-custom-elements.md`](reference\u002Fpainter2d-and-custom-elements.md)\n\n## 6. Editor windows, inspectors and property drawers\n\nEditor UI is the one place immediate-mode `OnGUI` is still a legitimate choice, and the rule is\nnarrow: **anything new defaults to UI Toolkit** — `CreateGUI` on an `EditorWindow`,\n`CreateInspectorGUI` on an `Editor`, `CreatePropertyGUI` on a `PropertyDrawer`. Immediate mode\nonly when maintaining code that already has `OnGUI` in it, when every editor tool in the project\nis immediate-mode, or when the request names `OnGUI` directly.\n\nTwo things bite before the first line of layout: editor code must live in an `Editor` folder or an\neditor-only assembly, and `CreateGUI` \u002F `OnGUI` are called by name rather than declared. Both, with\ntheir failure shapes, plus templates for all three entry points, the undo contract\n(`serializedObject.Update()` … `ApplyModifiedProperties()`), and the immediate-mode cost rules:\n[`reference\u002Feditor-tooling.md`](reference\u002Feditor-tooling.md).\n\n## 7. What costs performance\n\nIn descending order — the first is usually the whole answer:\n\n1. **Hierarchy size.** Depth and element count dominate everything else.\n2. **`:hover` on a parent with many children** invalidates the whole subtree on every enter and\n   leave.\n3. **Many classes per element** — selector matching degrades linearly.\n4. **Inline styles** — per-element memory, and they defeat sharing.\n5. **Layout writes in a pointer-move handler.** Setting `left`\u002F`top` per frame runs a layout pass\n   per frame; `translate` is applied after layout and skips it.\n\n## 8. Verify\n\nThe Console catches parse errors; nothing catches §2. So:\n\n- Confirm the reimport actually happened — a silent Console can mean \"no errors\" or \"the Editor\n  never picked the file up\", and those look identical.\n- If nothing appears at all, check the `UIDocument`'s Panel Settings field before anything else:\n  a missing `PanelSettings` gives an empty screen, a clean Console, and passes every other check\n  here (`reference\u002Fflex-layout.md`).\n- Read back the properties you set. A property that does not exist was accepted, ignored, and\n  reported nowhere.\n- Look at the screen at two window sizes. A layout that only works at one size is the usual\n  symptom of hardcoded percentages.\n- Hover, click and drag anything interactive. `picking-mode` and a missing manipulator both\n  produce a perfect-looking, inert UI.\n- Change the value behind a binding and watch the element. A binding that resolved to nothing is\n  indistinguishable from one that works until the number moves.\n\n## Scope — what this skill does NOT do\n\nCanvas\u002FuGUI (`unity-ui-ugui`), runtime `OnGUI` HUDs and the UI-system detection ladder\n(`unity-game-ui`), type scale and viewing distance (`unity-game-ui` →\n`reference\u002Ftype-scale.md`), multi-language pipelines (`unity-localization`). Editor tooling is in\nscope only as UI — build automation and headless invocation are `unity-cli`, and connecting to a\nlive Editor to reimport what you wrote is `unity-debug`.\n\n## Reference\n\n- [`reference\u002Fflex-layout.md`](reference\u002Fflex-layout.md) — §3: flex layout, `PanelSettings`, fonts\n- [`reference\u002Fruntime-binding.md`](reference\u002Fruntime-binding.md) — data binding\n- [`reference\u002Fmanipulators-and-drag-drop.md`](reference\u002Fmanipulators-and-drag-drop.md) — drags,\n  drop targets, inventory and crafting\n- [`reference\u002Fpainter2d-and-custom-elements.md`](reference\u002Fpainter2d-and-custom-elements.md) —\n  custom elements, attribute converters, Painter2D, vector icons\n- [`reference\u002Feditor-tooling.md`](reference\u002Feditor-tooling.md) — editor windows, inspectors,\n  property drawers\n- [`reference\u002Fpanel-settings-and-text.md`](reference\u002Fpanel-settings-and-text.md) — `PanelSettings`\n  and TextCore font assets\n- [`reference\u002Fuss-patterns.md`](reference\u002Fuss-patterns.md) — tokens, state tints, wrapping,\n  9-slice, selector cost, specificity\n","# unity-ui-toolkit — USS is a subset of CSS, and it fails quietly\n\n> **An unsupported USS property is not an error. It is ignored.** No console warning in many\n> cases, no visual difference, nothing to grep for. Writing `gap`, `z-index` or `box-shadow`\n> out of CSS habit produces a stylesheet that parses cleanly and lays out wrong — which is why\n> §1 is a list of things that do not exist rather than a list of things that do.\n\nNot sure the project is UI Toolkit? `unity-game-ui` §0 has the detection ladder.\n\n## Symptom → where to look\n\n| Symptom | Go to |\n|---|---|\n| Authoring `.uxml` \u002F `.uss`, a `UIDocument`, `VisualElement` or `Manipulator` from scratch | §0, then §1–§4 |\n| Nothing renders at all, and the Console is clean | [`reference\u002Fflex-layout.md`](reference\u002Fflex-layout.md) — a `UIDocument` with no `PanelSettings` |\n| \"The USS property does nothing\" — a style property has no effect | §1 — it probably does not exist |\n| A rule loses to another rule; tokens, hover states, 9-slice | `reference\u002Fuss-patterns.md` |\n| The hover transition only animates one way: in, then snaps back out | §2 |\n| \"The layout ignores my width\" — elements ignore the width\u002Fheight you set | [`reference\u002Fflex-layout.md`](reference\u002Fflex-layout.md) |\n| The layout is right but nothing responds to clicks | §4 |\n| It parses but renders wrong | §2 |\n| Need a gradient, a custom shape, a meter | §5 |\n| Drag-and-drop between inventory or crafting slots | §4 |\n| The bound label never updates, or updates one way only | §4 |\n| A custom element does not resolve from UXML | §5 |\n| An editor window, custom inspector or property drawer | §6 |\n| Text needs a font asset, or shows tofu | [`reference\u002Fflex-layout.md`](reference\u002Fflex-layout.md), then `unity-localization` |\n\n**There is no automated design-file import in this toolchain.** A link to a mockup in a\nbrowser-based design tool converts to nothing here. Say that plainly rather than promising a\nconversion, then ask for a description or a screenshot and build the screen the ordinary way.\n\n## 0. You cannot validate these files from outside the Editor\n\nUXML and USS are parsed on import. There is no offline linter, so mistakes cost a round trip\nthrough a human or a live Editor. Two consequences:\n\n- **Write complete files, never partial ones.** A half-written UXML file is a parse error the\n  instant the Editor picks it up — and if the Editor is watching, it picks it up mid-save.\n- **Finish every file before asking for a check**, so one reimport covers the whole change.\n- **Build only what was asked.** \"Proper buttons\" and \"a menu screen\" are styling and layout, not\n  behaviour — add scripts only when the request does. Full rule: `unity-game-ui` §0.\n\nBest case, drive a live Editor and trigger the reimport yourself —\n`unity-debug` → `reference\u002Feditor-control.md`. Failing that, ask the user to focus the Editor\nand report the Console: UXML parse errors name file and line; USS problems appear as warnings\nabout unknown properties or selectors. **The mistakes in §2 survive the parse and appear\nnowhere in the Console** — those need eyes on the UI.\n\n## 1. Properties that do not exist in USS\n\n| Reach for | Use instead |\n|---|---|\n| `border` shorthand | `border-width`, `border-color` separately |\n| `gap` | `margin` on the children |\n| `z-index` | Document order, or nest under a different parent |\n| `pointer-events` | `picking-mode` — a UXML attribute, not a style |\n| `outline` | `border-*` |\n| `box-shadow` | A nested element, or a background image |\n| `:first-child`, `:last-child`, `:nth-child` | Explicit classes |\n| `[attribute]` selectors | Explicit classes |\n| `linear-gradient()`, `radial-gradient()` | `FillGradient` on a Painter2D element — §5 |\n\nEnumerating `UnityEngine.UIElements.IStyle` shows `gap`, `zIndex`, `boxShadow`, `outline`,\n`pointerEvents` and the shorthand `borderWidth` all **absent**, while `borderTopWidth`,\n`backgroundImage` and `flexGrow` are present. `picking-mode` takes exactly `Position` or `Ignore`.\n\nTwo near-misses that belong in neither column — `filter`, which does exist, and\n`transition-property`, which exists but ignores a named property value — are in\n[`reference\u002Fuss-patterns.md`](reference\u002Fuss-patterns.md).\n\nThree more absolutes:\n\n- **Never `style=\"…\"` in UXML.** Inline styles carry per-element memory overhead and put styling\n  somewhere no stylesheet can override.\n- **Never `url()` with an external path.** Only `url(\"project:\u002F\u002Fdatabase\u002FAssets\u002F…\")`.\n- **Do not reference `UnityDefaultRuntimeTheme.tss`** or built-in theme icons; build styles from\n  project assets instead, or the UI inherits an editor look that will change under you.\n\n## 2. Things that parse and still render wrong\n\n**Transitions belong on the base selector, not the state.** On the state, the property is only\ndefined while hovering — so it animates in and snaps back out.\n\n```uss\n\u002F* wrong — no animation on hover-out *\u002F\n.button:hover { background-color: blue; transition-duration: 0.2s; }\n\n\u002F* right *\u002F\n.button       { background-color: white; transition-duration: 0.2s; }\n.button:hover { background-color: blue; }\n```\n\n**An unclosed brace swallows the next rule** rather than erroring where you left it — the\nsymptom is \"the rule after the broken one stopped applying\".\n\n**Hardcoded percentage widths** are the flex equivalent of absolute positioning: `width: 33%`\nbreaks the moment padding, margin or a scrollbar exists. `flex-grow: 1` is what you meant.\n\n## 3. Flex is the layout model → `reference\u002Fflex-layout.md`\n\nWhy elements ignore the width you set, grow and shrink, a `UIDocument` that renders nothing\nwithout `PanelSettings`, and text that needs a font asset.\n\n## 4. Interactivity, and the data behind it\n\nAttach a **PointerManipulator** to the element rather than wiring callbacks from the outside —\nit keeps the behaviour with the thing that has it, and it is how drag-and-drop is expressed at\nall. A plain click is `Button`'s own `clicked` event, or a `Clickable` attached from C#: there is\n**no UXML attribute that attaches one** — `Button`'s only UXML attribute of its own sets its icon\nimage, and `Clickable` is an ordinary `PointerManipulator` subclass with no UXML-object attribute.\nReach for explicit C# event callbacks only when the interaction genuinely spans elements.\n\nAnything drag-shaped needs four events, a pointer capture and a decision about `picking-mode` on\nthe item being dragged; moving it with `translate` rather than `left`\u002F`top` is what keeps a\nfifty-slot inventory smooth. Full pattern, drop-target detection, and the questions to ask before\nbuilding an inventory or crafting screen at all:\n[`reference\u002Fmanipulators-and-drag-drop.md`](reference\u002Fmanipulators-and-drag-drop.md).\n\n**Values that should follow game state get a binding, not an `Update`.** The member on the far end\nof a binding has to be a property carrying `[CreateProperty]` — a public field resolves to nothing,\nsilently, and the label simply never changes. `BindingMode` has **four** values, not the three\nusually quoted: `TwoWay`, `ToSource`, `ToTarget`, `ToTargetOnce`. Modes, `nameof` paths, the UXML\n`\u003CBindings>` form, the root `data-source` that makes design-time preview work, the enable\u002Fdisable\nlifecycle, and when binding is the wrong tool:\n[`reference\u002Fruntime-binding.md`](reference\u002Fruntime-binding.md).\n\n## 5. Drawing what USS cannot, and elements of your own\n\nGradients, custom shapes, meters, graphs: a custom `VisualElement` with `generateVisualContent`\nand Painter2D. Gradients have a real API — `FillGradient.MakeLinearGradient` \u002F\n`MakeRadialGradient` assigned to `painter2D.fillGradient` — so this is not \"hand-build the ramp\".\nReusable elements: `[UxmlElement]` needs `partial`, the old factory attributes are obsolete, the\nUXML namespace declaration must carry no assembly name, C# camelCase becomes UXML kebab-case, and\nan element that *draws* derives from `VisualElement` directly. The factories, `AddressMode`, the\n`Arc` \u002F `Angle` \u002F `ArcDirection` signatures, `Fill(FillRule)`, `ctx.DrawText`, attribute\nconverters and where icons should come from:\n→ [`reference\u002Fpainter2d-and-custom-elements.md`](reference\u002Fpainter2d-and-custom-elements.md)\n\n## 6. Editor windows, inspectors and property drawers\n\nEditor UI is the one place immediate-mode `OnGUI` is still a legitimate choice, and the rule is\nnarrow: **anything new defaults to UI Toolkit** — `CreateGUI` on an `EditorWindow`,\n`CreateInspectorGUI` on an `Editor`, `CreatePropertyGUI` on a `PropertyDrawer`. Immediate mode\nonly when maintaining code that already has `OnGUI` in it, when every editor tool in the project\nis immediate-mode, or when the request names `OnGUI` directly.\n\nTwo things bite before the first line of layout: editor code must live in an `Editor` folder or an\neditor-only assembly, and `CreateGUI` \u002F `OnGUI` are called by name rather than declared. Both, with\ntheir failure shapes, plus templates for all three entry points, the undo contract\n(`serializedObject.Update()` … `ApplyModifiedProperties()`), and the immediate-mode cost rules:\n[`reference\u002Feditor-tooling.md`](reference\u002Feditor-tooling.md).\n\n## 7. What costs performance\n\nIn descending order — the first is usually the whole answer:\n\n1. **Hierarchy size.** Depth and element count dominate everything else.\n2. **`:hover` on a parent with many children** invalidates the whole subtree on every enter and\n   leave.\n3. **Many classes per element** — selector matching degrades linearly.\n4. **Inline styles** — per-element memory, and they defeat sharing.\n5. **Layout writes in a pointer-move handler.** Setting `left`\u002F`top` per frame runs a layout pass\n   per frame; `translate` is applied after layout and skips it.\n\n## 8. Verify\n\nThe Console catches parse errors; nothing catches §2. So:\n\n- Confirm the reimport actually happened — a silent Console can mean \"no errors\" or \"the Editor\n  never picked the file up\", and those look identical.\n- If nothing appears at all, check the `UIDocument`'s Panel Settings field before anything else:\n  a missing `PanelSettings` gives an empty screen, a clean Console, and passes every other check\n  here (`reference\u002Fflex-layout.md`).\n- Read back the properties you set. A property that does not exist was accepted, ignored, and\n  reported nowhere.\n- Look at the screen at two window sizes. A layout that only works at one size is the usual\n  symptom of hardcoded percentages.\n- Hover, click and drag anything interactive. `picking-mode` and a missing manipulator both\n  produce a perfect-looking, inert UI.\n- Change the value behind a binding and watch the element. A binding that resolved to nothing is\n  indistinguishable from one that works until the number moves.\n\n## Scope — what this skill does NOT do\n\nCanvas\u002FuGUI (`unity-ui-ugui`), runtime `OnGUI` HUDs and the UI-system detection ladder\n(`unity-game-ui`), type scale and viewing distance (`unity-game-ui` →\n`reference\u002Ftype-scale.md`), multi-language pipelines (`unity-localization`). Editor tooling is in\nscope only as UI — build automation and headless invocation are `unity-cli`, and connecting to a\nlive Editor to reimport what you wrote is `unity-debug`.\n\n## Reference\n\n- [`reference\u002Fflex-layout.md`](reference\u002Fflex-layout.md) — §3: flex layout, `PanelSettings`, fonts\n- [`reference\u002Fruntime-binding.md`](reference\u002Fruntime-binding.md) — data binding\n- [`reference\u002Fmanipulators-and-drag-drop.md`](reference\u002Fmanipulators-and-drag-drop.md) — drags,\n  drop targets, inventory and crafting\n- [`reference\u002Fpainter2d-and-custom-elements.md`](reference\u002Fpainter2d-and-custom-elements.md) —\n  custom elements, attribute converters, Painter2D, vector icons\n- [`reference\u002Feditor-tooling.md`](reference\u002Feditor-tooling.md) — editor windows, inspectors,\n  property drawers\n- [`reference\u002Fpanel-settings-and-text.md`](reference\u002Fpanel-settings-and-text.md) — `PanelSettings`\n  and TextCore font assets\n- [`reference\u002Fuss-patterns.md`](reference\u002Fuss-patterns.md) — tokens, state tints, wrapping,\n  9-slice, selector cost, specificity\n",{"name":5,"description":7},"main","b7459aa49fb881c5abb764223674ec8f397a02b1","skills\u002Funity-ui-toolkit",0,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills","https:\u002F\u002Fgithub.com\u002FtipoLi5890","https:\u002F\u002Ftipoli5890.github.io\u002F","2026-11-10 09:16:41",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add tipoLi5890\u002Funity-dev-skills --skill unity-ui-toolkit",{"tool":38,"command":39},"bunx","bunx skills add tipoLi5890\u002Funity-dev-skills --skill unity-ui-toolkit",{"tool":41,"command":42},"pnpm","pnpm dlx skills add tipoLi5890\u002Funity-dev-skills --skill unity-ui-toolkit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ui-toolkit\u002FSKILL.md",true,[46,52,56,60,64,68,72],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"reference\u002Feditor-tooling.md","REFERENCE","参考文档",18729,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ui-toolkit\u002Freference\u002Feditor-tooling.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"reference\u002Fflex-layout.md",3092,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ui-toolkit\u002Freference\u002Fflex-layout.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"reference\u002Fmanipulators-and-drag-drop.md",8362,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ui-toolkit\u002Freference\u002Fmanipulators-and-drag-drop.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"reference\u002Fpainter2d-and-custom-elements.md",24348,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ui-toolkit\u002Freference\u002Fpainter2d-and-custom-elements.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"reference\u002Fpanel-settings-and-text.md",2391,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ui-toolkit\u002Freference\u002Fpanel-settings-and-text.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"reference\u002Fruntime-binding.md",9620,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ui-toolkit\u002Freference\u002Fruntime-binding.md",{"path":73,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":74,"sourceHtmlUrl":75},"reference\u002Fuss-patterns.md",10005,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ui-toolkit\u002Freference\u002Fuss-patterns.md",[77,84,91,98,105,112],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7CMNYXQNW14ST64EYEEZ5V5","unity-web-release","Ship a WebGL\u002FWebGPU build: shrink the download, Brotli server headers, Safari and iPhone memory.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-web-release\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7CMNTHD1EA70CCJ2F9FN3HT","unity-vivox","Vivox voice and text chat: channels, positional voice, mute and push-to-talk, mic permission.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-vivox\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7CMNPHPRQZ7K1FES2953DRQ","unity-urp-migration","Migrate a Built-in project to URP, or fix a half-moved one: pink materials, PPv2, old shaders.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-urp-migration\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7CMNJ756DK4V0D50HMAZYQW","unity-ui-ugui","Canvas UI (uGUI): CanvasScaler, RectTransform anchors, Layout Groups, ScrollView, UI built from C#.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ui-ugui\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M7CMN8GBV07K0YCY07BJ6A1W","unity-ugs","Unity Gaming Services API: which package, init and sign-in order, Cloud Save, Cloud Code, Remote Config.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ugs\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":19},"01M7CMN41BA0FYC4KP76YHSZMC","unity-tilemap","Tile Palettes for rect, hex and iso grids, rule tiles, autotiling from a terrain sheet.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-tilemap\u002FSKILL.md",[],[]]