When I hide object and build it..it still rendering the shadow of that hidden object

Hello…
When I hide objects to make some space to put another object instead deleting it and when I build the scene it still providing shadow of hidden object…to solve this I have to go to the details and have to turn off the cast Shadow for hidden object but instead what I was thinking if we hide object it should be hide like its totally not there or it should be hide with cast shadow turnoff and when we make it visible again it should be visible with cast shadow turn on.

If you plan on having the objects be dynamic, I believe you should be using dynamic lighting for that object, but I see your point.

they all were set to static shadows…its not a big problem but will be really helpful when you make big changes in level design which is already built but later you want to replace many assets with new assets then it will be really helpful another way you can actually put them in Group and turn off cast shadows but still implement the idea mentioned above will just speed up your work flow.