I apologize if this seems like a bit of an open-ended question, but I’ve been searching everywhere for the last several months on any sort of example or demonstration of a raycasting engine built in Unity. What I’m looking for, I suppose, is how to go about utilizing Unity’s various built-in Raycast methods and such to project a 2-D map in a pseudo-3D manner.
I guess my response back is, “why?”
There are so many more efficient ways of converting 2D into 3D that doing it the old ray casting way just isn’t usually what you want. They main issue is you with effectively have to write a software renderer in unity and there’s not really a good reason to do that, nor is unity setup to do that efficiently.
What better way would you suggest then for converting 2D into 3D?
Simply use Unity sprites with point filtering.