[Unity][UGUI]Text部件出现BUG显示不了

有可能的原因是,设置了对于 Text的Color 变量。

但是 public color32 _color;是透明的。

text.gameobject.GetComponentsInChildren<Text>().color = _color;//获得该物体 子类的 Text组件,并设置其Text组件的颜色

扫描二维码关注公众号,回复: 2667263 查看本文章

猜你喜欢

转载自blog.csdn.net/BuladeMian/article/details/81542408