Search Issue Tracker
By Design
By Design in 2023.2.X
Votes
1
Found in
2021.3.28f1
2022.3.4f1
2023.1.3f1
2023.2.0a23
Issue ID
UUM-42134
Regression
No
Graphics.CopyTexture doesn't work correctly when using Texture Streaming
How to reproduce:
1. Open the user-attached project “TextureStream”
2. Click Build And Run
3. In the Player, click "Load Tex0", "Apply Tex0" and then "Copy Tex0 to Tex1" buttons
4. Observe the two Cubes
Expected result: The textures on both Cubes are identical
Actual result: The texture on the second Cube is different
Reproducible with: 2021.3.28f1, 2022.3.4f1, 2023.1.3f1, 2023.2.0a23
Reproducible on: Windows 11 Pro, macOS 13.4 (Intel)
Note: Not reproducible in the Editor
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
- VFX Graph particles are not culled when using URP and Frustum Culling is enabled on VFX Mesh Output
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
Resolution Note:
This issue is "by design", even if the error reporting (or rather, the lack of it) doesn't make it immediately obvious what is happening.
The Graphics.CopyTexture does not load the mipmap levels needed to perform the copy.
If you wish to copy a full texture, you must thus ensure that all mipmap levels are loaded using, for example, "m_tex0.requestedMipmapLevel = 0" followed by a wait until "m_tex0.IsRequestedMipmapLevelLoaded()" is "true" -- only then will the CopyTexture look correct.
Resolution Note (2023.2.X):
This issue is "by design", even if the error reporting (or rather, the lack of it) doesn't make it immediately obvious what is happening.
The Graphics.CopyTexture does not load the mipmap levels needed to perform the copy.
If you wish to copy a full texture, you must thus ensure that all mipmap levels are loaded using, for example, "m_tex0.requestedMipmapLevel = 0" followed by a wait until "m_tex0.IsRequestedMipmapLevelLoaded()" is "true" -- only then will the CopyTexture look correct.