Search Issue Tracker

In Progress

Under Consideration for 2021.3.X, 2022.3.X, 2023.2.X, 2023.3.X



Found in





Issue ID




UV1 data is lost during AssetBundle build when Optimize Mesh Data is on



How to reproduce:
1. Open the attached project ""
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)

  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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.