I'm trying to set a Occlusion culling on my topdown 2D game. I have made a sprite object with a Occlusion Area on it.Once I try to bake it, it gives me the following error:

No Renderers that are marked static were found in the scene. Please mark all renderers that will never move as static in the inspector. UnityEditor.DockArea:OnGUI()

What exactly does this mean?

I'm using V5.3.2


You have to make the objects static which will be the part occlusion culling. The sprites/objects that will not move in runtime will have to be marked as static before baking. Make the objects static then system will get some renderer to work on. Then bake.

enter image description here

Occlusion culling is valid on only 3D mesh's. 2D sprites are not supported type. It's used on 3D objects. Usually 2D scenes doesn't require occlusion culling. Or you have to have at least one static 3D object in the scene

  • \$\begingroup\$ I believe this is not the case, as there is a tutorial on how to make it for both 2D and 3D \$\endgroup\$ – FlorisdG Jun 29 '16 at 20:53
  • \$\begingroup\$ just recreated your problem. sprite is not supported type. use static 3D object to use in 2D. it will work on static 2D object but will not generate only for 2D objects. the tutorial is for 3D scene. \$\endgroup\$ – Sourav Paul Roman Jun 29 '16 at 20:57
  • \$\begingroup\$ Okay, so I need to make 3D objects with the sprites as textures? \$\endgroup\$ – FlorisdG Jun 29 '16 at 21:00
  • \$\begingroup\$ Just put a static 3D box in the side. Just a hack!! If your game is 2D you are looking for wrong tools. Simple instantiation and destroy or enable disable will just work fine in 2D. \$\endgroup\$ – Sourav Paul Roman Jun 29 '16 at 21:05
  • \$\begingroup\$ Then how do I detect if a object is out of the camera, to disable it? \$\endgroup\$ – FlorisdG Jun 29 '16 at 21:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.