解决Unity中的Text有空格导致换行问题
直接上效果图
如果使用的是搜狗输入法的全角模式,可以直接在scene面板看到实时效果,其它方式需要在代码中添加。
var textCom = GameObject.Find("Text").GetComponent<Text>();
textCom.text = "\u3000 + textCom.text;
发布者:admin,转转请注明出处:http://www.yc00.com/web/1754942120a5218323.html
评论列表(0条)