Unreal入门,蓝图中打印HelloWorld

image

1. 打开当前地图的关卡蓝图

image

2. 添加PrintText蓝图节点,设置Hello World!文本,然后连线

image

image

image

2.1 输出格式化字符串

  • 添加格式化字符串蓝图节点
    image

  • 设置format内容为 Hello world!{var},这里{var}为占位,多复制几个就多几个占位引脚,名字随便取不重复的
    image
    image
    image
    image

参考

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/

posted @ 2023-11-14 20:51  BuzzWeek  阅读(121)  评论(0编辑  收藏  举报