Fog Of War Revealer 3D
Reveals the fog around a GameObject using 3D physics raycasts to determine line of sight. Add it to any object that should see (the player, units, light sources, etc.). The revealer registers itself with the Fog Of War World automatically.
For 2D projects use the Fog Of War Revealer 2D instead.
Adding a Revealer
See Getting Started: Revealers for a walkthrough of adding a revealer and setting the obstacle mask.
Settings
The revealer's inspector is organized into Vision Range, Customization, Hider, and Occlusion sections. Every property is documented, with figures, in the configuration reference:
The most important settings to start with are View Radius, View Angle, Vision Height, Opacity, and the Obstacle Mask (the layers that block vision).
Occlusion Quality
A revealer's raycast accuracy is set with the Occlusion Quality preset, or disabled entirely with Use Occlusion for thousands of cheap non-blocking revealers. See Occlusion Quality.
Debugging
In the editor, the revealer exposes debug-draw toggles (Debug Mode, Draw Initial Rays, Draw Expected Next Points, Draw Edge Resolve Rays, Draw Hider Samples, and more) for visualizing line-of-sight calculation. See Debugging.
Scripting
See the Revealer API for runtime properties, events, and methods such as SetRevealerAsStatic and ManualCalculateLineOfSight.