Search Issue Tracker
By Design
Votes
0
Found in
5.4.0f3
Issue ID
853931
Regression
No
Texture2D.GetPixel ignores Tiling and returns a color as if the texture had default Tiling
The project has a Sphere that casts a ray at the textures and calls Texture2D.GetPixel at collision point, but when its cast at a texture with non-default Tiling it ignores the Tiling and returns a wrong value.
To reproduce:
1. Open the attached project
2. Open console window
3. Enter play mode
4. Move the "Raycaster Sphere" game object over the texture with default tiling
5. Notice the messages in the consoles as Texture2D.GetPixel returns the correct color
6. Move the "Raycaster Sphere" game object over another texture that has non-default Tiling
7. Notice that this time messages in the console report the wrong color
Reproduced on: 5.6.0a3, 5.5.0f1, 5.5.0b11, 5.4.3f1. 5.3.6p7
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
- "Assertion failed on expression" error occurs when multiple Animation Components are instantiated after changing the Culling Type
- MacOS persistentDataPath uses old path when built compared to Editor Play mode
- Crash on RaiseException when entering Play Mode in a specific project
- Debug Console does not reappear when disabling and re-enabling Debug.developerConsoleEnabled
Add comment