RealDocs

UAudioComponent::PitchModulationMax

property Engine Blueprint Since 4.0
#include "Components/AudioComponent.h"
Access: public Specifiers: UPROPERTYEditAnywhereBlueprintReadWrite

Description

The upper bound to use when this component randomly determines a pitch multiplier for playback.

Caveats & Gotchas

  • Must be set alongside PitchModulationMin to define a meaningful range — leaving it at its default with only the min changed can produce an inverted or zero-width range.
  • Applies per-activation, not continuously — the randomized pitch is picked when the sound starts playing, not re-rolled every tick.

Signature

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Randomization|Pitch", meta = (DisplayName = "Pitch (Max)"))
float PitchModulationMax;

Example

Randomize pitch per footstep C++
AudioComponent->PitchModulationMin = 0.9f;
AudioComponent->PitchModulationMax = 1.1f;
AudioComponent->Play();

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.