Scripting Support (C#)
advanced scriptingBeautify 3 (URP) · Scripting Support (C#)
Beautify (namespace Beautify.Universal) Volume override.
IsActive()) and internal helper types are intentionally omitted.
Getting Started
There are two ways to access Beautify properties at runtime. Both modify the same underlying Volume data:
Singleton shortcut (most common)
The BeautifySettings singleton provides quick access to Beautify properties. It automatically finds the first Volume in the scene that contains a Beautify override and reads its profile. This is the fastest way when you have a single Beautify volume:
using Beautify.Universal;
// Read or change any property via the singleton
BeautifySettings.settings.brightness.Override(1.2f);
BeautifySettings.settings.bloomIntensity.Override(0.5f);
BeautifySettings.settings.depthOfField.Override(true);
Direct Volume access (multiple volumes)
If your scene has multiple volumes with different Beautify profiles (e.g. indoor vs outdoor areas), use the standard URP TryGet pattern to target a specific volume:
using Beautify.Universal;
using UnityEngine.Rendering;
var volume = GetComponent<Volume>();
if (volume.profile.TryGet<Beautify>(out var beautify)) {
beautify.sharpenIntensity.Override(4f);
beautify.bloomIntensity.Override(0.5f);
}
URP handles blending between volumes automatically based on their weight, priority, and blend distance. You only need one BeautifySettings component in the scene regardless of how many volumes you have - the singleton is just a convenience shortcut, not a requirement.
Parameters (Fields)
All members below are public fields on Beautify (Volume parameters). Use Override(value) at runtime to force a value regardless of profile blending, or set value and overrideState.
General Settings
Performance
BoolParameter directWriteWrites result directly to camera target saving intermediate blits. This option will overwrite any previous post-processing effects so make sure there's no other effects being executed besides Beautify. Default: false.
BoolParameter downsamplingReduces camera target before applying Beautify effects This option can contribute to compensate render scale if it's set to greater than 1 or to improve performance. Default: false.
BoolParameter downsamplingBilinearEnables bilinear filtering when using downsampling. Default: false.
BeautifyDownsamplingModeParameter downsamplingModeHow downsampling is applied. Default: DownsamplingMode.BeautifyEffectsOnly.
ClampedFloatParameter downsamplingMultiplierDownsampling multiplier. Default: 1. Range: 1 to 64f.
BoolParameter ignoreDepthTextureDoesn't request depth texture - effects or options that rely on depth will be disabled. Default: false.
BoolParameter turboModeSharpen, bloom and anamorphic flares will reduce quality a bit to improve performance. This option can be useful on less powerful platforms or devices. Default: false.
Misc
FloatParameter compareLineAngleSets the separator line angle (free-angle compare style). Default: 1.4f. Range: -Mathf.PI to Mathf.PI.
FloatParameter compareLineWidthControls the separator line width in compare mode. Default: 0.002f. Range: 0.0001f to 0.05f.
BoolParameter compareModeEnables compare mode to visualize Beautify on/off using a split view. Default: false.
ClampedFloatParameter comparePanningControls the panning amount of the compare view. Default: 0.25f. Range: 0 to 0.5f.
BeautifyCompareStyleParameter compareStyleSelects the compare mode layout. Default: new BeautifyCompareStyleParameter().
BeautifyDebugOutputParameter debugOutputSelects a debug output (buffers useful for diagnosing Bloom/DoF/etc.). Default: new BeautifyDebugOutputParameter().
BoolParameter disabledIgnore all Beautify effects. This option overrides any existing profile. Default: false.
BoolParameter flipYInverts vertical orientation of image when blitting. This option can be used to overcome an issue in certain versions of URP. Default: false.
BoolParameter hideInSceneViewPrevents Beautify from rendering in the Scene view camera. Default: false.
Image Enhancement
Dithering
ClampedFloatParameter ditherIntensityControls the intensity of Dithering. Default: 0.0f. Range: 0 to 0.02f.
Sharpen
ClampedFloatParameter sharpenClampReduces final sharpen modifier. Default: 0.45f. Range: 0 to 1f.
ClampedFloatParameter sharpenDepthThresholdBy default, sharpen ignores edges to avoid aliasing. Increase this property to also include edges. Edge detection is based on scene depth. Default: 0.035f. Range: 0f to 0.05f.
BeautifyLayerMaskParameter sharpenExclusionLayerMaskLayers to exclude from sharpening. Default: 0.
ClampedFloatParameter sharpenIntensityControls the intensity of Sharpen. Default: 0f. Range: 0f to 25f.
MinMaxFloatParameter sharpenMinMaxDepthRestricts sharpen to a scene depth range. Default: new Vector2(0, 0.999f). Range: 0 to 1.1f.
ClampedFloatParameter sharpenMinMaxDepthFallOffDepth Range FallOff parameter for Sharpen. Default: 0f. Range: 0f to 1f. Note: declared/serialized but not referenced by runtime code outside Beautify.cs..
ClampedFloatParameter sharpenMotionRestoreSpeedThe speed at which the sharpen intensity restores when camera stops moving. Default: 0.5f. Range: 0.01f to 5f.
ClampedFloatParameter sharpenMotionSensibilityReduces sharpen gracefully when camera moves or rotates. This setting reduces flickering while contributes to a motion blur sense. Default: 0.5f. Range: 0 to 1f.
ClampedFloatParameter sharpenRelaxationReduces sharpen intensity based on area brightness. Default: 0.08f. Range: 0 to 0.2f.
Edge Anti-aliasing
FloatParameter antialiasDepthAttenuationReduces antialias effect on the distance. Default: 0.
ClampedFloatParameter antialiasDepthThresholdMinimum difference in depth between neighbor pixels to determine if edge antialiasing should be applied. Default: 0.000001f. Range: 0 to 0.001f.
ClampedFloatParameter antialiasSpreadThe maximum extent of antialiasing. Default: 3f. Range: 0.1f to 8f.
ClampedFloatParameter antialiasStrengthStrength of the integrated edge antialiasing. A value of 0 disables this feature. Default: 0. Range: 0 to 20.
Tonemapping & Color Grading
White Balance
ClampedFloatParameter colorTempTemperature parameter for White Balance. Default: 6550f. Range: 1000f to 40000f.
ClampedFloatParameter colorTempBlendBlend parameter for White Balance. Default: 0f. Range: 0f to 1f.
LUT
BoolParameter lutEnable LUT for LUT. Default: false.
ClampedFloatParameter lutIntensityControls the intensity of LUT. Default: 0f. Range: 0 to 1f.
TextureParameter lutTextureLUT Texture parameter for LUT. Default: null.
Misc
ClampedFloatParameter brightnessbrightness parameter for Misc. Default: 1.0f. Range: 0f to 2f.
ClampedFloatParameter contrastcontrast parameter for Misc. Default: 1.0f. Range: 0.5f to 1.5f.
ClampedFloatParameter daltonizedaltonize parameter for Misc. Default: 0f. Range: 0f to 2f.
ClampedFloatParameter saturatesaturate parameter for Misc. Default: 0f. Range: -2f to 3f.
ClampedFloatParameter sepiasepia parameter for Misc. Default: 0f. Range: 0f to 1f.
ColorParameter tintColortint Color parameter for Misc. Default: new Color(1, 1, 1, 0).
BeautifyTonemapOperatorParameter tonemaptonemap parameter for Misc. Default: TonemapOperator.Linear.
FloatParameter tonemapAGXGammaGamma applied to the AGX tonemapper. Default: 2.5f. Range: 0 to 5f.
FloatParameter tonemapBrightnessPostBrightness multiplier after applying tonemap operator. Default: 1f.
FloatParameter tonemapExposurePreBrightness multiplier before applying tonemap operator. Default: 1f.
FloatParameter tonemapMaxInputBrightnessClamps input image brightness to avoid artifacts due to NaN or out of range pixel values. Default: 1000f.
Lens & Lighting Effects
Bloom
BoolParameter bloomAntiflickerToggles Bloom: Antiflicker. Default: false.
ClampedFloatParameter bloomBoost0Layer 1 Boost parameter for Bloom. Default: 0f. Range: 0 to 3f.
ClampedFloatParameter bloomBoost1Layer 2 Boost parameter for Bloom. Default: 0f. Range: 0 to 3f.
ClampedFloatParameter bloomBoost2Layer 3 Boost parameter for Bloom. Default: 0f. Range: 0 to 3f.
ClampedFloatParameter bloomBoost3Layer 4 Boost parameter for Bloom. Default: 0f. Range: 0 to 3f.
ClampedFloatParameter bloomBoost4Layer 5 Boost parameter for Bloom. Default: 0f. Range: 0 to 3f.
ClampedFloatParameter bloomBoost5Layer 6 Boost parameter for Bloom. Default: 0f. Range: 0 to 3f.
BoolParameter bloomConservativeThresholdA convervative threshold keeps the ratio of the rgb values after applying the thresholding Default: false.
BoolParameter bloomCustomizeToggles Bloom: Customize. Default: false.
FloatParameter bloomDepthAttenDepth Attenuation parameter for Bloom. Default: 0f.
BoolParameter bloomExcludeLayersUse Layers for Bloom. Default: false.
BeautifyLayerMaskParameter bloomExclusionLayerMaskLayers parameter for Bloom. Default: 0.
FloatParameter bloomIntensityControls the intensity of Bloom. Default: 0.
BeautifyBloomLayersFilterMethodParameter bloomLayersFilterMethodChoose if bloom should be applied only to specified layers or if bloom should be excluded from the specified layers. Default: BloomLayersFilterMethod.ExcludeSelectedLayers.
FloatParameter bloomMaxBrightnessMax Brightness parameter for Bloom. Default: 1000f.
FloatParameter bloomNearAttenNear Attenuation parameter for Bloom. Default: 0f.
BoolParameter bloomQuickerBlurToggles Bloom: Quicker Blur. Default: false.
ClampedIntParameter bloomResolutionResolution parameter for Bloom. Default: 1. Range: 1 to 10.
ClampedFloatParameter bloomSpreadSpread parameter for Bloom. Default: 0.5f. Range: 0 to 1.
FloatParameter bloomThresholdControls the threshold used by Bloom. Default: 0.75f.
ColorParameter bloomTintUse Alpha channel to blend original bloom color with the tinted color. Default: new Color(0.5f, 0.5f, 1f, 0f).
ColorParameter bloomTint0Tint color setting used by Bloom. Default: Color.white.
ColorParameter bloomTint1Tint color setting used by Bloom. Default: Color.white.
ColorParameter bloomTint2Tint color setting used by Bloom. Default: Color.white.
ColorParameter bloomTint3Tint color setting used by Bloom. Default: Color.white.
ColorParameter bloomTint4Tint color setting used by Bloom. Default: Color.white.
ColorParameter bloomTint5Tint color setting used by Bloom. Default: Color.white.
ClampedFloatParameter bloomWeight0Layer 1 Weight parameter for Bloom. Default: 0.5f. Range: 0 to 1f.
ClampedFloatParameter bloomWeight1Layer 2 Weight parameter for Bloom. Default: 0.5f. Range: 0 to 1f.
ClampedFloatParameter bloomWeight2Layer 3 Weight parameter for Bloom. Default: 0.5f. Range: 0 to 1f.
ClampedFloatParameter bloomWeight3Layer 4 Weight parameter for Bloom. Default: 0.5f. Range: 0 to 1f.
ClampedFloatParameter bloomWeight4Layer 5 Weight parameter for Bloom. Default: 0.5f. Range: 0 to 1f.
ClampedFloatParameter bloomWeight5Layer 6 Weight parameter for Bloom. Default: 0.5f. Range: 0 to 1f.
Anamorphic Flares
BoolParameter anamorphicFlaresAntiflickerToggles Anamorphic Flares: Antiflicker. Default: false.
BoolParameter anamorphicFlaresConservativeThresholdA convervative threshold keeps the ratio of the rgb values after applying the thresholding Default: false.
FloatParameter anamorphicFlaresDepthAttenDepth Attenuation parameter for Anamorphic Flares. Default: 0f.
BoolParameter anamorphicFlaresExcludeLayersUse Layers for Anamorphic Flares. Default: false.
BeautifyLayerMaskParameter anamorphicFlaresExclusionLayerMaskLayers parameter for Anamorphic Flares. Default: 0.
FloatParameter anamorphicFlaresIntensityControls the intensity of Anamorphic Flares. Default: 0f.
BeautifyBloomLayersFilterMethodParameter anamorphicFlaresLayersFilterMethodChoose if the effect should be applied only on the specified layers or if it should be excluded instead. Default: BloomLayersFilterMethod.ExcludeSelectedLayers.
FloatParameter anamorphicFlaresMaxBrightnessMax Brightness parameter for Anamorphic Flares. Default: 1000f.
FloatParameter anamorphicFlaresNearAttenNear Attenuation parameter for Anamorphic Flares. Default: 0f.
BoolParameter anamorphicFlaresQuickerBlurToggles Anamorphic Flares: Quicker Blur. Default: false.
ClampedIntParameter anamorphicFlaresResolutionResolution parameter for Anamorphic Flares. Default: 1. Range: 1 to 10.
ClampedFloatParameter anamorphicFlaresSpreadSpread parameter for Anamorphic Flares. Default: 1f. Range: 0.1f to 2f.
FloatParameter anamorphicFlaresThresholdControls the threshold used by Anamorphic Flares. Default: 0.75f.
ColorParameter anamorphicFlaresTintIgnore all Beautify effects. This option overrides any existing profile. Default: new Color(0.5f, 0.5f, 1f, 0f).
BoolParameter anamorphicFlaresVerticalToggles Anamorphic Flares: Vertical. Default: false.
Sun Flares
FloatParameter sunFlaresAttenSpeedControls a speed parameter used by Sun Flares. Default: 30f.
ClampedFloatParameter sunFlaresCoronaRays1AngleOffsetAngle Offset parameter for Sun Flares. Default: 0f. Range: 0 to 2f * Mathf.PI.
ClampedFloatParameter sunFlaresCoronaRays1LengthLength parameter for Sun Flares. Default: 0.02f. Range: 0 to 0.2f.
ClampedFloatParameter sunFlaresCoronaRays1SpreadSpread parameter for Sun Flares. Default: 0.001f. Range: 0 to 0.1f.
ClampedIntParameter sunFlaresCoronaRays1StreaksStreaks parameter for Sun Flares. Default: 12. Range: 2 to 30.
ClampedFloatParameter sunFlaresCoronaRays2AngleOffsetAngle Offset parameter for Sun Flares. Default: 0f. Range: 0 to 2f * Mathf.PI.
ClampedFloatParameter sunFlaresCoronaRays2LengthLength parameter for Sun Flares. Default: 0.05f. Range: 0 to 0.2f.
ClampedFloatParameter sunFlaresCoronaRays2SpreadSpread parameter for Sun Flares. Default: 0.1f. Range: 0 to 0.1f.
ClampedIntParameter sunFlaresCoronaRays2StreaksStreaks parameter for Sun Flares. Default: 12. Range: 2 to 30.
BeautifySunFlaresDepthOcclusionModeParameter sunFlaresDepthOcclusionModeNone = no depth buffer checking. Simple = sample depth buffer at Sun position. Smooth = sample 4 positions around Sun position and interpolate value across frames. Default: SunFlaresDepthOcclusionMode.Simple.
ClampedFloatParameter sunFlaresDepthOcclusionThresholdOcclusion Threshold parameter for Sun Flares. Default: 0.5f. Range: 0 to 1f.
ClampedIntParameter sunFlaresDownsamplingDownsampling parameter for Sun Flares. Default: 1. Range: 1 to 5.
ClampedFloatParameter sunFlaresGhosts1BrightnessBrightness parameter for Sun Flares. Default: 0.037f. Range: 0f to 1f.
ClampedFloatParameter sunFlaresGhosts1OffsetOffset parameter for Sun Flares. Default: 1.04f. Range: -3f to 3f.
ClampedFloatParameter sunFlaresGhosts1SizeSize parameter for Sun Flares. Default: 0.03f. Range: 0f to 1f.
ClampedFloatParameter sunFlaresGhosts2BrightnessBrightness parameter for Sun Flares. Default: 0.03f. Range: 0f to 1f.
ClampedFloatParameter sunFlaresGhosts2OffsetOffset parameter for Sun Flares. Default: 0.71f. Range: -3f to 3f.
ClampedFloatParameter sunFlaresGhosts2SizeSize parameter for Sun Flares. Default: 0.1f. Range: 0f to 1f.
ClampedFloatParameter sunFlaresGhosts3BrightnessBrightness parameter for Sun Flares. Default: 0.025f. Range: 0f to 1f.
ClampedFloatParameter sunFlaresGhosts3OffsetOffset parameter for Sun Flares. Default: 0.31f. Range: -3f to 3f.
ClampedFloatParameter sunFlaresGhosts3SizeSize parameter for Sun Flares. Default: 0.24f. Range: 0 to 1f.
ClampedFloatParameter sunFlaresGhosts4BrightnessBrightness parameter for Sun Flares. Default: 0.017f. Range: 0 to 1f.
ClampedFloatParameter sunFlaresGhosts4OffsetOffset parameter for Sun Flares. Default: 0f. Range: -3f to 3f.
ClampedFloatParameter sunFlaresGhosts4SizeSize parameter for Sun Flares. Default: 0.016f. Range: 0f to 1f.
ClampedFloatParameter sunFlaresHaloAmplitudeAmplitude parameter for Sun Flares. Default: 15.1415f. Range: 0 to 50f.
ClampedFloatParameter sunFlaresHaloIntensityControls the intensity of Sun Flares. Default: 0.01f. Range: 0 to 1f.
ClampedFloatParameter sunFlaresHaloOffsetOffset parameter for Sun Flares. Default: 0.22f. Range: 0 to 1f.
ClampedFloatParameter sunFlaresIntensityGlobal Intensity parameter for Sun Flares. Default: 0.0f. Range: 0 to 1f.
BeautifyLayerMaskParameter sunFlaresLayerMaskOccluding Layer Mask parameter for Sun Flares. Default: -1.
BoolParameter sunFlaresRotationDeadZoneToggles Sun Flares: Rotation Dead Zone. Default: false.
ClampedFloatParameter sunFlaresSolarWindSpeedControls a speed parameter used by Sun Flares. Default: 0.01f. Range: 0 to 1f.
ClampedFloatParameter sunFlaresSunDiskSizeDisk Size parameter for Sun Flares. Default: 0.05f. Range: 0 to 1f.
ClampedFloatParameter sunFlaresSunIntensityControls the intensity of Sun Flares. Default: 0.1f. Range: 0 to 1f.
ClampedFloatParameter sunFlaresSunRayDiffractionIntensityDiffraction Intensity parameter for Sun Flares. Default: 3.5f. Range: 0 to 25f.
ClampedFloatParameter sunFlaresSunRayDiffractionThresholdDiffraction Threshold parameter for Sun Flares. Default: 0.13f. Range: 0 to 1f.
ColorParameter sunFlaresTintTint color setting used by Sun Flares. Default: new Color(1, 1, 1).
BoolParameter sunFlaresUseLayerMaskSpecifies if occluding objects will be detected by raycasting. Default: false.
Lens Dirt
FloatParameter lensDirtIntensityControls the intensity of Lens Dirt. Default: 0f.
ClampedIntParameter lensDirtSpreadSpread parameter for Lens Dirt. Default: 3. Range: 3 to 5.
TextureParameter lensDirtTextureDirt Texture parameter for Lens Dirt. Default: null.
ClampedFloatParameter lensDirtThresholdControls the threshold used by Lens Dirt. Default: 0.5f. Range: 0 to 1f.
Chromatic Aberration
FloatParameter chromaticAberrationIntensityControls the intensity of Chromatic Aberration. Default: 0f. Range: 0f to 0.1f.
BoolParameter chromaticAberrationSeparatePassToggles Chromatic Aberration: Separate Pass. Default: false.
ClampedFloatParameter chromaticAberrationShiftHue Shift parameter for Chromatic Aberration. Default: 0. Range: -1 to 1.
FloatParameter chromaticAberrationSmoothingSmoothing parameter for Chromatic Aberration. Default: 0f. Range: 0f to 32f.
Depth of Field
BoolParameter depthOfFieldEnable for Depth of Field. Default: false.
BoolParameter depthOfFieldAffectsBloomWhen enabled, bloom and anamorphic flares will be computed after depth of field is applied Default: false.
BoolParameter depthOfFieldAlphaTestDoubleSidedWhen enabled, transparent geometry is rendered with cull off. Default: false.
BeautifyLayerMaskParameter depthOfFieldAlphaTestLayerMaskLayer Mask parameter for Depth of Field. Default: 1.
BoolParameter depthOfFieldAlphaTestSupportWhen enabled, transparent materials using alpha clipping will be included in the transparent mask Default: false.
FloatParameter depthOfFieldApertureAperture parameter for Depth of Field. Default: 2.8f.
FloatParameter depthOfFieldAutofocusDistanceShiftCustom distance adjustment (positive or negative) Default: 0.
BeautifyLayerMaskParameter depthOfFieldAutofocusLayerMaskLayer Mask parameter for Depth of Field. Default: -1.
FloatParameter depthOfFieldAutofocusMaxDistanceMax Distance parameter for Depth of Field. Default: 10000.
FloatParameter depthOfFieldAutofocusMinDistanceMin Distance parameter for Depth of Field. Default: 0.
Vector2Parameter depthOfFieldAutofocusViewportPointViewport Point parameter for Depth of Field. Default: new Vector2Parameter(new Vector2(0.5f, 0.5f)).
BoolParameter depthOfFieldBokehToggles Depth of Field: Bokeh Effect. Default: true.
BeautifyDoFBokehCompositionParameter depthOfFieldBokehCompositionSpecifies if the pass to compute bokeh is integrated (faster) or separated (stronger) Default: DoFBokehComposition.Integrated.
ClampedFloatParameter depthOfFieldBokehIntensityControls the intensity of Depth of Field. Default: 2f. Range: 0 to 8f.
ClampedFloatParameter depthOfFieldBokehThresholdControls the threshold used by Depth of Field. Default: 1f. Range: 0f to 3f.
BeautifyDoFCameraSettingsParameter depthOfFieldCameraSettingsCamera Lens Settings parameter for Depth of Field. Default: DoFCameraSettings.Classic.
FloatParameter depthOfFieldDistanceDistance parameter for Depth of Field. Default: 10f.
ClampedIntParameter depthOfFieldDownsamplingDownsampling parameter for Depth of Field. Default: 2. Range: 1 to 5.
ClampedFloatParameter depthOfFieldFallbackFadeDurationDuration in seconds to gracefully fade out/in the DoF effect when target is not visible Default: 0.5f. Range: 0.01f to 3f.
BeautifyDoFFilterModeParameter depthOfFieldFilterModeFilter Mode parameter for Depth of Field. Default: FilterMode.Bilinear.
ClampedFloatParameter depthOfFieldFocalLengthFocal Length parameter for Depth of Field. Default: 0.050f. Range: 0.005f to 0.5f.
ClampedFloatParameter depthOfFieldFocalLengthRealThe distance between the lens center and the camera's sensor in mm. Default: 50. Range: 1 to 300.
BeautifyDoFFocusModeParameter depthOfFieldFocusModeFocus Mode parameter for Depth of Field. Default: DoFFocusMode.FixedDistance.
Vector3Parameter depthOfFieldFocusPositionWorld position to focus on Default: new Vector3Parameter(Vector3.zero).
ClampedFloatParameter depthOfFieldFocusSpeedControls a speed parameter used by Depth of Field. Default: 1f. Range: 0.001f to 5f.
BoolParameter depthOfFieldForegroundBlurToggles Depth of Field: Foreground Blur. Default: true.
BoolParameter depthOfFieldForegroundBlurHQToggles Depth of Field: Blur HQ. Default: false.
ClampedFloatParameter depthOfFieldForegroundBlurHQSpreadBlur Spread parameter for Depth of Field. Default: 4. Range: 0 to 32.
FloatParameter depthOfFieldForegroundDistanceDistance parameter for Depth of Field. Default: 0.25f.
ClampedFloatParameter depthOfFieldFStopThe F-stop or F-number is the relation between the focal length and the diameter of the aperture Default: 2. Range: 0.3f to 32.
ClampedFloatParameter depthOfFieldImageSensorHeightRepresents the height of the virtual image sensor. By default, it uses a 24mm image sensor of a classic full-frame camera Default: 24. Range: 1 to 48.
FloatParameter depthOfFieldMaxBlurRadiusMax Blur Radius parameter for Depth of Field. Default: 1000f.
FloatParameter depthOfFieldMaxBrightnessMax Brightness parameter for Depth of Field. Default: 1000f.
ClampedFloatParameter depthOfFieldMaxDistanceMax Depth parameter for Depth of Field. Default: 1f. Range: 0 to 1f.
ClampedIntParameter depthOfFieldMaxSamplesSample Count parameter for Depth of Field. Default: 6. Range: 2 to 16.
DoFTargetFallbackParameter depthOfFieldPositionFallbackFocus behavior if position is not visible on the screen Default: DoFTargetFallback.KeepCurrentFocalDistance.
BoolParameter depthOfFieldResolutionInvariantAdjusts circle of confusion radius based on screen resolution. Default: false.
DoFTargetFallbackParameter depthOfFieldTargetFallbackFocus behavior if object is not visible on the screen Default: DoFTargetFallback.KeepCurrentFocalDistance.
FloatParameter depthOfFieldTargetFallbackFixedDistanceDistance parameter for Depth of Field. Default: 1000f.
BoolParameter depthOfFieldTransparentDoubleSidedWhen enabled, transparent geometry is rendered with cull off. Default: false.
BeautifyLayerMaskParameter depthOfFieldTransparentLayerMaskLayer Mask parameter for Depth of Field. Default: 1.
BoolParameter depthOfFieldTransparentSupportToggles Depth of Field: Transparency Support. Default: false.
BoolParameter depthOfFieldUsePhysicalCameraWhen enabled, uses the focal length, f-stop and image sensor size from the current physical camera settings Default: false.
Eye Adaptation
BoolParameter eyeAdaptationEnable for Eye Adaptation. Default: false.
ClampedFloatParameter eyeAdaptationCenterWeightControls the strength of center-weighted metering (if no mask is used). 0 = uniform, higher values bias metering toward the screen center. Default: 1f. Range: 0f to 8f.
TextureParameter eyeAdaptationMaskWhen assigned, eye adaptation will be applied only to the pixels within the mask (red channel) Default: null.
ClampedFloatParameter eyeAdaptationMaxExposureMax Exposure parameter for Eye Adaptation. Default: 5f. Range: 1f to 100f.
BeautifyEyeAdaptationMeteringModeParameter eyeAdaptationMeteringModeMetering Mode parameter for Eye Adaptation. Default: EyeAdaptationMeteringMode.FullFrame.
ClampedFloatParameter eyeAdaptationMiddleGrayThe 'neutral' brightness your auto‑exposure targets or roughly how bright an average surface should look. Lower values make scenes appear darker; higher values make them appear brighter. Default: 0.18f. Range: 0.001f to 0.5f.
FloatParameter eyeAdaptationMinCameraDistanceMinimum object depth in meters to consider for eye adaptation Default: 0f.
ClampedFloatParameter eyeAdaptationMinExposureMin Exposure parameter for Eye Adaptation. Default: 0.2f. Range: 0 to 1.
FloatParameter eyeAdaptationSpeedToDarkControls a speed parameter used by Eye Adaptation. Default: 0.2f.
FloatParameter eyeAdaptationSpeedToLightControls a speed parameter used by Eye Adaptation. Default: 0.4f.
Purkinje Shift
BoolParameter purkinjeEnable for Purkinje Shift. Default: false.
ClampedFloatParameter purkinjeAmountShift Amount parameter for Purkinje Shift. Default: 1f. Range: 0f to 5f.
ClampedFloatParameter purkinjeLuminanceThresholdControls the threshold used by Purkinje Shift. Default: 0.15f. Range: 0f to 1f.
Artistic Choices
Vignette
ClampedFloatParameter vignettingAspectRatioAspect Ratio parameter for Vignette. Default: 1f. Range: 0 to 1f.
ClampedFloatParameter vignettingBlinkBlink parameter for Vignette. Default: 0f. Range: 0 to 1.
BeautifyBlinkStyleParameter vignettingBlinkStyleBlink Style parameter for Vignette. Default: BlinkStyle.Cutscene.
Vector2Parameter vignettingCenterCenter parameter for Vignette. Default: new Vector2Parameter(new Vector2(0.5f, 0.5f)).
BoolParameter vignettingCircularShapeToggles Vignette: Circular Shape. Default: false.
BeautifyVignetteFitModeParameter vignettingCircularShapeFitModeFit Mode parameter for Vignette. Default: VignetteFitMode.FitToWidth.
ColorParameter vignettingColorTint color setting used by Vignette. Default: new Color(0f, 0f, 0f, 1f).
ClampedFloatParameter vignettingFadeFade parameter for Vignette. Default: 0. Range: 0 to 1f.
ClampedFloatParameter vignettingInnerRingInner Ring parameter for Vignette. Default: 0. Range: 0 to 1f.
TextureParameter vignettingMaskTexture Mask parameter for Vignette. Default: null.
ClampedFloatParameter vignettingOuterRingOuter Ring parameter for Vignette. Default: 0f. Range: -2f to 1f.
Outline
BoolParameter outlineoutline parameter for Outline. Default: false.
BoolParameter outlineBlurDownscaleToggles Outline: Downscale Blur. Default: false.
ClampedIntParameter outlineBlurPassCountBlur Count parameter for Outline. Default: 1. Range: 1 to 5.
ColorParameter outlineColorColor setting used by Outline. Default: new Color(0, 0, 0, 0.8f).
BoolParameter outlineCustomizeToggles Outline: Customize. Default: false.
FloatParameter outlineDistanceFadeMaximum distance in meters from the camera Default: 0.
ClampedFloatParameter outlineIntensityMultiplierIntensity Multiplier parameter for Outline. Default: 1. Range: 0 to 8.
LayerMaskParameter outlineLayerMaskOptionally specify which objects should receive the outline effect Default: new LayerMaskParameter(-1).
ClampedFloatParameter outlineMinDepthThresholdMinimum depth difference between neighboring pixels to detect an edge. Higher values require larger depth discontinuities. Default: 0.0005f. Range: 0f to 0.01f.
ClampedIntParameter outlineMinSeparationMinimum Separation parameter for Outline. Default: 1. Range: 1 to 5.
BoolParameter outlineOuterOnlyToggles Outline: Outer Only. Default: false.
ClampedFloatParameter outlineSaturationDiffThresholdMinimum color saturation difference between neighboring pixels to detect an edge. Higher values require more distinct color changes. Default: 0.015f. Range: 0f to 0.5f.
ClampedFloatParameter outlineSpreadSpread parameter for Outline. Default: 1f. Range: 0 to 1.3f.
BeautifyOutlineStageParameter outlineStageParameterRender Stage parameter for Outline. Default: OutlineStage.BeforeBloom.
BeautifyOutlineTechniqueParameter outlineTechniqueDepth: uses scene depth to find edges. Per Object Id: performs a custom pre-pass which renders meshes id to identify independent objects. Default: OutlineTechnique.Depth.
ClampedFloatParameter outlineThresholdThreshold for normal angle difference. Lower values detect sharper surface angle changes. Based on dot product of computed normals. Default: 0.2f. Range: 0f to 0.5f.
BoolParameter outlineUsesOptimizedShaderUses a depth-only custom shader which should be faster. This option is only used when outline technique is set to Depth. If the scene uses shaders that transform the vertices coordinates, you may want to disable this option. Default: false.
Night Vision
BoolParameter nightVisionEnable for Night Vision. Default: false.
ColorParameter nightVisionColorColor setting used by Night Vision. Default: new Color(0.5f, 1f, 0.5f, 0.5f).
FloatParameter nightVisionDepthMax Visible Depth parameter for Night Vision. Default: 100000.
ClampedFloatParameter nightVisionDepthFallOffMax Visible Depth Fall Off parameter for Night Vision. Default: 1. Range: 0.01f to 10.
Thermal Vision
BoolParameter thermalVisionEnable for Thermal Vision. Default: false.
ClampedFloatParameter thermalVisionDistortionAmountDistortion Amount parameter for Thermal Vision. Default: 9f. Range: 0 to 100f.
BoolParameter thermalVisionScanLinesToggles Thermal Vision: Scan Lines. Default: true.
Film Grain & Artifacts
ClampedFloatParameter filmGrainDirtSpotsAmountControls the frequency of dirt spots appearing on the film. Default: 0.0f. Range: 0 to 1f.
ClampedFloatParameter filmGrainDirtSpotsIntensityControls the visibility/brightness of dirt spots. Default: 0.2f. Range: 0 to 1f.
BoolParameter filmGrainEnabledEnable for Film Grain & Artifacts. Default: false.
ClampedFloatParameter filmGrainIntensityGrain Intensity parameter for Film Grain & Artifacts. Default: 0. Range: 0 to 1.
ClampedFloatParameter filmGrainLumaAttenuationControls how much grain is visible on bright areas. 0 for equally noise on all areas, 1 for reduced noise on bright areas. Default: 0.8f. Range: 0 to 1f.
ClampedFloatParameter filmGrainResolutionResolution parameter for Film Grain & Artifacts. Default: 0.85f. Range: 0.001f to 1f.
ClampedFloatParameter filmGrainScratchesAmountControls the frequency of scratches appearing on the film. Default: 0.0f. Range: 0 to 1f.
ClampedFloatParameter filmGrainScratchesIntensityControls the visibility/brightness of scratches. Default: 0.3f. Range: 0 to 1f.
Creative Blur
Vector2Parameter blurCenterCenter parameter for Creative Blur. Default: new Vector2Parameter(new Vector2(0.5f, 0.5f)).
ClampedFloatParameter blurDesaturationReduces color saturation based on blur intensity. Default: 0f. Range: 0f to 1f.
ClampedFloatParameter blurIntensityControls the intensity of Creative Blur. Default: 0f. Range: 0f to 64f.
BoolParameter blurKeepSourceOnTopToggles Creative Blur: Keep Source On Top. Default: false.
TextureParameter blurMaskMask parameter for Creative Blur. Default: null.
ClampedFloatParameter blurRadialBlurFalloffFalloff parameter for Creative Blur. Default: 0.35f. Range: 0f to 1f.
ClampedFloatParameter blurRadialBlurRadiusRadius parameter for Creative Blur. Default: 0.2f. Range: 0f to 1f.
BoolParameter blurShowMaskToggles Creative Blur: Show Mask. Default: false.
FloatParameter blurSourceEdgeBlendStrengthEdge Blending Strength parameter for Creative Blur. Default: 20.
ClampedFloatParameter blurSourceEdgeBlendWidthEdge Blending Width parameter for Creative Blur. Default: 0. Range: 0 to 1.
Vector4Parameter blurSourceRectRect parameter for Creative Blur. Default: new Vector4Parameter(new Vector4(0.1f, 0.1f, 0.8f, 0.8f)).
BeautifyCreativeBlurStyleParameter blurStyleStyle parameter for Creative Blur. Default: CreativeBlurStyle.ScreenBlur.
ClampedFloatParameter blurTiltShiftFalloffFalloff parameter for Creative Blur. Default: 0.2f. Range: 0f to 1f.
ClampedFloatParameter blurTiltShiftWidthWidth parameter for Creative Blur. Default: 0.2f. Range: 0f to 1f.
Frame
BoolParameter frameEnable for Frame. Default: false.
ClampedFloatParameter frameBandHorizontalSizeHorizontal Bands Size parameter for Frame. Default: 0. Range: 0 to 0.5f.
ClampedFloatParameter frameBandHorizontalSmoothnessHorizontal Bands Smoothness parameter for Frame. Default: 0. Range: 0 to 1.
ClampedFloatParameter frameBandVerticalSizeVertical Bands Size parameter for Frame. Default: 0.1f. Range: 0 to 0.5f.
ClampedFloatParameter frameBandVerticalSmoothnessVertical Bands Smoothness parameter for Frame. Default: 0. Range: 0 to 1.
ColorParameter frameColorColor setting used by Frame. Default: new Color(1, 1, 1, 1).
TextureParameter frameMaskTexture Mask parameter for Frame. Default: null.
ClampedFloatParameter frameSharpnessSharpness parameter for Frame. Default: 50f. Range: 1f to 255f.
BeautifyFrameStyleParameter frameStyleStyle parameter for Frame. Default: FrameStyle.Border.
ClampedFloatParameter frameThicknessThickness parameter for Frame. Default: 0.047f. Range: 0 to 1.
BeautifySettings Class (Runtime API)
BeautifySettings is a MonoBehaviour that provides a convenience singleton for quick access to the Beautify volume profile at runtime. It also manages the depth-of-field follow target, sun reference, and transition effects like blink.
Static Properties
static BeautifySettings instance { get; }Returns a reference to the BeautifySettings component. If none exists, it auto-creates one on the first Volume GameObject that has a Beautify profile. Use this to access instance fields like depthOfFieldTarget and event delegates.
static Beautify sharedSettings { get; }Returns a reference to the Beautify override in the volume's shared profile. Changes affect all volumes sharing that profile (like sharedMaterial in Unity). Equivalent to volume.sharedProfile.TryGet<Beautify>().
static Beautify settings { get; }Returns a reference to the Beautify override in an instance copy of the volume profile. Instantiates the profile on first access so changes only affect this volume (like material vs sharedMaterial). Equivalent to volume.profile.TryGet<Beautify>(). This is the property used in FAQ examples.
static VolumeProfile currentProfile { get; }Returns the shared VolumeProfile of the volume where Beautify was found.
static float depthOfFieldCurrentFocalPointDistanceThe current computed focal-point distance (read-only at runtime). Useful for debugging or HUD display.
Instance Fields
Transform sunAssign the directional light transform used for sun flares.
Transform depthOfFieldTargetThe transform tracked when depth-of-field Focus Mode is set to Follow Target.
Static Methods
static void Blink(float duration, float maxValue = 1)Triggers a vignette-based blink animation (close then open) over the given duration in seconds.
// Trigger a half-second blink
BeautifySettings.Blink(0.5f);
static void UnloadBeautify()Resets all cached internal references (instance, volume, settings). Call this when switching scenes if Beautify settings are not properly reset. Also called automatically on SceneManager.sceneLoaded.
BeautifySettings.UnloadBeautify();
SceneManager.LoadScene("NewScene");
static void UpdateAlphaClipRenderers()Forces a refresh of the internal list of alpha-clip renderers. Call this after instantiating new alpha-clipped objects at runtime.
BeautifySettings Events
The BeautifySettings component (add to your camera) exposes the following delegate fields for depth-of-field hooks:
OnBeforeFocusEvent OnBeforeFocus(float currentFocusDistance)Fired before the depth-of-field focus distance is applied. Your handler receives the current focus distance and returns the (optionally modified) distance to use.
// Delegate: float OnBeforeFocusEvent(float currentFocusDistance)
settings.OnBeforeFocus = (float distance) => {
return Mathf.Clamp(distance, 1f, 100f);
};
OnCameraBeforeFocusEvent OnCameraBeforeFocus(Camera camera, ref float currentFocusDistance)Fired before the depth-of-field focus distance is applied, providing the camera reference. Modify currentFocusDistance via ref to override the focus distance for that camera.
// Delegate: void OnCameraBeforeFocusEvent(Camera camera, ref float currentFocusDistance)
settings.OnCameraBeforeFocus = (Camera cam, ref float dist) => {
if (cam == Camera.main) dist = 5f;
};
OnCameraBeforeAutofocusEvent OnCameraBeforeAutofocus(Camera camera, ref Transform target)Fired before autofocus selects a target. Modify target via ref to override which transform the autofocus system tracks for that camera.
// Delegate: void OnCameraBeforeAutofocusEvent(Camera camera, ref Transform target)
settings.OnCameraBeforeAutofocus = (Camera cam, ref Transform t) => {
t = myCustomTarget;
};
Suggest an improvement
Help us improve this documentation page.