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
- [Android][iOS] The keyboard closes and re-opens when consecutive input fields are selected
- Complex Sub Graph connected to a Voronoi node is ignored when the shader gets applied as a Material
- Compute Shader property not set error when entering play mode with path tracing and PBR sky
- "WebGL Publish" detects WebGL module and allows building when it is installed without restarting the project
- Editor is non-responsive and flickers when multiple Water System instances are 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.