Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2019.4.32f1
2020.3
2021.2
2022.1
Issue ID
1382110
Regression
No
Prefabs are not affected by Directional Light when Asset Bundles are built for Android platform
How to reproduce:
1. Download the attached project 'TestLightMap.zip'
2. Enter Play mode
3. Observe the Scene
Expected result: Prefabs are lit by Directional Light
Actual result: Prefabs are not lit by Directional Light
Reproducible with: 2019.4.32f1, 2020.3.23f1, 2021.2.3f1, 2022.1.0a16
Notes:
- The issue can be reproduced on Editor and Android devices (when Asset Bundles are built for Android platform)
- The issue can't be reproduced on Editor and Standalone (when Asset Bundles are built for Standalone platform)
- The expected result can be observed by selecting Test > BuildAB from the Menu bar and entering Play mode (Asset Bundles for Standalone will be built)
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
- Crash on RenderBufferManager::Textures::GetTempBuffer when rendering a specific scene
- The Inspector header is incorrectly displayed when scripts are recompiled while a Scriptable Object instance is selected
- NullReferenceException is thrown when overriding the UxmlObjectReferences in template instances
- Shaders created with Shader Graph generate a large amount of shader variants and cause slow build times when using a baked lightmap in BIRP
- Shader Graph Matrix property produces random output values when SRP Batcher is enabled
Resolution Note (2022.1.X):
In the repro project there were 2 issues that are actually by design:
- The shaders built inside an Android asset bundle (ie GLES3 shaders) cannot be loaded when running the player inside the Editor as they are not compatible the current graphics device (ie DirectX 11).
- When unloading the textures (color, dir, and shadowmask) associated to a lightmap, these engine will then use black textures instead since they are not present anymore. If the shaders use the shadowmask, a fully black shadowmask will make the object appear completely black as if in full shadow.