<Unity 3D工作笔记>脚本中勾选与取消勾选脚本,代码中的实现!

来源:互联网 发布:电子屏软件图标 编辑:程序博客网 时间:2024/06/08 11:19

1、实例化脚本,选择/取消勾选!

 

UILabel Label_note;UILabel Label_of;Label_of = Label_note.GetComponent<UILabel>();//勾选脚本Label_of.enabled = true;