Download

Spawning static mobility actors at runtime

I want to spawn an array of titles. You can’t do this in the constructor of a blueprint so doing it at runtime is my only option. The problem is that even if marked static the geometry won’t have any lightmap data will it?
Is there something I can do about this, or will lightmap only support geometry/actors placed manually in the world?

Thanks.

Lightmaps only support geometry that’s available at bake time. This is a limitation of how light maps work – the bake process needs to know about all the geometry it is baking.

Makes sense. I was mostly confused because when playing the game I suddenly get a message saying lighting needs to be rebuilt for hundreds of actors (spawned dynamically OnBeginPlay). I guess the system doesn’t check to see if the static geometry was placed manually in the world or by code for that prompt.