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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
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.