- Home /
Geometry not rendering after Application.LoadLevelAdditive
I have a scene (A) that acts as a pre-loader, displaying a title screen while the real scene (B) is loaded using Application.LoadLevelAsync.
So A ===(Application.LoadLevelAsync)===> B
Then in B, I have another scene (C) that get added in using Application.LoadLevelAdditive.
So B ===(Application.LoadLevelAdditive)===> C
B loads just fine but when the call to LoadLevelAdditive to get the contents of C runs, some geometry in B disappears. After some digging I was able to confirm that this only seems to affect geometry that is batched. More strangely, it doesn't affect all of the batched geometry, and in some cases only affects some of the mesh filters that are referencing the same combined mesh. I've tried loading B using LoadLevel and LoadLevelAsync and both produce the same result. I've also tried loading an empty scene C and I get the same result, so the problem seems to be in the call to LoadLevelAdditive that resets something.
Attached is a screenshot of what I'm seeing, this one wall segment is fine before I trigger the LoadLevelAdditive and will not render afterwards even though its mesh rendere is still enabled and nothing has changed with the material. The post that sits between segments continues to render fine even though they are both referencing the same combined mesh.
Before
After
I'm experiencing the same problem. Have you found a solution for this?