Search Issue Tracker
Fixed
Fixed in 2021.3.37f1, 2022.3.22f1, 2023.2.14f1, 2023.3.0b10
Votes
146
Found in
2021.3.33f1
2022.3.14f1
2023.2.2f1
2023.3.0a16
Issue ID
UUM-57201
Regression
Yes
UV1 data is lost during AssetBundle build when Optimize Mesh Data is on
How to reproduce:
1. Open the attached project "liltest2022-standalone.zip"
1a. When opening in early Unity versions the following packages should be removed for it to run: Visual Scripting, TextMeshPro, and feature development
2. Delete contents of Assets/000u2022test/AssetBundles (but don't delete the AssetBundles/ folder)
3. Click Tools>Built Test AssetBundle
4. Click Tools>Load Test AssetsBundle
5. A quad will appear in the scene (only front face visible)
Expected results: The quad shows a color grid
Actual results: The quad shows stripes
Reproducible with: 2020.2.0f1+, 2021.3.33f1, 2022.3.14f1, 2023.2.2f1, 2023.3.0a16
Reproducible on: Windows 11 22H2
Not reproducible on: No other environment tested
Comments (1)
-
dlassonde
Dec 19, 2023 15:55
I was able to reproduce the reported problem. I noticed that there is a shader compiler error when building the asset bundles. Fixing the shader compilation error seems to fix the reported problem. Just add a return statement in `Packages\lilToon\Shader\lts.shader`, in the `struct v2f vert(struct appdata input)` function that is declared on line 642:
```
struct v2f vert(struct appdata input)
{
struct v2f output;
output.pos = float4(0,0,0,1);
output.col = float4(input.uv0, input.uv1) + float4(input.uv2, input.uv3);return output; // <---- add this
}
```Can you try this on your side and let us know if there is anything else blocking you from using the built asset bundles? Thanks
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
- Graphics State Collection warm-up does not work when using with Addressables Shaders
- "Baked Shadow Radius" field is visible but inactive when when the Shadow Type is set to "Hard Shadows" under the Light Component
Resolution Note (fix version 2023.3.0b10):
Fixed a regression where mesh components are stripped if its shader is made of UsePass only references
Resolution Note (fix version 2023.2.14f1):
Fixed a regression where mesh components are stripped if its shader is made of UsePass only references
Resolution Note (fix version 2022.3.22f1):
Fixed a regression where mesh components are stripped if its shader is made of UsePass only references
Resolution Note (fix version 2021.3.37f1):
Fixed a regression where mesh components are stripped if its shader is made of UsePass only references