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
- [Android] Error "Blitter is already initialized" is present when Adaptive Probe Volumes are used with OpenGLES3
- VFX Graph effect instance stops rendering when a second instance of the same effect starts 2 frames later
- Operations on the Color32 array are not reflected in WebGL Player when HDR is off
- Rigidbody moves away from the original GameObject when Center of Mass is set in every frame
- WebGL Player does not proceed beyond logo screen when "Target WebAssembly 2023" is enabled
Add comment