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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment