一键导入
bl-anchor-adapter-elements
Use for Anchor AppUI adapter controls, UXML attributes, repeated-item data sources, command buttons, OptionPager, safe areas, or timers.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use for Anchor AppUI adapter controls, UXML attributes, repeated-item data sources, command buttons, OptionPager, safe areas, or timers.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | bl-anchor-adapter-elements |
| description | Use for Anchor AppUI adapter controls, UXML attributes, repeated-item data sources, command buttons, OptionPager, safe areas, or timers. |
Use this skill for Anchor-specific UI Toolkit/AppUI controls. Resolve Anchor source from the installed package root; in source checkouts this is commonly Packages/com.bovinelabs.anchor.
BovineLabs.Anchor.Adapters and Unity.AppUI when using AppUI-backed controls.dataSource before changing UXML.[UxmlAttribute] member name, for example itemTemplate becomes item-template.AnchorGridView extends AppUI GridView, exposes itemTemplate, and sets each cloned row element's dataSource to itemsSource[index].AnchorAccordion clones itemTemplate once per item and sets each AccordionItem.dataSource from itemsSource.GroupedMenuBuilder lives in BovineLabs.Anchor but is available only when UNITY_APPUI is defined.AnchorGridView or AnchorAccordion should bind to row properties directly. Do not put a root data-source-type on those item templates unless the row really should ignore the supplied item data.AnchorButton and AnchorActionButton expose commandWithEventInfo so a bound ICommand can receive the click event payload.command/clickable.command when no event payload is needed.PlayCommand.OptionPager when users should cycle through a compact option list instead of opening a dropdown.sourceItems, selectedIndex, wrap, emptyText, previousButtonIcon, nextButtonIcon, and showIndicator.bindItem is a C# delegate for rendering the selected item; use code when the default ToString() text is not enough.KeyValueGroup.Create(...) is the C# helper for compact two-column readouts. It creates rows and binds value labels to view-model paths.ClassBinding toggles a USS class from a boolean source. In UXML, set class and data-source-path; use delay only when a one-frame-delayed transition trigger is required.ClassBinding removes the class when the binding deactivates.AnchorSafeArea applies padding for configured unsafe edges and updates from AnchorApp.ScreenMetricsChanged, panel geometry, and its own geometry.Timer invokes a bound command repeatedly on schedule.Execute(...).Every(interval); interval = 0 disables scheduling.data-source-type on repeated item templates when the parent element supplies row data.Use for AnchorAppBuilder hosting, AnchorSettings, PanelRenderer or UIDocument setup, services, lifecycle hooks, or UXML service ownership.
Use for Anchor debug-toolbar panels backed by ECS systems, ToolbarHelper, SystemObservableObject, managed AutoToolbar panels, or debug asmdefs.
Use for Anchor ObservableObject or SystemObservableObject view models, generated properties and commands, UI Toolkit bindings, or ECS-to-UI state.
Use for Anchor destinations, actions, popups, back stack, arguments, screen callbacks, saved state, or Burst navigation entry points.