Search Issue Tracker

Not Reproducible

Votes

1

Found in

2019.2

2019.2.17f1

2019.3

2020.1

Issue ID

1210785

Regression

No

[Baked GI] Prefab has corrupted lightmap UVs when loaded from a bundle

Progressive Lightmapper

-

How to reproduce:
1. Open the attached project ("case_1210785-lightmap_addressable_bug.zip")
2. Open the repro scene ("SampleScene")
3. Open "Windows > Asset Management > Addressables > Groups" window
4. Select "Play Mode Script" dropdown on the right upper corner and set it to "Use Existing Build"
5. Build Player Content by clicking "Build > New Build > Default Build Script"
6. Enter Play Mode

Expected results: Both loaded prefabs have the same lightmaps and look identical
Actual results: Prefab loaded from the bundle has a corrupted lightmap

Reproducible with: 2019.3.7f1, 2020.1.0b3, 2020.2.0a5
Couldn't test with 2017.4 (package is not supported), 2018.4 (project errors after downgrade)

Notes:
1. This repro project is using the Addressables package for asset bundle building. Tested with package versions 1.1.5, 1.7.1
2. The issue does not reproduce when using "Use Asset Database" or "Simulate Groups" Play Mode Script modes
3. This repro project is using LWRP(URP) render pipeline. Tested with LWRP (6.9.2), URP (7.1.8, 8.0.1)

-----------------------
OR
-----------------------

Repro:
1) Open project (AssetBundleLightmapUVIssue.zip).
2) Open scene "Boot".
3) Run the menu item: "Assets/Build AssetBundles".
4) Enter Play Mode.
5) Select the "TEST" object in hierarchy.
6) Enable the toggle "Project Instantiate"
7) Enable the toggle "Bundle Instantiate"

See attached README in attached project for more information.

Expected: The project version and the bundle version of the mesh should be properly lightmapped.
Actual: The project version of the mesh is properly light mapped, but the bundle version is not (see attached bad-uvs.png).

More information can be found on Slack where this was originally reported: https://unity.slack.com/archives/C06TQ5M4J/p1621373525023600. According to the reporter @steve.pastro, this workflow worked in built-in RP but stopped working once he upgraded to URP.

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.