Search Issue Tracker
By Design
Votes
0
Found in
2018.4.0f1
2019.1.14f1
2019.2.0a1
2019.3.0a1
2020.1.0a1
Issue ID
1189496
Regression
No
Texture Streaming is not applied to GameObject when using custom shader
How to reproduce:
1. Open the attached 'TextureStreamingDebug.zip' project
2. Open 'SampleScene' Scene
3. Enter Play Mode
4. Press 'Space' key
5. Press 'P' key when GameObjects are clearly seen in the Scene
Expected result: 'BROKEN TEXTURE STREAMING GO' GameObject is green
Actual result: 'BROKEN TEXTURE STREAMING GO' GameObject is blue
Reproducible with: 2018.4.11f1, 2019.2.8f1, 2019.3.0b7, 2020.1.0a8
Could not test: 2017.4.33f1 Cinemachine is not introduced
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
- Desktop Linux runtime does not respect -popupwindow command line argument
- Shader Graph more options dropdown button does not open the dropdown when clicked all the way to the right of the button
- “Attempting to draw with missing bindings“ warning lacks root cause indication and is thrown each frame when StructuredBuffer is accessed on DirectX12
- Shader Graph Import Settings documentation leads to "Sorry... that page seems to be missing!" page when opened through the documentation button in the Inspector window
- Unexpected Material change/transparency when switching between ShaderGraph and material at runtime in HDRP
Resolution Note:
To know which texture to choose for the streaming debug visualization, it always uses the _MainTex texture parameter of the material. The shader used here has no _MainTex so the visualization does not know which of the textures in the shader to choose. You should ensure your material always has a _MainTex texture parameter (and assigned a texture to it) for the debug visualization to work correctly. If not, streaming will still work but the visualization will show incorrect results as you are currently experiencing.