- Home /
Can't see button over sprite.
Okay, I'm getting really frustrated with this I've tried creating new layers and sorting the button over the sprite. I've tried changing the z axis to see the button and it still doesn't show. If someone can please tell me why this is happening it would be very appreciated as I have a deadline to complete my project.
Can you see the button in the editor? Are the buttons children of a canvas? Double click the button in the hierarchy and see where the scene view takes you. Check the canvas render mode that its screen space. Thats all i can think of at the moment.
@Nischo I have screen space - camera on ins$$anonymous$$d of overlay because when I turn screen space overlay it makes my sprites invisible so its useless to have on.
Answer by XnanoXGaming · Aug 15, 2017 at 02:33 AM
I figured it out I needed to switch to screen space overlay and move my camera by the z axis in 3d mode to be in view of the canvas.
Or for much better result, change the Sorting layer. For non-UI sprites, its in the Sprite Renderer. For anything UI, its in the Canvas where the UI object is a child of...