- Home /
The question is answered, right answer was accepted
Prefab not rendering
I was trying to use this the prefab in this asset but it doesn't render. https://assetstore.unity.com/packages/3d/props/interior/clock-free-44164 https://imgur.com/a/U9ErLXO
Answer by Vega4Life · Dec 11, 2018 at 06:07 PM
I can see the clock highlighted in your scene with it selected. It looks like its behind your canvas. I loaded up this asset, dropped it in my scene, and it looks fine.
It looks like you are using screen space - overlay for your canvas. This can confuse people a bit, because they tend to use the UI as the main camera view. But in fact, the camera can be anywhere and the UI will render right on top of it.
So based one of the images you posted, you can tell the camera view is in the bottom left hand corner of the Canvas - which is usually the case. Non UI pieces need to be in front of the camera. Your clock isn't. You are aligning it up with the UI and the clock isn't in view of the camera. The UI with screen space overlay doesn't need to be in camera view.
So move your clock in front of the camera view. Hope that helps.
Now it isn't behind the canvas, but I still can't see the clock. https://imgur.com/a/uDnfXkC
It's the sidebar https://imgur.com/a/bWJipS3
Actually, its also possible you are looking at the back of the clock. For fun, try rotating to the front and see if you get a visual.
You are right, but it is still now visible in the game. https://imgur.com/a/ijEQrb8
Answer by SuperMarcoman · Dec 11, 2018 at 06:55 PM
$$anonymous$$ine looks the same. Um, you probably are using something other than directional lighting?