Optimize Unity games for mobile platforms with IL2CPP, platform-specific code, and memory management. Masters iOS/Android deployment, app size reduction, and battery optimization. Use for mobile builds, platform issues, or device-specific optimization.
Scanned 2/12/2026
Install via CLI
openskills install creator-hian/claude-code-plugins---
name: unity-mobile
description: Optimize Unity games for mobile platforms with IL2CPP, platform-specific code, and memory management. Masters iOS/Android deployment, app size reduction, and battery optimization. Use for mobile builds, platform issues, or device-specific optimization.
requires:
- csharp-plugin:csharp-code-style
---
# Unity Mobile Optimization
## Overview
Mobile platform optimization for Unity focusing on iOS and Android performance, battery life, and deployment.
**Foundation Required**: `unity-csharp-fundamentals` (TryGetComponent, FindAnyObjectByType, null-safe coding)
**Core Topics**:
- IL2CPP compilation and optimization
- Memory management and profiling
- Touch input and mobile UI
- Battery life optimization
- App size reduction
- Platform-specific code
## Quick Start
```csharp
// Platform-specific code
#if UNITY_IOS
// iOS-specific code
Application.targetFrameRate = 60;
#elif UNITY_ANDROID
// Android-specific code
Application.targetFrameRate = 30;
#endif
// Touch input
if (Input.touchCount > 0)
{
Touch touch = Input.GetTouch(0);
if (touch.phase == TouchPhase.Began)
{
HandleTouch(touch.position);
}
}
```
## Platform Constraints
- **iOS**: Metal rendering, App Store guidelines, 150MB initial download
- **Android**: Vulkan/OpenGL ES, API level fragmentation, 150MB initial
- **Memory**: 1-2GB low-end, 4-6GB high-end
- **Thermal**: Throttling after 5-10 minutes
## Optimization Checklist
- ✅ Texture compression: ASTC (mobile), ETC2 (Android), PVRTC (iOS)
- ✅ Audio compression: AAC (iOS), Vorbis (Android)
- ✅ Reduce draw calls: <100 mobile, batching
- ✅ IL2CPP optimization: Strip engine code, managed stripping
- ✅ Battery: Lower target framerate, reduce update frequency
## Best Practices
1. **Profile on device**: Not just Unity Editor
2. **Minimize allocations**: Reduce GC pressure
3. **Touch-friendly UI**: 44pt minimum touch target
4. **Handle pause**: OnApplicationPause lifecycle
5. **Test on low-end**: Target lowest common denominator
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.
SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.
Python backend development expertise for FastAPI, security patterns, database operations, Upstash integrations, and code quality. Use when: (1) Building REST APIs with FastAPI, (2) Implementing JWT/OAuth2 authentication, (3) Setting up SQLAlchemy/async databases, (4) Integrating Redis/Upstash caching, (5) Refactoring AI-generated Python code (deslopification), (6) Designing API patterns, or (7) Optimizing backend performance.
Drive the full internationalization journey for a project — detect the stack, recommend a library, set up the chosen library, wrap existing strings, and optionally connect a translation platform. Use when the user asks to add or configure i18n, internationalization, localization, multi-language support, or translations — including when they explicitly mention LinguiJS, Lingui, next-intl, "wrap strings", "find hardcoded text", "make my app translatable", or "set up translations". Triggers on g...
PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.