Hi, all:
I encountered an issue after upgrading from UE5.1 to UE5.3:
When opening the same level, it shows in WorldSettings that:
UE5.1 = 42 lightmaps
UE5.3 = 617 lightmaps (but actually only 42, displayed in larger quantities, many duplicates)
The number of lightmaps displayed in WorldSettings has dramatically increased in 5.3, but many are duplicates. The actual count should be consistent.
Upon investigation, it seems the error in lightmap count might be here. Making this change fixes the issue. A check was missed through the FObjectPtr path, although it was marked through the UObject path.
Even after downloading the official version 5.3.2, this bug still persists… It’s quite obvious. The code in UE5.1 is the same with bugs, but there’s no problem in 5.1.(Might be some condition difference?)
Hi, I’ve just noticed this issue as well in 5.4 when I spotted way too many lightmaps that all seem to reference the same file. I spend a good couple of hours trying to figure out if it was maybe related to external actors or using virtual textures or something similar but it’s good to know it may just be a count bug. Of course that means I actually have no idea how many lightmaps I actually have.
I have also tested in 5.5 and the bug is still present. So I put together a quick test in 4.27 with 10 static meshes and a single static point light. All lighmap resolutions were set to 64 with the packing size set to 512. This resulted in a single 512 lightmap texture as expected with LQ lightmaps disabled. In 5.4 and 5.5, this resulted in 10 lightmaps counted in world settings. So every baked asset gets counted in there but the all refence the same texture, so it’s really only 1.
Unfortunately I’m using a launcher version of the engine so I can’t make the above change, so my level is showing thousands of lightmaps which is disconcerting.