I have a scene with an Overlay canvas and a game object for my loading screen in my resources folder, the canvas has all of it’s default settings and here is the game object:
You will notice that the LoadingUI object just contains a Rect Transform and my custom script and acts as a container for the rest of the screen’s content.
If I drag the LoadingUI object into the hierarchy as a child of the canvas, everything works as expected: