I’m trying to figure out how to put a sprite over the top of a line drawn with vectrosity.
This is a tiny 2d game with only one script attached to the main camera. The 2d lines drawn are on a canvas at runtime, which is working. But I want a sprite to pop up over the track, which isn’t - it’s underneath.
I created a new canvas, and set the sorting layer:
public Canvas drawingCanvas; //drawingCanvas is attached to the script
drawingCanvas.sortingLayerName = "Track";
However, when I mouse over the field while debugging in VS, it still shows the name as “Default”.
Any insight would be greatly appreciated, been banging my head on this for a few days.
Thanks
david