- Home /
How to display Sprite only over RawImage?
I am building a game related to radios and it involves drawing out a path that will later be converted into frequencies and will have purposes that are not relevant to this question. Basically, I have 3 RawImages inside a Canvas from which the top 2 images are for display purposes and the third RawImage is reserved to drawing the said path. Take a look at this Image:
As you can see, I need to take the X and Y position of the mouse/finger on the screen and draw the line. I already finished the line and I can draw it with no problem. The main question is: knowing the X and Y position on the Screen, how can I draw the two red lines ONLY on top of the three RawImages and not on the Canvas? Also, what's the best way to make those two lines? Using sprites or something else? How can I control the X and Y position of the lines later on in the script?
I tried being as clear as possible, I can provide as much further details as needed. Thanks in advance!