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
- The Graph Debug Window can be right clicked through and the Node Workspace is manipulated instead
- [Linux] Top left corner of the screen is unresponsive when the Editor recompiles
- [Android] [Vulkan] Cubes stuck on the first few frames of rotation and application flickering when an Overlay Camera is added to the Camera Stack with MSAA enabled
- Profiling information icon does not update for Light Mode
- [Linux] Type to select functionality is missing for drop down menus
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.