- Home /
GUI 4.6 won`t show on camera
No matter what I do, add button, Image, text, UI will NOT show on camera/screen. It did the first time, but camera was taking only lower left corner of main UI canvas. Like retarded.....
I have set Screen Space - Overlay, this is what I want.
I did not know what was problem, Si I deleted camera created new one and now I don`t see even one part of UI, and there are buttons, text, images etc. I don`t see anything now...
HELP.
Yes, I did entire level of 4.6 UI that worked 100%. Then this other scene and nothing is working. Just don`t see UI i put into scene.
Answer by Wrymnn · Mar 29, 2015 at 07:48 AM
EDIT: You apparently cannot have your UI objects with canvas inside other empty object. So no parent, don`t see why but ok....
Oh sorry, I knew this solution, but didnt expect this problem was yours. And you're true, to make a Canvas displaying, all the parents need to contain a Canvas.
I just created an overlay Canvas with an Image inside, then moved it as a child of an empty game object in the hierarchy, and the Canvas is still visible. Canvas are just game objects, you can put them in any place of the hierarchy, you can even have a Canvas as a child of another Canvas. In fact, a World Space canvas is usually set as a child of another world object for things like displaying the HP on units for example.
$$anonymous$$ake sure your empty game object is at position (0,0,0) or the canvas will have an offset. If the offset is big enough your canvas might be out of the screen partially or entirelly.
Also, Overlay canvases don't need a camera to work, they'll be rendered even if your scene has no camera.
Your answer
