- Home /
Baking shadow maps for static objects spawned at runtime
Is there a way to do this in unity 6. I saw there was one in unity 4 but that feature became broken. I have static objects spawned at runtime, but I also have little enemy people running around so there shadows need to be seen normally.
Are you shure you mean baking? As far as i know unity keeps baked lighting data in scene data - not in prefabs (as there could be different instances of prefabs in different places in the scene) - which means you can't do this in runtime in any realiable way. There is however a mixed mode in light properties - so you can have static geometry with baked lighting, and non-static geometry with realtime lighting at the same time.
Your answer
Follow this Question
Related Questions
Can I cast real time shadows on lightmapped objects? 2 Answers
Weird shadows when baking. 1 Answer
Material Changing at Run-Time on Static Batched Objects 1 Answer
Adding Static Shadows 0 Answers