RealDocs

UKismetMathLibrary::PerlinNoise1D

function Engine Blueprint Since 4.0
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Generates 1D Perlin noise from Value, returning a continuous, smoothly-varying random value between -1.0 and 1.0. Unlike RandomFloat, feeding nearby inputs produces nearby outputs, making it useful for smooth procedural variation over time or distance.

Caveats & Gotchas

  • This is deterministic and stateless — the same Value always returns the same result, so it's not a substitute for RandomFloatFromStream when you need an unpredictable or seed-varying sequence.
  • Feeding in DeltaTime instead of an accumulated time value produces uncorrelated noise every frame since Perlin noise's smoothness comes from small, steady increments to the input coordinate, not from the input itself.

Signature

static float PerlinNoise1D(const float Value)

Parameters

Name Type Description Default
Value const float The input coordinate to sample noise at — usually a steadily incrementing time value.

Return Type

float

Example

Smooth idle sway using accumulated time C++
AccumulatedTime += DeltaTime;
float SwayOffset = UKismetMathLibrary::PerlinNoise1D(AccumulatedTime * 0.5f) * MaxSwayAmount;

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.