Navigation
API > API/Runtime > API/Runtime/Core
Description
Given a display label string, generates a slug string that only contains valid characters for an FName. For example, "[MyObject]: Object Label" becomes "MyObjectObjectLabel" FName slug.
| Name | SlugStringForValidName |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/UnrealString.h.inl |
| Include Path | #include "Containers/UnrealString.h.inl" |
FString SlugStringForValidName
(
const FString & DisplayString,
const TCHAR * ReplaceWith
)
The slugged string
Parameters
| Name | Remarks |
|---|---|
| DisplayLabel | The label string to convert to an FName |