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
Comments (1)
-
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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
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.