0
\$\begingroup\$

i confused why is this happen , i know there's already available post that discuss this but i cannot find it at google. My problem is that my UI image with sprite hide rendering all object in front of it ( so the camera view only show the image ) .

Screenshot In 3D Mode :

I Put A Square Object Right In Front Of The Image

in front of image

And This Is The Camera Position With Camera Preview

camera postion EASTER EGG !

Sorry i only can put 2 screenshot because below reputation 10 i can't put more than 2 picture .

As you see , the camera should render the " StartBox " either " MenuBox " but none are rendered even it's in front of camera view

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

Your Canvas is set to Screen Space Overlay which means it renders on top of everything in the scene. If you want to have a stretched background image behind objects in the scene you will need to use either a World Space Canvas or Screen Space Camera. Tutorial on the canvas system here: https://unity3d.com/learn/tutorials/topics/user-interface-ui/ui-canvas

\$\endgroup\$
2
  • 1
    \$\begingroup\$ In this case, the 'Screen Space Camera' mode would be the ideal, instead of 'World Space'. Just ensure that the plane distance is set far enough back. \$\endgroup\$
    – House
    Commented Nov 10, 2016 at 16:02
  • \$\begingroup\$ true. good point. \$\endgroup\$ Commented Nov 10, 2016 at 16:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .