SceneView polygon hit testing/raycasting without colliders

I’m working on an editor extension and obviously Unity has a way internally to cast a ray to perform hit tests against geometry in the scene view that doesn’t have colliders. So I’m wondering if anyone knows if this functionality has been exposed anywhere? I can’t seem to find it if it has. Everything I’m coming up with requires colliders in order to do hit testing. I need to be able to project a point in the scene view onto an arbitrary mesh (with or without collider).

Any ideas?

I don’t know of their internal ray casting being exposed beyond the functions you’re probably familiar with (Physics.Raycast, etc).

I can see a few options:

  1. Adapt/implement something like this: http://forum.unity3d.com/threads/134554-A-solution-for-accurate-raycasting-without-mesh-colliders
  2. If you just need to access the selected object, use the Selection class.
  3. Attach a collider to the mesh.

If #1 doesn’t work for some reason I image you could implement a simplified version of #1 by only testing the selected object.

Personally I would do #3 unless I had a really, really compelling reason not to.