Search Unity

Raycasting against MeshRendererers not Collision

Discussion in 'General Discussion' started by JamesArndt, May 13, 2019.

  1. JamesArndt

    JamesArndt

    Joined:
    Dec 1, 2009
    Posts:
    2,932
    This is a pretty interesting trick. Raycasting against MeshRenderers (In the Editor) using a small render texture. It's slower than traditional raycasting as it's a back and forth between the GPU and CPU, but I'm sure this could still have some useful purposes (Editor tools?). I just haven't thought of them yet.

    https://github.com/Jonny10/Graphics-Raycast