RealDocs

UKismetStringLibrary::Mid

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

Description

Returns the substring of a fixed length starting at a given position. This is the general-purpose substring extraction used when Left/Right don't fit.

Caveats & Gotchas

  • Start and Count are silently clamped to the string's bounds rather than asserting, so an out-of-range Start just yields an empty or shorter result.
  • This mirrors GetSubstring — both take a start index and a length, so double-check which one you meant to call when reading older graphs.

Signature

static FString Mid(const FString& SourceString, int32 Start, int32 Count)

Parameters

Name Type Description Default
SourceString const FString& The string to extract from.
Start int32 The zero-based index to begin extracting from.
Count int32 The number of characters to extract.

Return Type

FString

Example

Extract a middle segment C++
FString Segment = UKismetStringLibrary::Mid(TEXT("2026-07-08"), 5, 2);
// Segment == "07"

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.