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
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
- Text is culled by size when Content Size Fitter is small and rich text is used
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.