Search Issue Tracker
By Design
Votes
0
Found in
2017.4.0f1
2018.2.6f1
2018.3.0a1
2019.1.0a1
2019.2.0a1
Issue ID
1110556
Regression
No
[Bug] Material not drawn in Game View when changing shader from script until said material is selected in the Project Window
How to reproduce:
1. Open the project "case_1110556-NoDrawOnMaterialSwitch" and scene "CloudTests_v01"
2. Enter Play Mode
3. Select "CloudMaterial" In the Project Window
4. Observe Scene View and Game View
Expected result: square clouds visible in both Scene View and Game View before and after selecting the material
Actual result: square clouds visible in Scene View but not visible in Game View until the appropriate material is selected
Reproducible with: 2017.4.20f2, 2018.3.6f1, 2019.1.0b4, 2019.2.0a6
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (2020.2.X):
When assigning a new shader to a material, we have to reset the render queue on the material to ensure we're not overriding the shader render queue by default. The Standard Shader material inspector when opened assigns the render queue based on its settings (Render Mode). That's custom behaviour, and we cannot know on the engine side, what exactly controls the render queue on the material.
As a workaround, it's possible to assign the render mode in each modified material from script. This will ensure the correct render queue override is selected.