SlugStringForValidName

Syntax

FString SlugStringForValidName
(
    const FString & DisplayString,
    const TCHAR * ReplaceWith
)

Remarks

Given a display label string, generates an FString slug that only contains valid characters for an FName . For example, "[MyObject]: Object Label" becomes "MyObjectObjectLabel" FName slug.

Returns

The slugged string

Parameters

Parameter

Description

DisplayLabel

The label string to convert to an FName

References

Module

Core

Header

Runtime/Core/Public/Containers/UnrealString.h

Source

Runtime/Core/Private/Containers/String.cpp