# 4.26 not properly loading materials on PreLoadingScreen phase

**URL:** <https://forums.unrealengine.com/t/4-26-not-properly-loading-materials-on-preloadingscreen-phase/477116>\
**Category:** UI\
**Tags:** unreal-engine, slate, loading-screen, question\
**Created:** [January 12, 2021, 12:27am UTC](https://forums.unrealengine.com/t/4-26-not-properly-loading-materials-on-preloadingscreen-phase/477116 "2021-01-12T00:27:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KhalimWu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KhalimWu](https://forums.unrealengine.com/u/KhalimWu)\
**Post date:** [January 12, 2021, 12:27am UTC](https://forums.unrealengine.com/t/4-26-not-properly-loading-materials-on-preloadingscreen-phase/477116/1 "2021-01-12T00:27:00Z")

</div>

My project had a material that loaded fine on the LoadingScreen module from the ActionRPG template using 4.24.3 when called on StartupModule. After i migrated the project to 4.26 the material no longer works when creating the loadingscreen on startup, but works fine on any other moment.

Did 4.26 restrict the use of materials on that phase? if I try loading a texture it works as expected, problem is only with materials (i want to use a material with UV animation).

---

<div class="post-metadata">

**Author:** ![Co](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Co](https://forums.unrealengine.com/u/Co)\
**Post date:** [March 19, 2021, 11:04am UTC](https://forums.unrealengine.com/t/4-26-not-properly-loading-materials-on-preloadingscreen-phase/477116/2 "2021-03-19T11:04:33Z")

</div>

Hi KhalimWu,

The issue comes from the way “Time” is initialized in materials, it is done when the viewport is drawn for the first time.

If you have a StartupMovie then `FDefaultGameMoviePlayer::WaitForMovieToFinish` won’t go in the “else” code path that calls `GameEngine->SwitchGameWindowToUseGameViewport();`. This is where the viewport is drawn for the first time and initialize everything correctly for materials.

An easy way to fix your first loading screen is to call `GetMoviePlayer()->WaitForMovieToFinish();` right before your call to `SetupLoadingScreen`

It worked like a charm for me 😉

Cheers !  
Cø

---

<div class="post-metadata">

**Author:** ![KhalimWu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KhalimWu](https://forums.unrealengine.com/u/KhalimWu)\
**Post date:** [March 20, 2021, 4:59am UTC](https://forums.unrealengine.com/t/4-26-not-properly-loading-materials-on-preloadingscreen-phase/477116/3 "2021-03-20T04:59:09Z")

</div>

Thanks, I’ll test that!
