RealDocs

UKismetAnimationLibrary::K2_MakePerlinNoiseAndRemap

function AnimGraphRuntime Blueprint Since 4.0
#include "KismetAnimationLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Samples 1D Perlin noise at Value and remaps the result into the given output range. The single-float counterpart to K2_MakePerlinNoiseVectorAndRemap, useful for a single smooth scalar like a breathing curve.

Caveats & Gotchas

  • Raw noise output is roughly in [-1, 1]; the default RangeOutMin/Max values pass it through unchanged.
  • Drive Value with a continuously increasing input (e.g. time * frequency) to get smooth animated motion — a static Value returns a static result every call.

Signature

static float K2_MakePerlinNoiseAndRemap(float Value, float RangeOutMin, float RangeOutMax)

Parameters

Name Type Description Default
Value float Input value for the noise function.
RangeOutMin float Minimum of the output range. -1.f
RangeOutMax float Maximum of the output range. 1.f

Return Type

float

Example

Smooth breathing scale driven by time C++
const float Time = GetWorld()->GetTimeSeconds();
const float BreathScale = UKismetAnimationLibrary::K2_MakePerlinNoiseAndRemap(Time * 0.5f, 0.95f, 1.05f);

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.