How to use strings in Unreal C++, TCHAR, FString, FName, and FText - UE C++ Tutorial
Автор: enigma tutorials
Загружено: 2025-08-30
Просмотров: 387
Strings in Unreal Engine 5, and text in general.
Here we explore how Unreal handles strings in C++ and review standard C++ string handling.
Unreal covers localization and translation using the FText class.
FName are fast lightweight hashed strings useful for gameplay IDs.
FString is a more standard string, that maintains a array of TCHAR characters.
TCHAR is similar to char or wchar_t, but abstracted for Unreal.
TEXT("") macro helps you avoid platform specific behavior and generates appropriate text for you.
0:00 Reviewing Standard C++ string handling
1:05 Unreal TCHAR* and the TEXT("") macro
2:22 The FString class
3:40 FString - Printf and StringView mention
4:03 FString - usefulness
4:12 FName class
5:37 FText class
6:02 FText - Localization with NSLOCTEXT
7:12 FText - Localization with LOCTEXT and LOCTEXT_NAMESPACE
7:42 FText - Formatting Localized Text (Standard and FFormatNamedArguments)
9:35 Closing Summary
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: