Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Containers
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Containers/UnrealString.h.inl |
| Include | #include "Containers/UnrealString.h.inl" |
UE_STRING_CLASS SlugStringForValidName
(
const UE_STRING_CLASS & DisplayString,
const TCHAR * ReplaceWith
)
Remarks
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. The slugged string
Parameters
| Name | Description |
|---|---|
| DisplayLabel | The label string to convert to an FName |