英文:
Why will my TextMeshProUI text not update?
问题
I recently started gamedev using Unity, and I've run into the weirdest problem. I can not for the life of me make my PlayerName TextMeshProUI element in my BattleHud script update to the value of the string "name".
英文:
I recently started gamedev using Unity, and I've run into the weirdest problem. I can not for the life of me make my PlayerName TextMeshProUI element in my BattleHud script update to the value of the string "name".
I tried many different ways of updating, including the ways attached
答案1
得分: 1
"Setdata"函数会立即启动吗?如果这个函数在第一帧调用,我认为这个问题是(名称 = "text")<- 这个函数在Setdata函数之后启动。
英文:
is "Setdata" function will start instantly? if this fuction will call first frame. I think this problem is (name = "text") <- this function is start after Setdata function.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论