Unity offers three Graphics Tiers which aim to provide different levels of Graphics Settings on different target platforms, and different shaders are generated for each Tier. By default, Android apps developed in Unity only load Tier 2 shaders, but shaders of all three Tiers will still be compiled during the shader compilation process, which means that time is wasted on compiling Tier 1 and 3 shaders. Shader Stripping addresses this problem by removing Tier 1 and 3 shaders from the shader compilation process, effectively reducing build time when building Android apps.
Make sure you are using Unity version 2018.2 or higher, and Target Platform in Build Settings is set to Android.
How to use¶
- Select WaveVR > Enable Shader Stripping
- Shader Stripping will be enabled as long as the Enable Shader Stripping menu item is checked.