Search Issue Tracker
Fixed
Fixed in 6000.0.55f1, 6000.1.15f1, 6000.2.0b13, 6000.3.0a3
Votes
2
Found in
2022.3.63f1
6000.0.51f1
6000.1.7f1
6000.2.0b5
6000.3.0a2
Issue ID
UUM-109242
Regression
Yes
[Asset Bundles] The Active Build Platform is being used instead of the build target to determine material/shader compilation
Reproduction steps:
1. Open the attached project
a) If testing on Windows, open the “IN-103987_Win” project
b) If testing on Mac, open the “IN-103987_OSX” project
2. While the Windows (or macOS, if testing on Mac) Build Profile is selected, navigate to Assets > Build Assetbundles. This will build a bundle targeting Windows (or macOS)
3. Open the “SampleScene” and Enter Play Mode
4. Observe the Game view and the “Expected result”
5. Switch the active Build Profile to Android
6. Manually delete the “Assets/StreamingAssets” folder
7. Navigate to Assets > Build Assetbundles
8. Enter Play Mode in the “SampleScene”
9. Observe the Game view and the “Actual result”
Expected result: Three shapes are rendered with the default material
Actual result: Three shapes are loaded but not rendered. In the hierarchy view the meshes can be observed as instantiated, but the Materials are invisible
Reproducible with: 2022.3.45f1, 2022.3.63f1, 6000.0.51f1, 6000.1.7f1, 6000.2.0b5
Not reproducible with: 2022.1.0a5, 2022.3.44f1
Reproducible environments: Windows 10 (by reporter), macOS 15.5
Not reproducible environments: No other environments tested
Notes:
- this report was sent by request for the problem discussed here: https://discussions.unity.com/t/assetbundles-containing-materials-do-not-build-correctly-for-other-platforms/1645556
- It appears that the active platform is being used to determine material/shader compilation rather than the build target
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Add comment