注册 登录
编程论坛 C# 论坛

GUI未包含Label组件怎么办

aichengxiang 发布于 2017-04-13 14:24, 1774 次点击
只有本站会员才能查看附件,请 登录
3 回复
#2
aichengxiang2017-04-13 14:41
不只是Label没有,Button,texfield什么的都没有
#3
aichengxiang2017-04-13 14:43
只有本站会员才能查看附件,请 登录
#4
yhlvht2017-04-13 21:05
GUI是自己定义的类,在GUI这个类中,确实没有定义Lable, Button,TexField这些东西,假设Lable这些定义在父类MonoBehaviour中,且为静态(static)的,并且不为私有private,应该使用MonoBehaviour.Lable
如果定义在父类,且为非静态的,并且不为私有private, 应该使用this.Lable
1