Hey, i have a bit of a problem with a little game i’m working on. I have a cube with an outline, grabbed from here: http://wiki.unity3d.com/index.php/Silhouette-Outlined_Diffuse. I also have a basic grid made of sprites, and when i click on a sprite i instantiate the block on that position. (script using this.transform.position attached to each sprite). The problem is that the instantiated cube seems to be placed behind the grid, making the outline obscured. The original cube ( the one thats being instantiated) is rendered above the grid and works like i want it to. I have provided a screenshot of how it looks below.
Top left cube is the original cube, and how i want the instantiated cube to look aswell. The one on the right is the instantiated one: Screenshot - 7763c2c2546126426b930d555e9a2783 - Gyazo