#Issue with RaycastHit CalculateRaycastTexCoord ?

1 messages · Page 1 of 1 (latest)

patent crypt
#

We'd like to get the texturecoord3 from a RaycastHit for our game.
We've used https://github.com/Unity-Technologies/UnityCsReference/blob/master/Modules/Physics/ScriptBindings/RaycastHit.bindings.cs
And using reflection got access to CalculateRaycastTexCoord, but using textcoord argument with 2 seems to return back textcoord 0 ~~ Any other way to get textcoord3 rather than having to use the mesh face data which is slower ?

GitHub

Unity C# reference source code. Contribute to Unity-Technologies/UnityCsReference development by creating an account on GitHub.