- Home /
Question by
scottstephan · Sep 26, 2014 at 11:35 PM ·
textureraycast
Getting texture coordinates from raycast2D
In the past, I've used raycastHit.GetTextureCoords to find out where on an object's texture the ray has struck. There doesn't appear to be an analogue for this function in raycastHit2D. What would be the best way to get the texture coordinates of a hit when using 2D functions?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613163847im_/https://answers.unity.com/themes/thub/images/avi.jpg)