UKismetStringLibrary::RightChop
#include "Kismet/KismetStringLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns the string remaining after removing the given number of characters from the start. Commonly used to strip a known prefix.
Caveats & Gotchas
- • Count here removes characters from the front, unlike Right which counts back from the end — the naming pairs with LeftChop, not Right.
- • If Count is greater than or equal to the string's length, an empty string is returned.
Signature
static FString RightChop(const FString& SourceString, int32 Count) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| SourceString | const FString& | The string to chop. | — |
| Count | int32 | The number of characters to remove from the start. | — |
Return Type
FString Example
Strip a known prefix C++
FString Trimmed = UKismetStringLibrary::RightChop(TEXT("/Game/Maps/Level01"), 6);
// Trimmed == "Maps/Level01" Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?