Table of Contents

Static Revealers


A static revealer does not automatically recalculate line of sight after its initial calculation. This is ideal when both the revealer and its surrounding environment won't change — think watchtowers, fixed cameras, or decorative light sources. A static revealer costs essentially nothing per frame.

Marking a Revealer Static

There are two ways:

Spawn it static — enable Start Revealer As Static on the Revealer component, so it calculates once on registration and then stops.

Change it at runtime — call SetRevealerAsStatic:

// freeze this revealer (stops automatic recalculation)
revealer.SetRevealerAsStatic(true);

// resume automatic recalculation
revealer.SetRevealerAsStatic(false);

Recalculating a Static Revealer

If a static revealer's surroundings change (e.g. a wall is destroyed), recalculate it once manually:

revealer.ManualCalculateLineOfSight();