You add a Text or Image to your scene, press Play, and nothing shows. Or the button is in the hierarchy but the Game view is empty. Unity UI not showing is almost always one of a short list of causes: the Canvas render mode and camera, sorting order, the element sitting off screen, zero alpha, a tiny scale, the wrong layer or a Canvas Group. This guide goes through them in the order that finds the problem fastest.
Quick Checklist
- Is the element a child of a Canvas (directly or deeper)?
- Are the element and all its parents active (checkbox next to the name)?
- Is the Canvas enabled and its render mode set correctly?
- Is something else drawing on top of it?
- Is the element’s size, scale and position actually inside the screen?
- Is the color alpha above 0, and is a sprite or text assigned?
If clicks do not work rather than visuals, that is a different problem: see the buttons not clicking guide.
Find It in the Scene View First
Select the element in the Hierarchy and press F with the Scene view focused. This frames the object. Two things tell you a lot:
- If the Scene view jumps to a huge white rectangle far away, you found the Canvas. In Screen Space – Overlay mode the Canvas is drawn at a giant scale around the origin, which is normal. Toggle the 2D button in the Scene view toolbar to inspect it comfortably.
- If the element is a tiny dot or sits miles away from the Canvas rectangle, the problem is its RectTransform (position, size or scale), covered below.
Also check the Game view itself. Make sure Gizmos is not the issue and that the Game view is not set to a display number with no camera. The Display dropdown at the top of the Game view should match the Target Display of your camera.
Canvas Render Mode and Camera
The Canvas component has three render modes, and each fails differently.
| Render Mode | Needs | Common failure |
|---|---|---|
| Screen Space – Overlay | Nothing | Covered by another Overlay canvas with a higher Sort Order |
| Screen Space – Camera | A Render Camera assigned | Render Camera empty, or Plane Distance outside the camera’s clip planes |
| World Space | Event Camera for input, correct scale | Canvas is enormous or microscopic, or behind the camera |
For Screen Space – Camera, drag a camera into Render Camera. If the field is empty, Unity falls back to overlay behaviour in some cases, but a deleted or wrong camera produces blank UI. Then check Plane Distance. It must sit between the camera’s Near and Far clipping planes, and nothing opaque in the scene may be closer than the plane or it will cover the UI.
With URP and a camera stack, the UI camera must be an Overlay camera added to the Base camera’s stack, or the Canvas can render under the wrong camera. A UI that works in Overlay mode but vanishes in Camera mode points to this.
For World Space, a freshly switched Canvas keeps its pixel-sized RectTransform, so a 1920 wide canvas is 1920 metres wide. Set the Canvas scale to something like 0.01 and size it to taste. Remember a World Space canvas faces +Z, so it is invisible from behind. The Canvas Scaler guide covers scaling for Overlay canvases.
Sorting Order and Overlap
Inside one Canvas, UI draws in Hierarchy order: elements lower in the list draw on top. A full-screen background Image placed below your text in the Hierarchy will hide that text. Drag the background above, or use SetAsFirstSibling().
Across canvases, the Sort Order on each Canvas decides. A higher number draws on top. If you have a pause menu Canvas, a HUD Canvas and a fade Canvas, give them clear, spaced orders such as 0, 10 and 100. A nested Canvas with Override Sorting ticked uses its own order instead of its parent’s.
Only Overlay canvases ignore the scene entirely. A Camera-mode Canvas is sorted with Sorting Layer and Order in Layer against sprites and particle systems, so a sprite with a higher order can appear in front of your UI.
Anchors, Size and Scale
Check the RectTransform in the Inspector.
- Width or Height of 0. This happens when you create an element by code and never set
sizeDelta, or when stretch anchors have offsets that cancel out. Set a real size. - Scale of 0 or tiny. A Scale of (0,0,0), or a parent animated to scale 0 and never restored, hides everything under it.
- Position far off screen.
Pos XandPos Yare relative to the anchors. An element anchored to the top right with a Pos X of 1000 sits well outside a 1920 wide screen on the right side. - Anchors on the wrong side. If you change the Game view aspect ratio and an element vanishes, its anchor is probably a corner or edge that moved. Use the anchor presets (the square in the RectTransform) to pin it where you intend.
- Z position. On a World Space or Camera canvas, a non-zero
Pos Zcan push the element behind the clip plane.
Alpha, Color, Sprite and Font
- Color alpha is 0. The Color swatch looks white but the alpha bar underneath is empty. Click it and raise A to 255. This is very common after pasting colors or tweening alpha and not restoring it.
- Image has no Source Image. A plain Image with no sprite draws a white rectangle, so if it is invisible the color or alpha is the cause. If the Source Image is set but the sprite itself is mostly transparent, you will see little or nothing.
- Raw Image has no texture, or the texture is a render texture that nothing writes to.
- Text color matches the background. White text on a white panel is “invisible”. Change one of them.
- TextMeshPro with no font asset or empty text. If the first time you use TMP, a prompt asks to import TMP Essentials. Accept it, or text will not render properly. A missing font asset shows pink or no glyphs. The TextMeshPro tutorial walks through the setup, and blurry text is its own problem.
- Text overflow. With Overflow set to Truncate or a very small box, text may be cut to nothing. Enlarge the rect or turn on Auto Size.
Canvas Group, Masks and Layers
- Canvas Group. A
CanvasGroupon any parent with Alpha at 0 hides every child. Fade scripts often leave it at 0. Check parents, not just the element. - Mask or Rect Mask 2D. A parent with a mask clips children outside its rectangle. If the mask is tiny or the child is outside it, the child disappears. Temporarily disable the mask to test.
- Camera culling mask. For Screen Space – Camera and World Space canvases, the camera only draws layers in its Culling Mask. The default layer for UI is “UI”. If your camera does not include it, the Canvas is not drawn. Overlay canvases ignore this.
- Canvas Renderer culling. A Canvas with Cull Transparent Mesh on a CanvasRenderer hides fully transparent meshes, which is fine, unless alpha is accidentally zero.
Spawned From Code
Instantiating a UI prefab and getting nothing is a classic. A UI element must live under a Canvas. This version does not show:
Instantiate(itemPrefab); // spawns at scene root, not under a Canvas
Pass the parent, which also keeps the right local scale:
var item = Instantiate(itemPrefab, listParent, false); // false = keep prefab's local values
var rt = (RectTransform)item.transform;
rt.anchoredPosition = Vector2.zero;
rt.localScale = Vector3.one;
The false argument (instantiateInWorldSpace) matters. With the default of true, Unity keeps the world position and scale, which often leaves the new element wrongly sized under a scaled Canvas. If you use a Layout Group, the layout also overrides the position and size you set. The health bar tutorial shows a UI spawned and updated from code.
📚 Learn UI properly
A solid grounding in Unity’s UI system saves hours of this kind of hunting. Our list of programming and game design books includes approachable picks.
Troubleshooting
UI shows in the Scene view but not in the Game view
For Overlay canvases this is usually the Game view display or a disabled Canvas component. For Camera canvases, check the Render Camera, Plane Distance and Culling Mask.
Text exists but only a pink or empty box appears
The TMP font asset or its material is missing. Import TMP Essentials from Window > TextMeshPro > Import TMP Essential Resources and assign a font asset.
Everything vanished after a fade or menu animation
An animation or script left a Canvas Group alpha at 0, a parent scale at 0, or a GameObject inactive. Check the parent chain.
UI appears behind 3D objects or sprites
The Canvas is in Screen Space – Camera or World Space with a lower sorting order than the scene object, or the Plane Distance is farther than the object. Use Overlay, or raise Order in Layer, or reduce Plane Distance.
Nothing shows after Instantiate
The clone is not parented to a Canvas. Use Instantiate(prefab, canvasTransform, false).
“There are no cameras rendering” or a blue-grey Game view
The scene has no enabled camera, or its Target Display does not match the Game view. Overlay UI can still draw on top, but 3D content cannot.
FAQ
Do I need an EventSystem for UI to show?
No. An EventSystem only handles input. Visuals render without it, but buttons will not respond.
Why does my Canvas look huge in the Scene view?
An Overlay canvas maps one unit to one screen pixel, so a 1920 pixel wide canvas is drawn 1920 units wide. It is normal and it does not affect the Game view.
Why does UI disappear when I resize the Game window?
Anchors. Elements anchored to one corner keep a fixed offset, so on a smaller screen they can end up outside it. Use the proper anchor preset and a Canvas Scaler set to Scale With Screen Size.
Can a disabled Canvas still render children?
No. Disabling the Canvas component hides all of its children, though the GameObjects stay active and scripts still run.
My UI works in the editor but not in a build.
Check for a camera on a different Target Display, stripped shaders for custom UI materials, or a Canvas configured only for a Game view resolution. The works in editor, not in build guide lists the common causes.
Reader questions
Asked by readers of this article and answered by AI. Behavior can differ between Unity versions, so test in yours.




Leave a Reply