I have a sprite of background, in starting of the game the lines are rendering above the background i.e. infront of the sprite and lines are visible as am using z index as well as render order for rendering the line above image. Its working fine for this.
FYI: Am using orthographic camera with z=50 and far value= 100
But the problem arises when i reset the game, using my reset function, these sprite’s then renders above the lines.
So for this it is not working.
Also am keeping everything separate, The background images are in camera group, the lines are in different group, the camera is also in camera group.
Am setting the renderOrder for cameragroup, backgroundgroup and for the curveLines group. But its not working.
Can someone help with this issue?
Before -
After -