Unity Text组件空格换行问题

问题

Text组件内容中输入空格,会自动换行。

解决方法

使用\u00A0代替空格
例如:

str="你好"+" ";
替换为 str="你好"+"\u00A0"

你可能感兴趣的:(Unity经验,#,Unity插件使用,Text)