Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h |
Include |
#include "UObject/UObjectGlobals.h" |
Source |
/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp |
Given a display label string, generates an FName slug that is a valid FName for that label. If the object's current name is already satisfactory, then that name will be returned. For example, "[MyObject]: Object Label" becomes "MyObjectObjectLabel" FName slug.
The generated name isn't guaranteed to be unique.
The generated object name
Parameter |
Description |
---|---|
DisplayLabel |
The label string to convert to an FName |
CurrentObjectName |
The object's current name, or NAME_None if it has no name yet |