UI elements disappear on build, but are perfect in play.

The canvas is not a child.
The UI elements are children of canvas.

This fixed the problem. The UI wasn't disappearing, it was way off the scene. Canvas Inspector> Canvas Scaler> UI Scale Mode> (Scale With Screen)

–

1 Answer

1

It’s probably a bug. Try to update unity editor version

I updated to 2020 version of Unity. This did not fix the problem. But I needed to do it anyway. Thx for the idea.

–

Time.timeScale = 1; this will unpause your game

–