Search Issue Tracker
In Progress
In Progress in 6000.5.X
Votes
0
Found in
2022.3.69f1
6000.0.64f1
6000.3.1f1
6000.4.0b1
6000.5.0a3
Issue ID
UUM-129829
Regression
No
AssetBundle Variants do not switch when a Sprite (2D and UI) texture is referenced from a Material
How to reproduce:
1. Open the ‘AssetBundleMaterialTest.zip' project
2. Open the 'SampleScene’ scene
3. In the Hierarchy, select the Main Camera and in the "Test Scene" component, click the "Build AssetBundles" button to build the AssetBundles
4. Enter Play Mode
5. In the Game view, press the "02" button
6. Observe the Game view
Actual result: When pressing the "02" button, the Sprite correctly switches to the "02" variant texture, but the Material's texture reference does not change to the "02" variant
Expected result: When pressing the "02" button, both the Sprite displayed via UI Image and the texture assigned to the Material use the "02" variant texture
Reproducible with: 2022.1.0a5, 2022.3.69f1, 6000.0.64f1, 6000.3.1f1, 6000.4.0b1, 6000.5.0a3
Reproducible on: macOS 26.0.1 (M1 Max)
Not reproducible on: No other environments tested
Notes:
This issue occurs under the following conditions:
- The texture’s Texture Type is set to "Sprite (2D and UI)"
- The same texture asset is referenced both by a Sprite and by a Material
- The Material is included in a different AssetBundle from the texture
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Add comment