The animation is done inside the widget normally, for example if you use one of the throbbers in the UMG editor.
GetAllWidgetsOfClass is to find the widget after the new level is loaded, so you dont have to store any references to the loading screen in a Game Instance or other persistent class.
Rama