You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For Android, the subtarget is an enum MobileTextureSubtarget.
When creating BuildArchitecture for Android, we don’t pass the fifth argument, so the default parameter value is StandaloneBuildSubtarget.Player
StandaloneBuildSubtarget.Player equals 2, meaning subtarget = 2, which corresponds to MobileTextureSubtarget.PVRTC
If you specify something like subtarget = (int)EditorUserBuildSettings.androidBuildSubtarget, it works correctly, but obviously, that’s not the solution. :)
The text was updated successfully, but these errors were encountered:
DmiShib
changed the title
After build on Android, Texture Compression is always set to PVRTC
Android build always has Texture Compression set to PVRTC.
Aug 26, 2024
DmiShib
changed the title
Android build always has Texture Compression set to PVRTC.
Android build always has Texture Compression set to PVRTC
Aug 26, 2024
I want to add that, as a result, there are consequences in Google Play Console: a 66% decrease in supported devices because the following is added to the AndroidManifest: GL_IMG_texture_compression_pvrtc
Thanks for the detailed report, @DmiShib! The build subtarget property for BuildArchitecture was a very recent addition to enable adding support for the Dedicated Server platform, so this is an unintended side-effect of that change. This functionality is still in development, so it hasn't yet been fully tested to catch issues like this – for now, try using the latest released version of SuperUnityBuild, v7.0.0, to avoid this problem.
This issue started occurring when I upgraded to 'Unity 6 Preview.'
I investigated this matter and can pinpoint the cause:
subtarget
is an enumMobileTextureSubtarget
.BuildArchitecture
for Android, we don’t pass the fifth argument, so the default parameter value isStandaloneBuildSubtarget.Player
StandaloneBuildSubtarget.Player
equals 2, meaningsubtarget = 2
, which corresponds toMobileTextureSubtarget.PVRTC
If you specify something like
subtarget = (int)EditorUserBuildSettings.androidBuildSubtarget
, it works correctly, but obviously, that’s not the solution. :)The text was updated successfully, but these errors were encountered: