Search Issue Tracker
By Design
Votes
3
Found in
2018.3.0a4
2018.3.6f1
2019.1.0a1
2019.2.0a1
Issue ID
1133159
Regression
No
Standalone builds do not include instanced Terrain shaders if the Terrains are created dynamically at runtime.
How to reproduce:
1. Open the user-submitted project ("terrainbug.zip")
2. Open the "SampleScene" and enter Play Mode
3. Observe the Instanced terrain is working properly
4. Build the Project and observe the lack of a drawn terrain
5. Press "I" on your keyboard to toggle "drawInstanced" renderer off and observe the difference
Expected result: the terrain is rendered correctly both in the Editor and Standalone Build without any issues
Actual result: the terrain isn't rendered at all in the Standalone build when "drawInstanced" is set to true
Reproduced in: 2019.2.0a7, 2019.1.0b5, 2018.3.7f1, 2018.3.0a4
Couldn't test with: 2018.3.0a3, 2017.4.22f1 (these versions don't accept "drawInstanced" as a valid argument)
Comments (1)
-
EGGamer
Mar 05, 2019 12:50
Same here
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (2019.2.X):
Terrain shader is not included in the build if it's not used. Furthermore the instancing variant won't be included if instancing is not enabled on the terrain.
The right way to do runtime terrain creation is to include a Material referencing the terrain shader you want to use and enable instancing on it.