Description
Index into the global name table pointing to the case-preserved version of the string, used when converting the name back to its original mixed-case form. Access via GetDisplayIndex().
Caveats & Gotchas
- • Only present in memory when WITH_CASE_PRESERVING_NAME is defined (editor and debug builds). In shipping builds the member does not exist and GetDisplayIndex() returns ComparisonIndex directly.
- • GetDisplayIndex() must not be called on a name constructed with ENoInit — the field contains garbage and the validity check inside GetDisplayIndex() may assert.
Signature
FNameEntryId DisplayIndex; Example
Retrieve the original-case name string C++
FName MyName(TEXT("MyObject"));
FNameEntryId DisplayId = MyName.GetDisplayIndex();
const FNameEntry* Entry = FName::GetEntry(DisplayId);
TCHAR Buffer[NAME_SIZE];
Entry->GetName(Buffer);
UE_LOG(LogTemp, Log, TEXT("Original case: %s"), Buffer); Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?