Search Issue Tracker
Fixed in 2020.2.X
Votes
0
Found in
2019.4
2019.4.0f1
2020.2
Issue ID
1259980
Regression
No
Shader error undeclared identifier "UNITY_TRANSFER_LIGHTING" when building project for the first time after project launch
To reproduce:
1. Open user's attached project
2. Build the project (File -> Build And Run)
Expected result: Project builds successfully
Actual result: Project fails to build with an undeclared identifier "UNITY_TRANSFER_LIGHTING" error
Reproduced in: 2019.4.0f1, 2019.4.2f1, 2020.1.0b14, 2020.2.0a10
Not reproducible with: 2020.2.0a11, 2020.2.0a16
Could not test with: 2018.4.23f1 (console errors after downgrading)
Notes:
-Second consecutive build is always successful (apart 2019.4.0f1 & 2019.4.1f1 in which results seemed to be unstable, sometimes it would build after the second iteration, and other times, it would not)
-If it doesn't reproduce in the same manner, delete the folder "Library"
-Main error message: Error building Player: Shader error in 'Nature Shaders/Tree Billboard': undeclared identifier 'UNITY_TRANSFER_LIGHTING' at line 139 (on d3d11)
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][BiRP] Depth processing is handled incorrectly on certain Android devices when using 2 camera's
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
Resolution Note (fix version 2020.2):
Fixed in 2020.2.0a11. In 2020.1 you can fix this by manually enabling the Caching Preprocessor