Hi Guys,
I am new to Unity and i want to do a 2d project in Unity .And i had a 2d image with a perspective view which represents game play area with some obstacles . In order to bring the RPG game look i need to draw a grid system on that image so that when i select a some of the grids the 2d character has to move in the selected path as we seen so far in RPG games . So please tell me how to do this ??? Thanks in advance …
If it were 3D I guess you could do raycasts to collide with cells on the grid, but based on an image you’d have to divide it into polygon zones and detect whether the click is inside a given polygon which isn’t easy. Maybe you can make a basic 3D scene behind
the image in the scene which you use for raycast collisions, to detect what cell is clicked, then cover it up with your 2d texture?