unity-mobile

Optimize Unity mobile builds for iOS and Android with IL2CPP and memory management.

10|Updated Nov 21, 2025
One-click install
npx skills add https://github.com/creator-hian/claude-code-plugins --skill unity-mobile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-mobile
Source: https://github.com/creator-hian/claude-code-plugins/tree/main/unity-plugin/skills/unity-mobile
Command: npx skills add https://github.com/creator-hian/claude-code-plugins --skill unity-mobile

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill focuses on optimizing Unity games for mobile platforms, addressing runtime performance, memory, and platform-specific constraints.

Core Features & Use Cases

  • IL2CPP optimization and memory management
  • Platform-specific code paths (iOS/Android)
  • Touch input and mobile UI considerations
  • App size, battery, and performance best practices

Quick Start

Wrap platform-specific code with #if UNITY_IOS / UNITY_ANDROID and test on target devices.

Frequently Asked Questions about unity-mobile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce Unity mobile app size for iOS and Android deployment?

Reduce app size by enabling IL2CPP compilation, stripping unused code, compressing assets, and using platform-specific build settings. IL2CPP converts C# to C++ for smaller, faster binaries on mobile devices.

What's the best way to optimize Unity game performance on mobile devices?

Optimize performance by profiling memory usage, controlling target frame rate, implementing platform-specific code paths with conditional compilation (#if UNITY_IOS / UNITY_ANDROID), and tuning for thermal throttling limits.

How do I handle touch input responsiveness in Unity mobile games?

Implement responsive touch input by using Unity's Input system with device-specific optimizations, reducing input latency through frame rate targeting, and testing on actual iOS and Android devices to verify responsiveness.

Can I use platform-specific code in Unity for iOS and Android?

Yes. Use conditional compilation directives (#if UNITY_IOS / #if UNITY_ANDROID) to write platform-specific code paths that optimize for each platform's constraints, memory management, and hardware capabilities.

Why does my Unity mobile game drain battery quickly?

Battery drain stems from high frame rates, excessive memory allocation, and thermal throttling. Optimize by capping frame rate, profiling memory leaks, and using IL2CPP to reduce runtime overhead on iOS and Android.

Do I need IL2CPP for mobile optimization in Unity?

IL2CPP is recommended for mobile optimization as it compiles C# to native code, reducing build size, improving runtime efficiency, and enabling better memory management compared to the default Mono backend.