RealDocs

UKismetStringLibrary::IsNumeric

function Engine Blueprint Since unknown
#include "Kismet/KismetStringLibrary.h"
Access: public Specifiers: staticBlueprintPure

Description

Checks whether a string contains only numeric characters. Commonly used to validate user text input before converting it with Conv_StringToInt or Conv_StringToDouble.

Caveats & Gotchas

  • An empty string returns false, not true — don't assume IsNumeric implies non-empty content elsewhere without checking.
  • Accepts a single leading '+' or '-' sign and one decimal point, so "-3.14" passes; it is not a strict integer check.

Signature

static bool IsNumeric(const FString& SourceString)

Parameters

Name Type Description Default
SourceString const FString& The string to check.

Return Type

bool

Example

Validate before conversion C++
if (UKismetStringLibrary::IsNumeric(UserInput))
{
    const double Value = UKismetStringLibrary::Conv_StringToDouble(UserInput);
}

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.