Table of Contents

Fog Of War Revealer 2D


The 2D counterpart to the Fog Of War Revealer 3D. It reveals fog around a GameObject using 2D physics raycasts against your 2D colliders. Use it when Is 2D? is enabled on the Fog Of War World — see 2D Setup.

Properties

The Fog Of War Revealer 2D shares the same inspector properties as the 3D revealer — Vision Range, Customization, Hider, and Occlusion settings. The full property reference lives in Configuration → Revealers.

The key differences:

  • Raycasts use Unity's 2D physics (Physics2D) instead of 3D physics. Set the Obstacle Mask to the layers of your 2D colliders.
  • Vision is computed on the 2D plane, so the height-based settings are not used the way they are in 3D.

Scripting

See the Revealer API. The 2D and 3D revealers share the same base API.