DocsGRADEReference

GRADE Fog Spline

2 min read

On this page

Fog puffs placed along a spline, all with the same look, with Expand / Contract / Move Along Spline animations.

C++: AGradeFogSpline. Manual: GRADE Fog Spline.

Parameters

Fog along a spline.

ParameterValuesDefaultDescription
Fog Enabledon/off, keyableonShows the fog.

Spline

ParameterValuesDefaultDescription
Spacing>= 25 (slider to 5000)400Distance between puffs along the spline (cm). Small values spawn many puffs (GPU cost): raise Puff Size first.
Puff Sizevector (X, Y, Z), keyable(700, 700, 400)Size of each puff (cm) before the spline point scale.
Use Spline Rotationon/offoffAlign the puffs with the spline direction (else they keep the actor's rotation).
Closed Loopon/offoffConnect the last spline point to the first one.
Scale At Spline Pointson/offoffUse the scale of the spline points (select a point and use the scale tool) to size the puffs along the spline.
Max Puffs1..512, integer128Upper bound of puffs (safety against a tiny spacing on a long spline).

Animation

ParameterValuesDefaultDescription
AnimationEGradeFogSplineAnimationOffBuilt-in animation.
TriggerEGradeFogSplineTriggerBegin PlayWhen the animation starts. (Editable when Animation != E Grade Fog Spline Animation::Off is on.)
Animation Speed>= 1 (slider to 5000)200Speed of the animation front along the spline (cm/s). (Editable when Animation != E Grade Fog Spline Animation::Off is on.)
Loop Animationon/offoffRestart at the end (Move Along Spline loops forever; Expand / Contract replay from the start). (Editable when Animation != E Grade Fog Spline Animation::Off is on.)
Front Softness0.01..10.15Softness of the Expand / Contract front as a fraction of the spline length. (Editable when Animation != E Grade Fog Spline Animation::Off is on.)
Animation Progress0..1, keyable1Animation progress 0..1 (key it in Sequencer to scrub the animation; set by the animation while playing). 1 in the editor shows the finished state; BeginPlay resets it to 0 when an animation is set.

Presets

ParameterValuesDefaultDescription
PresetUGradeFogPresetPreset asset applied by "Apply Preset".
Builtin PresetnameNAME_NoneBuilt-in preset applied by "Apply Preset" when no asset is set.

Advanced

ParameterValuesDefaultDescription
Material OverrideMaterialInterface assetOptional material replacing M_GRADE_FogVolume.

Nested settings: Fog (FGradeFogSettings): Look of every puff (Ellipsoid shape recommended). Keyable in Sequencer.

Enumerations

Fog Spline Animation (EGradeFogSplineAnimation)

Built-in spline animation.

ValueMeaning
OffEvery puff is always visible.
ExpandThe fog fills the spline from its start and stays (gas flooding a corridor).
ContractThe fog retreats along the spline towards its end.
Move Along SplineA single puff travels along the spline.

Fog Spline Trigger (EGradeFogSplineTrigger)

When the animation starts.

ValueMeaning
Begin PlayPlays on BeginPlay.
ManualWaits for StartAnimation() (Blueprint, level script, gameplay event).

Generated from the GRADE C++ headers. Back to the reference index.