unity3d - 如何更改 Text Meshpro Inputfield 的颜色文本
问题描述
使用 Inputfield,我们可以通过以下方式轻松更改文本颜色:
Text text = _inputfield.transform.FindChild("Text").GetComponent<Text>();
text.color=Color.Red;
我如何使用 TMP_Inputfield(Inputfield Text Meshpro)来做到这一点
解决方案
推荐阅读
- node.js - 在 Serverless 中本地调用另一个 Lambda 的 lambda
- javascript - 模拟时钟的指针不旋转
- javascript - 将 Localhost Asp.net mvc 控制器 json 连接到前端
- javascript - 查找不在标签内的字符串的所有实例?
- google-sheets - 迭代拆分单元格
- java - 遍历 resultSet 只给出表中的最后一个对象
- angular - this.db.object 的 firestore 等价物是什么?
- jupyter-notebook - Papermill + Scrapbook:是否可以在 papermill 笔记本中重新粘贴文本?
- excel - 如何在 Excel VBA 中定义动态变量?
- tensorflow - 获得图像的 one hot 编码表示和计算损失