ue4c++格式化字符串
原创文章禁止转载
www.alom.com.cn
ue4c 格式化字符串
https://alom.com.cn/20220727/ue4/2022-07-27-ue4字符串格式化/
函数说明
- Format the specified string using the specified arguments. Replaces instances of {0} with indices from the given array matching the index specified in the token
- @param InFormatString A string representing the format expression
- @param InOrderedArguments An array of ordered arguments that match the tokens specified in InExpression
- @return A string containing the formatted text
UE_NODISCARD static FString Format(const TCHAR* InFormatString, const FStringFormatOrderedArguments& InOrderedArguments);
例子
TArray<FStringFormatArg> FormatArray;
FormatArray.Add(FStringFormatArg(1));
FormatArray.Add(FStringFormatArg("2"));
FString fmt = FString::Format(TEXT("arg1 {0} arg2 {1}"), FormatArray);
if (GEngine)
{
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::White, fmt);
}
这篇好文章是转载于:学新通技术网
- 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
- 本站站名: 学新通技术网
- 本文地址: /boutique/detail/tanhfhfkkc
系列文章
更多
同类精品
更多
-
微信小程序没声音怎么办
PHP中文网 06-15 -
excel图片置于文字下方的方法
PHP中文网 06-27 -
怎样阻止微信小程序自动打开
PHP中文网 06-13 -
微信人名旁边有个图标有什么用
PHP中文网 03-11 -
微信提示登录环境异常是什么意思原因
PHP中文网 04-09 -
微信获取用户openid失败怎么办
PHP中文网 03-26 -
photoshop怎么把印章抠出并放在另一张图上
PHP中文网 06-15 -
EhViewer(E绅士)最新版_ehviewer白色版彩色版_Ehviewer显示网络错误怎么办?e站进不去了怎么办
Evanpatchouli 09-19 -
Excel筛选和排序是灰色的怎么办
PHP中文网 06-22 -
photoshop蒙版画笔没反应怎么办
PHP中文网 06-24