scenario-unity-mobile
БесплатноЗапускает вложенные скриптыНе проверенUse when a Unity 6.3 game targets Android or iOS: phone frame budget, overheating after 20 minutes, 'my game stutters on phones', ASTC or ETC2 textures, audio…
от scenario-labs★ 4 422 звезды на GitHubОб этом скилле
Unity mobile (mobile specialist)
Expert mobile work means a game that holds its frame rate after twenty minutes on a three-year-old
phone, starts fast, installs from the store, and never double-charges or double-grants. The stance:
budget the sustained frame, prove every setting on the data the device gets (imported format, built
bundle, exported Xcode project), and treat stores, SDKs and money code as contracts with ugly event
orders. Target: Unity 6000.3.21f1, URP 17.3, Input System 1.20, macOS with Xcode 26.6. If a sibling
skill named here is missing from your available skills, load it with skill_get (Scenario MCP) or
ask the user to install it (https://github.com/scenario-labs/skills#install); unattended, proceed
from tool schemas and flag the gap.
REQUIRED BACKGROUND: scenario-unity-expert (channels, review loop, 6.3 traps). Toolkit:
scripts/ut_mobile.py (imports ut_env, ut_run, ut_stat), editor jobs
in scripts/AgentKit/Mobile/, player code in
scripts/Runtime/.
Stance (the expert delta)
- Budget the sustained frame, not the peak. About 65% of 1000/fps (10.8 ms at 60, 21.7 ms at 30), judged on p95 and max, on the lowest phone, short bursts, 10 to 15 minutes of cooldown; assume vsync, so a missed refresh halves the rate (Unity mobile e-book). Under heat, lower render scale first only when the GPU is the bottleneck: resolution barely helps a CPU-bound frame (6.3 Manual). Prove the policy with synthetic thermal events, not a hot phone (d5O4Uw6gPBI [00:04:21]). Editor timings are relative; draw and SetPass counts are the stable Editor evidence (observed).
- Check the effective format, then lock the rule. A texture the GPU cannot sample is
decompressed to RGBA32 on the CPU (6.3 Manual); an HDR map without an ASTC HDR override imported
as ETC2_RGBA8 (observed). ASTC 4x4 UI and faces, 6x6 default, 8x8 big environment maps [added];
crunch does nothing on ASTC. Audio: WAV sources, mono SFX at 22,050 Hz at most, ADPCM under 200
KB, Streaming only above about 400 KB (e-book). An
AssetPostprocessorkeeps new assets compliant (Unity Enterprise Support, j4YAY36xjwE [00:19:07]). - Mobile URP is not PC URP with a lower slider. Depth Priming Disabled (unsupported on Android, iOS and TBDR), Native RenderPass on, Depth and Opaque textures off unless sampled, HDR off or 32-bit, soft shadows off, Store Actions Auto or Discard (6.3 Manual). One URP asset per Quality tier; a batch editor launched for Android still reported Quality "PC" (observed; same trap in 2J0kDtUGlrY [frame 00:10:28]).
- Release builds are reproducible from the environment. Unity never stores keystore passwords: set them in the build process from env vars; Google refuses the debug keystore (6.3 Manual; LlamAcademy, GTaXWgKz0e8 [00:06:24]). Development Build off, symbols in the bundle from the first upload: Play never symbolicates crashes received before the symbols (6.3 Manual). Check the built bundle, not the settings.
- The Android main thread and the splash are shared budgets. Most game ANRs happen while
backgrounding: nothing heavy in
OnApplicationPause, SDK init staggered after milestones, symbols shipped; read the signature, the previous exit reason on next launch, and exclude low-revenue devices that dominate ANRs (Unity Android team, pezwIhA0e04 [00:27:24], [00:25:12], [00:13:13], [00:41:40], [00:29:02]). The Resources index and first-sceneAwakerun under the splash (j4YAY36xjwE [00:33:59]); a loader scene reports its real interactive frame withCallReportFullyDrawn(6.3 Manual). - Money code is idempotent. Validate, grant, then
ConfirmPurchase; dedupe by transaction id in flight and persisted; pending orders fromOnPurchasesFetchedgo through the same path; aFailedOrderon confirm is retried with the kept order, never regranted; buy only fetchedProductobjects; never revoke on an empty Google fetch; show the store's localized price; handjwsRepresentationto attribution SDKs (IAP 5 docs; Unity, szS2KMxZsl4 [00:07:27], [00:09:28], [00:11:38]). Grant rewarded ads inOnAdRewardedwhatever the callback order. - Touch is events and virtual devices; the HUD lives in one safe-area panel. EnhancedTouch,
never
Touchscreen.currentin Update; on-screen controls emit a virtual Gamepad; thumb controls at Constant Physical Size (Input System team, ptvjumIHxYg [00:20:29]).movementRangeis a radius (observed). Render outside the safe area on, HUD in aSafeAreaFitterpanel (Chema Damak, PLQ4ywB13eg [00:10:53]); UI Toolkit top =Screen.height - safeArea.yMax(proven by test). The Device Simulator is one finger, no performance, noUNITY_IOS, no native plug-ins (6.3 docs). - SDKs and stores are contracts. Consent answered before the first ad request, ad SDK init after the first milestone, n
Установить scenario-unity-mobile в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл scenario-unity-mobile?
Use when a Unity 6.3 game targets Android or iOS: phone frame budget, overheating after 20 minutes, 'my game stutters on phones', ASTC or ETC2 textures, audio import, URP mobile settings, touch controls, on-screen joystick, UI under the notch or safe area, slow startup, ANRs, 'Android build fails', AAB, keystore signing, target API 36, Google Play upload, iOS Xcode export or archive, privacy manifest, app size, in-app purchases (IAP 5), rewarded ads (LevelPlay), ad consent.
Как установить скилл scenario-unity-mobile?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл scenario-unity-mobile запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic