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
- Console shows Exception: {"error":"not found","detail":["not found"]} after opening Build History window
- [HDRP] Volumetric cloud shadows disappear when there is no directional light shadows
- “Selector” column names in the Search window are lowercase when added
- Install List Project Counter Panel can be right clicked through and Install Context Menu can be opened disabling Project Counter Panel's buttons
- [MacOS] Scene is marked/flickering as dirty (with asterisk) when dragging a Material on a GameObject in Scene view
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