Support
Console Variables and Commands
The Lighting Suite adds console variables and commands to Unreal's console. Use them to turn a feature off for a test, set its quality for each scalability level, or check a level in game. You don't need them for day-to-day lighting.
Console variables start with r.CGF.. Commands start with CGF..
Using the Console
In the editor, or in a game you play from the editor, press the ` key (left of 1).
Type the name, a space and the value, for example
r.CGF.LensFlare 0.Press Enter.
You should see: the change takes effect. Type the name alone to print the current value and its help text.
Values you type last until you close the editor or the game. To keep a value for the whole project, add it to Config/DefaultEngine.ini:
[SystemSettings]
r.CGF.AmbienceZones.SnapDistance=10000
Note: Variables marked Scalability can also be set per quality level in
Config/DefaultScalability.ini, like Unreal's own scalability settings.
Console Variables
Ambience Zones
| Variable | Description |
|---|---|
r.CGF.AmbienceZones.Enable |
Shows Ambience Zones. At 0, World Lighting shows its own settings only and zones add no post process. Default 1. |
r.CGF.AmbienceZones.EditorPreview |
Shows Ambience Zones in editor viewports, from the active viewport's camera. Never saved into the level. Default 1. |
r.CGF.AmbienceZones.Debug |
At 1, draws the zones and their weights on screen. Default 0. Not available in Shipping builds. |
r.CGF.AmbienceZones.ForceSnap |
At 1, skips Blend Time fades, so zones change at once. Default 0. Not available in Shipping builds. |
r.CGF.AmbienceZones.SnapDistance |
When the camera moves further than this in one frame (teleport, respawn, camera cut), zones snap instead of fading. Default 5000. |
r.CGF.AmbienceZones.LumenUpdateSpeed |
While a zone blends, Lumen's Lumen Scene Lighting Update Speed and Final Gather Lighting Update Speed are multiplied by this, so bounce light keeps up. At 1, nothing changes. Default 2. Scalability. |
r.CGF.AmbienceZones.LumenUpdateHold |
Seconds Lumen keeps the faster speed after a blend ends, while its lighting settles. It then eases back to the level's own speeds. Default 4. |
Lens Flare
| Variable | Description |
|---|---|
r.CGF.LensFlare |
At 0, no Lens Flare draws. Unreal's own lens flare is left as the post process sets it. Default 1. Scalability. |
r.CGF.LensFlare.Quality |
Quality of every Lens Flare whose Quality is Auto. 0 Low (4 ghosts, no lens dirt), 1 Medium (8 ghosts, lens dirt), 2 High (16 ghosts, finer occlusion), 3 Cinematic (finest occlusion). If you never set it, it follows Unreal's Post Processing scalability: Low gives Low, Medium gives Medium, High and Epic give High, Cinematic gives Cinematic. Scalability. |
World Lighting and Exposure
| Variable | Description |
|---|---|
r.CGF.ExposureCurveBlend |
Blends the Exposure Compensation Curve of Post Process Volumes by their weights. At 0, Unreal's own behavior: the curve of the last volume with any weight shows in full. Default 1. |
Commands in Game
These commands help you check a level while you play it from the editor or in a Development build. They are not in Shipping builds.
Ambience Zones
| Command | Description |
|---|---|
CGF.AmbienceZones.Status |
Prints the World Lighting the zones apply to, the camera, and the weight of every zone. |
CGF.AmbienceZones.ViewFrom <ActorName> |
The player looks through the actor whose name contains ActorName, such as a placed camera. |
CGF.AmbienceZones.Fade <ZoneName> <Weight> [Seconds] |
Fades the Blend Weight of the zones whose name contains ZoneName to Weight (0 to 1) over Seconds (default 2). |
Lens Flare
| Command | Description |
|---|---|
CGF.LensFlare.LookAtSun [Degrees] |
Turns the player camera toward the sun of the level's Lens Flare, offset by Degrees (default 10) so the ghosts spread across the frame. |
CGF.LensFlare.ViewCamera <Tag> |
Looks through the camera actor with this tag. |
CGF.LensFlare.ApplyPreset <PresetPath> |
Applies a Lens Flare preset to every Lens Flare of the level, for example CGF.LensFlare.ApplyPreset /CGFLightingSuite/LensFlare/Presets/LF_CGF_Orbital. |
CGF.LensFlare.Set <Property> <Value> |
Sets one value of the look of every Lens Flare of the level. Layers are counted from 0, for example CGF.LensFlare.Set Layers.2.Intensity 2 or CGF.LensFlare.Set Lens.Coating SingleCoated. |
CGF.LensFlare.Dump |
Prints each Lens Flare's sun, quality, elements, and the texture of each layer with its size. |
Commands in the Editor
These commands drive the debug views in the active level viewport.
| Command | Description |
|---|---|
CGF.Exposure.View <Mode> |
Shows an Exposure Debugger view. Mode: zones, falsecolor, luminance or off. Other words: split turns Split with Lit on or off, isolate <0-8> shows one Exposure Zone (0 Crushed to 8 Clipped, none for all), scopes and meter turn them on or off, waveform, parade and vectorscope pick a scope, check runs Check Exposure, dump prints the meter and the Check Exposure problems, panel opens the Exposure Debugger tab, clear turns everything off in that viewport. |
CGF.PBR.View <View> [options] |
Shows a PBR Validation view. View: 0 Overview, 2 Base Color, 3 Metallic, 4 Roughness, 5 Material Check, 6 Specular, 9 Reflectance (F0), or Off. Options: Split [0-1] for Split with Lit at that position, Heatmap, NoValues to hide the values under the cursor, Type <id> for the Material Type Material Check compares with when nothing is selected. |
Additional Notes
Why does a debug variable do nothing in my packaged game?
r.CGF.AmbienceZones.Debug and r.CGF.AmbienceZones.ForceSnap are cheat variables, like Unreal's own debug views. They work in the editor and in Development builds, not in Shipping builds.
Does a console value change my level?
A console variable doesn't. Its value is never saved into a level or an asset. CGF.LensFlare.Set and CGF.LensFlare.ApplyPreset do change the Lens Flare actors of the world they run in, so run them in Play In Editor.
Can I see every Lighting Suite variable in Unreal?
Yes. Type r.CGF. or CGF. in the console to list the matches. Help > Console Variables lists them too, with their help text.
For other problems, see Troubleshooting and Known Issues.