Unreal入门,蓝图中打印HelloWorld
1. 打开当前地图的关卡蓝图
2. 添加PrintText蓝图节点,设置Hello World!文本,然后连线
2.1 输出格式化字符串
-
添加格式化字符串蓝图节点
-
设置format内容为
Hello world!{var}
,这里{var}为占位,多复制几个就多几个占位引脚,名字随便取不重复的
参考
https://docs.unrealengine.com/4.27/en-US/BlueprintAPI/Utilities/Text/PrintText/
https://docs.unrealengine.com/4.27/zh-CN/ProgrammingAndScripting/Blueprints/TechnicalGuide/Guidelines/
https://docs.unrealengine.com/5.1/zh-CN/text-localization-in-unreal-engine/