9 Commits

Author SHA1 Message Date
Beast-ofcourse 65983021aa fix(manage_build): stop forcing PVRTC texture compression on Android via subtarget
When manage_build builds for Android, BuildPlayerOptions.subtarget was
always set to StandaloneBuildSubtarget.Player (0). On Android, subtarget
maps to MobileTextureSubtarget (texture compression format). Building
with subtarget=0 on Unity 6000+ triggers a confirmed Unity bug (IN-102413)
that forces PVRTC texture compression — ignoring the project's Player
Settings (ASTC/ETC2).

Worse: setting subtarget persists the value in EditorUserBuildSettings,
overwriting whatever the user configured in Build Settings.

Fix: only set subtarget for Standalone platforms (Windows/OSX/Linux),
where it distinguishes Server vs Player builds. For all other platforms
(Android, iOS, tvOS, WebGL, etc.), leave subtarget at its default so
Unity respects the project's Player Settings.

Fixes #1212
2026-07-07 13:06:05 +05:30
JMartinezRuiz 75c844ffd6 fix(build): tighten BuildTarget enum parsing 2026-05-06 07:47:10 -06:00
JMartinezRuiz 2ab0b37da2 fix(build): avoid compile-time VisionOS enum references 2026-05-06 07:23:29 -06:00
Sebastian Martinez dcd496320a fix(build): guard BuildTarget.VisionOS with UNITY_2023_2_OR_NEWER
BuildTarget.VisionOS does not exist in Unity 2022.3.0 - 2022.3.17 or
2023.1.x, so UNITY_2022_3_OR_NEWER causes CS0117 compile errors on
those versions. Tighten the guard to UNITY_2023_2_OR_NEWER, where the
enum is guaranteed to exist.
2026-04-15 10:36:37 +02:00
Shutong Wu 15d1721688 Update BuildRunner.cs 2026-03-25 13:11:40 -04:00
Shutong Wu f9f2ad2bb4 update 2026-03-21 22:34:22 -04:00
Shutong Wu 222a3c45e2 Update via AI feedback 2026-03-21 22:13:07 -04:00
Shutong Wu 57a43b6e62 Polling fix 2026-03-21 21:05:29 -04:00
Shutong Wu ab26f91b59 Initial upload 2026-03-21 20:32:24 -04:00