一键导入
bl-anchor-navigation
Use for Anchor destinations, actions, popups, back stack, arguments, screen callbacks, saved state, or Burst navigation entry points.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use for Anchor destinations, actions, popups, back stack, arguments, screen callbacks, saved state, or Burst navigation entry points.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | bl-anchor-navigation |
| description | Use for Anchor destinations, actions, popups, back stack, arguments, screen callbacks, saved state, or Burst navigation entry points. |
Use this skill for AnchorNavHost behavior and callers. Resolve Anchor source from the installed package root; in source checkouts this is commonly Packages/com.bovinelabs.anchor.
IAnchorNavHost, AnchorNavHost.Navigation, AnchorNavHost.State, AnchorNavHost.Burst, and the affected tests before changing behavior.AnchorNavAction.AnchorNavOptions; callers should not maintain a separate popup-open boolean when Toggle or ClosePopup expresses the operation.AnchorNavArgument for route arguments and implement IAnchorNavigationScreen on the bound view model when enter/exit callbacks need those arguments.AnchorNavHost.Burst for Burst-compatible navigation calls; use managed AnchorApp.Current.NavHost only from managed UI code.BovineLabs.Anchor.Tests nav tests first.AnchorSettings.Views.AnchorSettings.Actions as AnchorAction assets.[AnchorNavAction("name")] that returns AnchorNavAction.Navigate(actionOrDestination, args) first resolves a named action, then falls back to a destination key.AnchorNavAction.MergeArguments applies default arguments first and lets explicit arguments replace matching names.Toggle(actionOrDestination, args) for toolbar/menu popup buttons. It resolves actions the same way as Navigate, closes the matching active popup branch when present, and otherwise navigates.AnchorPopupStrategy.PopupOnCurrent overlays a popup on the active visual stack.AnchorPopupStrategy.EnsureBaseAndPopup first ensures PopupBaseDestination, then overlays the popup. It requires a non-empty base destination.AnchorPopupExistingStrategy.CloseOtherPopups removes current popups before showing the new popup.AnchorPopupExistingStrategy.PushNew archives the current stack and rebuilds the base/popup branch.CurrentDestination is the popup destination. Use HasActivePopups or ClosePopup instead of inferring base-panel state from CurrentDestination.PopToSpecificDestination pops until PopupToDestination is on top and currently clears the back stack when that destination is absent.ClearBackStack() leaves the current destination active.ClearNavigation(exitAnimation) clears the active stack and back stack.PopBackStack() restores the previous snapshot, including popup layers captured with it.PopBackStackToPanel() restores the previous snapshot without popup layers. In the current implementation, CurrentDestination can still retain the stored popup destination; use HasActivePopups to determine overlay state.ClosePopup(destination, exitAnimation) removes a matching active popup and updates the current destination.CloseAllPopups(exitAnimation) removes every active popup and restores the base destination.SaveState(), RestoreState(...), SaveStateHandle(), and ReleaseStateHandle(...) are for temporary in-memory UI state capture and app shutdown restoration, not persistent save-game serialization.AnchorNavArgument.String(name, value) or AnchorNavArgument.From(name, value).AnchorNavHost calls IAnchorNavigationScreen.OnEnter(args) and OnExit(args) on elements whose dataSource implements the interface.AnchorNavHost.Burst exposes Navigate, Toggle, CurrentDestination, ClearBackStack, ClearNavigation, PopBackStack, PopBackStackToPanel, CloseAllPopups, ClosePopup, HasActivePopups, CanGoBack, SaveStateHandle, and ReleaseStateHandle.FixedString32Bytes; keep string conversion at the managed boundary.AnchorApp.Current.NavHost directly from Burst jobs.Toggle.PickingMode.Ignore expectations from AnchorNavHost down into UXMLService.Use for Anchor AppUI adapter controls, UXML attributes, repeated-item data sources, command buttons, OptionPager, safe areas, or timers.
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.