- Home /
Help with simple canvas creation
When i create a canvas, i should be getting a a grey box indicating screen space. Yet its invisible. It's probably something really simple yet im having trouble with it. Had it working on 4.6 and 5.1. Currently on 5.2.2f1 and its not working. What it should look like:
What i get:
edit: No UI sliders or images show up in sceneview either. Only in game view, seems like a bug of 5.0, supposedly fixed in late 5.1? Is it just me? The ui tool in top left makes it show up, yet i'd prefer to see the grey box. Any tips?
Answer by OncaLupe · Oct 28, 2015 at 05:54 PM
Make sure you have the UI layer set active in the Layers dropdown. It's in the top right corner of the Unity window.
Yup, it was that simple. This has been annoying me for about a week. Thanks for the reply and the pic!
Answer by beppim · Oct 28, 2015 at 05:55 PM
It's hard to understand what the problem is without knowing what's inside that Canvas, anyway you could try adding a Panel to create a background. Otherwise, check if the Canvas object really contains a Canvas element, and not simply a Canvas Renderer: most of the times the UI happened to me to be invisible was because it simply was not a child of an object with a Canvas element.
Your answer
![](https://koobas.hobune.stream/wayback/20220612042951im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to view certain UI in scene view? 1 Answer
UI scaling issues 2 Answers
Sprites doesn't block Raycast from UI 1 Answer
UI Animation Not Playing 1 Answer