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
-
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
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