When I edit my level in UE4 editor, there is no problem, it looks good. But, when I press play in editor, I can see an alert, that ‘Lighting needs to be rebuild’. Ok, I build my game, and, unfortunately, after building level, by pressing “Play” in editor, I can see an alert “Lighting needs to be rebuilt”. I don’t know how to fix it. I hope you can help me with solution.
Thanks a lot
The editor has the lighting of the level set to stationary by default, This means that the directional light inside your levels always needs to be “baked” into the map before hand. Under the “Modes” panel search for the “Lightmass Importance Volume”. Drag this into your level and scale to fit the general playing area. Then under the toolbar click on the downward pointing arrow next to the “Build” button and select “Build Lighting Only”. After lightmass has calculated the necessary values you should be able to play your level without the warning at the top.
For more in depth information you should visit this page:
Lightmass Basics in Unreal Engine | Unreal Engine 5.3 Documentation