So i have a grid in scrollview. I need to basically do Physics2D.CircleCast from one of the tiles in some direction for some length and get what tiles are hit.
How would one do this in UIElements?
And second question, i need to draw a line from one tile to another. How would i do that? I know we can use
MeshGenerationContext or ImmediateModeElement to draw a line, but problem is both ways are using default sorting order, and i did not find a way to draw anything over visual elements that are further down hierarchy. Any idea how can i achieve this? Code example for drawing line from point A to point B would be welcome.
And yes i know about this thread . I did try to use code from there, but same problem persists, i can’t draw over lower elements.