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
- [iOS] Crash on "libsystem_kernel.dylib`__pthread_kill" when playing multiple videos
- Raw Image that uses a Material with a custom Shader is invisible in Canvas when "Screen Space - Overlay" is set and the Player is in "Windowed" mode
- UI performance degradation when a graph asset has hidden VisualElements
- The CaptureScreenshot method scales UI incorrectly when using an orthographic camera and both superSize and canvas planeDistance are above 1
- URP Render Graph's ColorGradingLUT pass causes GC.Alloc every frame when a custom lookup texture is provided
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.