The DrawsShapes property can be used to control whether the Camera will render any shapes (such as Polygons and Circles). This is on by default, and can be turned off to hide all shape rendering.

Common Usage

Shapes are often used for collision, and their visible representation can be useful in debugging. Shapes can be easily turned off for non-debug builds as follows:

    SpriteManager.Camera.DrawsShapes = true; // <- This is the default so not necessary, but it's more expressive
    SpriteManager.Camera.DrawShapes = false;

Last updated