Flat texture in VR

Hello,
It’s just been a few months since I’m working with unreal engine, so I still consider myself as a beginner. I also don’t know a lot of rendering stuff, textures etc… I’m more into the coding stuff.

It’s been 2 weeks now since I encounter a big problem happening only when I packaged my game for my oculus quest 2. To make it simple all the texture/material becomes flat as you can see on the picture below:


The original render should look like this (editor render and the render I have when lunching the VR Preview:

I tried to localize the source of the problem by creating a new vr project and testing each element I added to the project. The only thing I can tell his that when I just package the 3d models + materials + lights in my vr headset it’s working fine. When I add my c++ code into the project It’s also working. But I soon I recompile the project from visual studio (for the code to work), and then package into my headset it’s broken…

I didn’t touch any settings from the basic VR template project.
I also tried to increase the intensity of normal maps following this guy video: UE4 Tutorial: Normal Map Intensity - fast and easy control - YouTube
but it’s not working.

I really have no clue of what is the reason of that. If anyone is kind enough to help me one that I will greatly appreciate.

ps: I’m working with UE5 and Visual Studio 2022

Have a great day,

EDIT: I tried to work with visual studio 2019 instead VS 2022, and after regenerating my project and restarting a fiew time my computer, it finally worked. However, I don’t think it was the real cause but it works for me.