LightingSettings.filteringGaussRadius is obsolete in Unity 6
Unity 6 replaced the integer filteringGaussRadius lightmap settings with float filteringGaussianRadius properties for AO, direct and indirect lighting.
- Status
- Obsolete since Unity 6.0 · Lighting
- Old
filteringGaussRadiusAO, filteringGaussRadiusDirect, filteringGaussRadiusIndirect- New
filteringGaussianRadiusAO, filteringGaussianRadiusDirect, filteringGaussianRadiusIndirect- Checked
- 2026-10-05, against the sources below
What changed
Lightmap denoising settings set from code changed type in Unity 6. The integer filteringGaussRadius properties are replaced by float filteringGaussianRadius properties, so the Gaussian filter radius can now be set in fractions.
Rename the property. Integer values still assign to a float, so most code only needs the new name.
Before and after
Before
C#
settings.filteringGaussRadiusAO = 2; After
C#
settings.filteringGaussianRadiusAO = 2f;Fix it automatically
Paste a script into the Unity 6 Script Upgrade Checker and it applies this rename for you, along with the other safe fixes for your target version.
Open this example in the checkerQuestions
- Does this change my existing lightmaps?
- No. It only affects scripts that set the denoising radius through LightingSettings. Lighting settings assets and baked lightmaps keep their values.
- Can I now use fractional radius values?
- Yes. The new properties are floats, so a radius such as 1.5 is valid. Integer values still assign without a cast.