# Migrating from 5.2 to 5.3 material errors

**URL:** <https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, bug-report, editor, Rendering, question\
**Created:** [September 9, 2023, 11:23am UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940 "2023-09-09T11:23:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![VintsKlea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VintsKlea](https://forums.unrealengine.com/u/VintsKlea)\
**Post date:** [September 9, 2023, 11:23am UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/1 "2023-09-09T11:23:35Z")

</div>

Hello,

I tried to migrate my project to 5.3 and somehow all of my materials are mixed up. When I change the scalability level, play the standalone game, play in viewport etc. It picks random materials from my project and assigns them to the meshes each time I do an action. Disabling nanite fixes the problem. Any ideas?

[Unreal Engine 5 2023.09.09 - 14.21.51.02|video](https://forums.unrealengine.com/uploads/short-url/msTLQVO4r0iAVm2EUKf8BJCKmJy.mp4)

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [September 9, 2023, 11:45pm UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/2 "2023-09-09T23:45:02Z")

</div>

Hey there @VintsKlea! This definitely seems like a migration bug! Does it actually assign the material (you can check by looking into the details) or is it just rendering an incorrect material?

---

<div class="post-metadata">

**Author:** ![VintsKlea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VintsKlea](https://forums.unrealengine.com/u/VintsKlea)\
**Post date:** [September 10, 2023, 9:52am UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/3 "2023-09-10T09:52:30Z")

</div>

Non of the materials actually get set, when I check the static mesh in details it still has its own original material. It just seems to be a rendering bug. Funny thing is, whenever I go into any material and save it, it fixes the whole map, until I press play again.

---

<div class="post-metadata">

**Author:** ![VintsKlea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VintsKlea](https://forums.unrealengine.com/u/VintsKlea)\
**Post date:** [September 10, 2023, 10:04am UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/4 "2023-09-10T10:04:25Z")

</div>

I even tried to migrate again both ways - trough the editor, so it automatically makes a copy and just by duplicating the project in Windows Explorer. Tried to do it on the same disc and on another m.2 SSD I have in my PC. Same problem. I found an old post saying I should redo my UV’s. Tried to do it on one of the meshes and the problem is still there. New UV’s or not.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [September 10, 2023, 10:09pm UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/5 "2023-09-10T22:09:36Z")

</div>

Interesting! Could you backup your project, then recompile the shaders? This could be some odd caching issue. It may take a while if you have lots of shaders.

After backing up use this command in the console:  
`recompileshaders all`

---

<div class="post-metadata">

**Author:** ![VintsKlea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VintsKlea](https://forums.unrealengine.com/u/VintsKlea)\
**Post date:** [September 11, 2023, 12:22pm UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/6 "2023-09-11T12:22:20Z")

</div>

Hello, thanks for the tip. I recompiled all the shaders, at first it froze my engine and I left it running for 2 hours. It pulled through and when I returned it looked promising, everything was normal, until I hit play and then it still randomized all the materials 😄 .

Any more ideas?

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [September 12, 2023, 7:37am UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/7 "2023-09-12T07:37:46Z")

</div>

Hrm, starting to believe this might be an issue with the way nanite handles the materials after the migration, though I can’t replicate the same on my side (I’m migrating a 5.2 project with some 2k texture Megascans meshes in nanite).

Does this affect freshly imported meshes as well?

---

<div class="post-metadata">

**Author:** ![VintsKlea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VintsKlea](https://forums.unrealengine.com/u/VintsKlea)\
**Post date:** [September 12, 2023, 11:05am UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/8 "2023-09-12T11:05:00Z")

</div>

Hey,

Yes. I just imported 2 new meshes. I let the editor make new materials for them based from the materials from Blender. Same thing happens after enabling nanite. If nanite is off, they are totally fine and don’t mix materials.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [September 14, 2023, 7:16am UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/9 "2023-09-14T07:16:12Z")

</div>

That is odd! Let’s dig a bit.

May I know your specs? (more specifically OS/GPU)

I’d recommend resetting your GPU settings in their Nvidia control panel or Adrenalin.

Does changing your AA settings affect it?

Does this occur in builds?

---

<div class="post-metadata">

**Author:** ![VintsKlea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VintsKlea](https://forums.unrealengine.com/u/VintsKlea)\
**Post date:** [September 14, 2023, 8:17am UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/10 "2023-09-14T08:17:34Z")

</div>

1. My specs are:  
i7 13700KF  
64GB DDR5  
MSI Gaming Trio 4070ti  
Asus Prime z790-a wi-fi.  
Windows 11 Pro version 22H2, OS Build - 22621.2134  
I updated my BIOS last week, also updated my CPU drivers. Got new Nvidia driver yesterday.

2. I reset my settings in Nvidia control panel to default. Both, under “Manage 3D settings - Global settings” and for “Program settings” for Unreal.

3. Anti-Aliasing is set to TSR by default. I tried all the other options as well. This doesn’t seem to affect anything.

4. I just built the game a few minutes ago and it does occur in build made with 5.3.

---

<div class="post-metadata">

**Author:** ![VintsKlea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VintsKlea](https://forums.unrealengine.com/u/VintsKlea)\
**Post date:** [September 18, 2023, 10:10am UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/11 "2023-09-18T10:10:14Z")

</div>

The issue has been reported as a bug.

---

<div class="post-metadata">

**Author:** ![euanford12321](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@euanford12321](https://forums.unrealengine.com/u/euanford12321)\
**Post date:** [October 1, 2023, 8:34pm UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/12 "2023-10-01T20:34:03Z")

</div>

I have the exact same problem on 5.3. The only difference is that I did not migrate at all. This is a fresh project started on 5.3.

---

<div class="post-metadata">

**Author:** ![Skowroshima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skowroshima/32/493792_2.png) [@Skowroshima](https://forums.unrealengine.com/u/Skowroshima)\
**Post date:** [November 1, 2023, 4:57pm UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/13 "2023-11-01T16:57:11Z")

</div>

Do you know if there a tracking number for this? I’m also having this issue, this is a major issue that prevents us from going to 5.3.

I’ve confirmed that this happens in packaged build, across a large array of different clients running the game.

Video of issue in action. Updating the skylight re-randomizes the materials.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/a/d0a1764bd4d619143ab47419f79953cfd4647c7c.jpeg "Unreal 5.3.1 nanite material roulette bug") ](https://www.youtube.com/watch?v=tk5VpjQCssA)

---

<div class="post-metadata">

**Author:** ![VintsKlea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VintsKlea](https://forums.unrealengine.com/u/VintsKlea)\
**Post date:** [November 1, 2023, 5:06pm UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/14 "2023-11-01T17:06:05Z")

</div>

I don’t think there was a ticket created for this.

---

<div class="post-metadata">

**Author:** ![Skowroshima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skowroshima/32/493792_2.png) [@Skowroshima](https://forums.unrealengine.com/u/Skowroshima)\
**Post date:** [November 1, 2023, 5:42pm UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/15 "2023-11-01T17:42:11Z")

</div>

> I don’t think there was a ticket created for this.

For me it seems to be skylight related, If I remove the skylight, re-open the level, the material issue goes away. Does the same thing happen to you in your example?

---

<div class="post-metadata">

**Author:** ![VintsKlea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VintsKlea](https://forums.unrealengine.com/u/VintsKlea)\
**Post date:** [November 1, 2023, 6:05pm UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/16 "2023-11-01T18:05:45Z")

</div>

Wow, you are absolutely correct. I never tested this but that does fix the issue for me aswell. At the expense of having no skylight now tho.

---

<div class="post-metadata">

**Author:** ![Skowroshima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skowroshima/32/493792_2.png) [@Skowroshima](https://forums.unrealengine.com/u/Skowroshima)\
**Post date:** [November 1, 2023, 6:16pm UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/17 "2023-11-01T18:16:33Z")

</div>

Yeah, removing skylights for all our levels and redoing the lighting is not an option for us. But maybe that information could help Epic resolve this problem, if it was ever looked at.

@VintsKlea - It would probably be good to not mark this as resolved as it will likely get ignored.

FYI - @SupportiveEntity

---

<div class="post-metadata">

**Author:** ![VintsKlea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VintsKlea](https://forums.unrealengine.com/u/VintsKlea)\
**Post date:** [November 1, 2023, 9:00pm UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/18 "2023-11-01T21:00:41Z")

</div>

Good call. I just gave up on this problem tbh. I thought I’d wait for 5.3.1 to come out and migrate again. Let’s see if SupportiveEntity has something to say on this.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [November 2, 2023, 3:15am UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/19 "2023-11-02T03:15:55Z")

</div>

Thanks for the information @Skowroshima and @VintsKlea! It looks like the error is logged and in the issue tracker but has been backlogged. It seems that setting the skylight to movable has been a workaround for some users but obviously incurs some performance problems so may not be ideal. I do recommend submitting supplementary information regarding the bug referencing the issue number UE-116954 so if it can help an engineer solve it when the time comes!

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-116954)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

---

<div class="post-metadata">

**Author:** ![Skowroshima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skowroshima/32/493792_2.png) [@Skowroshima](https://forums.unrealengine.com/u/Skowroshima)\
**Post date:** [November 2, 2023, 4:38pm UTC](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940/20 "2023-11-02T16:38:23Z")

</div>

Thanks SupportiveEntity. If this is the same issue, it’s made way more prolific in 5.3. If having the light as movable was a fix in older versions, it’s not a fix now.

We have a shipped title built in 5.2 where this is not happening. This prevents us from upgrading to 5.3. As this the severity of this has drastically changed with 5.3, is there a way to reevaluate the status of it?

[Next page](https://forums.unrealengine.com/t/migrating-from-5-2-to-5-3-material-errors/1288940.md?page=2)
