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
- Prefabs with "Flags" enum properties result in "IndexOutOfRangeException" when trying to commit/revert
- The Camera first person mode in Cameras overlay is greyed out and not clickable when the Editor is restarted with the Game View focused
- Scene View doesn't select the Canvas when it's clicked with the View Tool
- Transform fields are impossible to edit when Inspector window is resized
- Actions in UI Builder Preview mode are not fully reset after exiting the Preview mode
Add comment