Search Issue Tracker
Won't Fix
Won't Fix in 2023.1.X
Votes
0
Found in
2021.2.0a1
2021.3.5f1
2022.1.8f1
2022.2.0a18
2023.1.0a1
Issue ID
UUM-7793
Regression
Yes
Terrain is missing the Hidden/TerrainEngine/Details/WavingDoublePass shader when AssetBundles are built in older Unity Versions
How to reproduce:
1. Open the user's attached project
2. Open Assets > Scenes > SampleScene.unity
3. Enter Play Mode and press spacebar
4. Observe the Console window and the terrain in the Game view
5. The "Hidden/TerrainEngine/Details/WavingDoublePass (UnityEngine.Shader) is here" message is present in the Console window
6. Go to File > Build Settings and press Build And Run
7. Observe the terrain in the Player and press spacebar
8. Go to the Player.log and look for the "Hidden/TerrainEngine/Details/WavingDoublePass (UnityEngine.Shader) is here" message
Expected result: The WavingDoublePass shader isn't missing and AssetBundles built with older Unity versions should still work
Actual result: The WavingDoublePass shader is missing and the terrain is different
Reproducible with: 2021.2.0a1, 2021.3.5f1, 2022.1.8f1, 2022.2.0a18, 2023.1.0a1
Not reproducible with: 2019.4.40f1, 2020.3.36f1, 2021.1.28f1
Reproducible on: Windows 10
Notes:
1. The tested AssetBundle is built using Unity 2019.4.30f1
2. The WavingDoublePass shader seems to be replaced by “Legacy Shaders/Diffuse shader” in the Frame Debugger ("FrameDebugger_Player_ActualResult.png")
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
- Uninitialized variable warning appears in the Inspector of a custom shader when the variable is initialized
- "Failed creating toolbar element from ID..." error is thrown when resetting the Scene view Overlay layout while an Asset Transformer Toolbox overlay is active
- Entity ID for Font Assets is serialized twice which throws an error when using Debug Inspector
- Play Mode can be entered when disabling Adaptive Performance and pressing either the Play Mode button or the keyboard shortcut to enter Play Mode before recompilation leading to errors and warnings thrown
- Parent ListView element also becomes selected when inner ListView element is selected
Resolution Note:
We've examined the AssetBundles and do not find any problem with the format or contents. Rather this appears to a case where 2020 version of Unity cannot work with serialized terrain objects from 2019. Although we strive to hvae backward compatibility sometimes there are major changes in features that require that AssetBundles be rebuilt. So the recommended resolution is to rebuild the AssetBundles with a new version of Unity.
Resolution Note (2023.1.X):
We've examined the AssetBundles and do not find any problem with the format or contents. Rather this appears to a case where 2020 version of Unity cannot work with serialized terrain objects from 2019. Although we strive to hvae backward compatibility sometimes there are major changes in features that require that AssetBundles be rebuilt. So the recommended resolution is to rebuild the AssetBundles with a new version of Unity.