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
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
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