Search Issue Tracker
By Design
Votes
1
Found in
2018.3.6f1
2019.1.0a1
2019.1.9f1
2019.2.0a1
2019.3.0a1
Issue ID
1168206
Regression
Yes
GL.Vertex3 coordinates are distorted creating 1 pixel gap when using GUI.DrawTexture()
Steps to reproduce:
1. Open users attached project "Test.zip"
2. Open "SampleScene"
3. Enter Play mode
4. In the top of Game window use Scale to zoom in to see the issue better
Expected results: Vertex coordinates are set by the script
Actual results: Vertex coordinates are set by the script but are distorted by GUI.DrawTexture() creating 1 pixel gap
Reproducible with: 2018.3.6f1, 2018.4.3f1, 2019.1.9f1, 2019.2.0b9, 2019.3.0a8
Not Reproducible with: 2017.4.30f1, 2018.3.5f1
-
manutoo
Jul 20, 2019 07:53
In bonus, it would be nice if Unity didn't snap the texture coordinates to be pixel-perfect, or if there was an option to disable that behavior. (because when using scaling up/down animation on a texture, the result looks jerky because of that snapping)
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
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
- Crash on ModelImporter::ImportSkinnedMesh when disabling "Strip Bones" on a specific FBX model
- WebGL Development builds ignore the "Compression Format" setting when using "Gzip" compression
- [tvOS] Project crashes on startup on Apple TV simulator (both X86_64 and ARM64 architectures)
Resolution Note (2019.3.X):
GUI.DrawTexture aligns rectangle coordinates to the pixel grid by design. You can use GUIUtility.AlignRectToDevice(Rect) to fetch the alignment result and use it in further layout computations.