Hi
how i get which material is RaycastHit? because i have many materials on model
1 Answer
1You can't. you'd have to create multiple collider objects parented to your model, and position them in the same areas as the different materials. (If its a rigged model, it's probably best to parent them to their respective bones, so they move with any animation).
http://unity3d.com/support/documentation/ScriptReference/RaycastHit.html I think that link shows all of the function a RaycastHit has. Unless there is a way to create something you describe.
– LegionIsTaken