位置: 编程技术 - 正文

unity3d---GUI基础(unity gui)

编辑:rootadmin
1、Label:Label (position : Rect, text : string) : voidLabel (position : Rect, image : Texture) : voidLabel (position : Rect, content : GUIContent) : voidLabel (position : Rect, text : string, style : GUIStyle) : voidLabel (position : Rect, image : Texture, style : GUIStyle) : voidLabel (position : Rect, content : GUIContent, style : GUIStyle) : void public Texture2D img;void OnGUI() { GUI.Label(new Rect(, , , ), "Hello World!"); GUI.Label(new Rect(,,img.width,img.height),img); }2、BoxBox (position : Rect, text : string) : voidBox (position : Rect, image : Texture) : voidBox (position : Rect, content : GUIContent) : voidBox (position : Rect, text : string, style : GUIStyle) : voidBox (position : Rect, image : Texture, style : GUIStyle) : voidBox (position : Rect, content : GUIContent, style : GUIStyle) : void public Texture2D img;void OnGUI() { GUI.Label(new Rect(, , , ), "Hello World!"); GUI.Label(new Rect(,,img.width,img.height),img); }3、ButtonButton (position : Rect, text : String) : boolButton (position : Rect, image : Texture) : boolButton (position : Rect, content : GUIContent) : boolButton (position : Rect, text : String, style : GUIStyle) : boolButton (position : Rect, image : Texture, style : GUIStyle) : boolButton (position : Rect, content : GUIContent, style : GUIStyle) : bool GUI.Button(new Rect(, , , ), "Hello World!");GUI.Button(new Rect(, , img.width, img.height), img);GUI.Button(new Rect(, , , ), new GUIContent("我有提示", "恭喜你中奖了!"));// 在旁边的位置显示提示信息。GUI.Label(new Rect(, , , ), GUI.tooltip);//按钮上面有图片GUI.Button(new Rect(, , , ), new GUIContent("我有提示", img));4、RepeatButtonRepeatButton (position : Rect, text : String) : boolRepeatButton (position : Rect, image : Texture) : boolRepeatButton (position : Rect, content : GUIContent) : boolRepeatButton (position : Rect, text : String, style : GUIStyle) : boolRepeatButton (position : Rect, image : Texture, style : GUIStyle) : boolRepeatButton (position : Rect, content : GUIContent, style : GUIStyle) : bool GUI.RepeatButton(new Rect(, , , ), "Hello World!");GUI.RepeatButton(new Rect(, , img.width, img.height), img);GUI.RepeatButton(new Rect(, , , ), new GUIContent("我有提示", "恭喜你中奖了!"));// 在旁边的位置显示提示信息。 GUI.RepeatButton(new Rect(, , , ), GUI.tooltip); GUI.RepeatButton(new Rect(, , , ), new GUIContent("我有提示", img));5、TextFieldTextField (position : Rect, text : String) : StringTextField (position : Rect, text : String, maxLength : int) : StringTextField (position : Rect, text : String, style : GUIStyle) : StringTextField (position : Rect, text : String, maxLength : int, style : GUIStyle) : String string str="Hello World";str = GUI.TextField(new Rect(, , , ), str);str = GUI.TextField(new Rect(, , , ), str, );6、PasswordFieldPasswordField (position : Rect, password : String, maskChar : char) : StringPasswordField (position : Rect, password : String, maskChar : char, maxLength : int) : StringPasswordField (position : Rect, password : String, maskChar : char, style : GUIStyle) : StringPasswordField (position : Rect, password : String, maskChar : char, maxLength : int, style : GUIStyle) : String "*"[0]等价于'*'string str= "请输入密码:";str= GUI.PasswordField(new Rect(, , , ), str, "*"[0]);str= GUI.PasswordField(new Rect(, , , ), str, "*"[0],);7、TextAreaTextArea (position : Rect, text : String) : StringTextArea (position : Rect, text : String, maxLength : int) : StringTextArea (position : Rect, text : String, style : GUIStyle) : StringTextArea (position : Rect, text : String, maxLength : int, style : GUIStyle) : String string str = "aaaanbbbb";str = GUI.TextArea(new Rect(, , , ), str);str = GUI.TextArea(new Rect(, , , ), str, );更多精彩请关注:

推荐整理分享unity3d---GUI基础(unity gui),希望有所帮助,仅作参考,欢迎阅读内容。

unity3d---GUI基础(unity gui)

文章相关热门搜索词:unity gui教程,unity3d菜鸟入门,unity guid,unity3d菜鸟入门,unity3d基础教程,unity3d gui,unity3d的,unity3d基础教程,内容如对您有帮助,希望把文章链接给更多的朋友!

数据库的基本操作 命令行1、显示当前数据库服务器中的数据库列表:mysqlSHOWDATABASES;2、建立数据库:mysqlCREATEDATABASE库名;3、建立数据表:mysqlUSE库名;mysqlCREATETABLE表名(字段

unity集成facebook时,openssl android key 的一个解答 Q:IamtryingtointegratefacebookSDKforunity.

unity学习之GUI 今天我们学习了GUI即用户图形界面GUI的几个方法。LabelLabel(position:Rect,text:string):voidLabel(position:Rect,image:Texture):voidGUI.Label(newRect(,,,),HellowWorld);Texture2

标签: unity gui

本文链接地址:https://www.jiuchutong.com/biancheng/377313.html 转载请保留说明!

上一篇:获取NGUI的输入框内容的方法(获取input输入值)

下一篇:数据库的基本操作(数据库的基本操作实验报告)

  • 汇算清缴所得税退回做账
  • 减免增值税如何结转
  • 金税四期税务机关一局式
  • 印花税应计什么科目?
  • 自查补交以前年度增值税怎么做账
  • 销售不动产税率9%还是5%
  • 税盘收费吗
  • 生产成本怎么计算
  • 收到以前年度银行手续费发票
  • 去参加博览会的英文
  • 差旅费包括哪些费用
  • 增值税专用发票几个点
  • 已报废的固定资产
  • 公司向税务局缴纳环保税
  • 两个公司的现金怎么交税
  • 公对公房产转让税费
  • 受托委托加工物资成本包括什么
  • 采购单录入、接收分配会计分录怎么写?
  • 年薪制有什么好处
  • 融资租赁的租金包括
  • 作废的发票怎么复制开新票
  • 印花税计提比例是多少
  • 现金流量表的填写视频
  • 成本费用的结转方法
  • 印花税申报数据来源
  • 利息收入 开票
  • 费用转入本年利润的哪一方
  • 苹果mac怎么复制文件到u盘 免费软件
  • 主营业务收入和营业收入的区别
  • steam怎么退款申请退款要多久
  • 认缴资本 实收资本
  • php socket_read
  • 企业定率征收的税率是多少
  • 合并报表期初数可以直接抄上年数吗
  • chrome新建标签为打开特定网页
  • 酒店代销合同范本
  • 白鹤芋好养活吗
  • php session_start
  • 会计准则对企业行为的影响分析论文
  • 行政事业单位资产负债表
  • php判断是手机端还是端口
  • yii2框架的优缺点
  • 出口货物不退税进项可以开具普通发票吗
  • vscode搭建vue项目
  • php floatval
  • 产成品和库存商品两个一级科目怎么填
  • 汇算清缴退税的账务处理
  • 先款还是先票
  • vue移动组件
  • 织梦如何使用
  • 现金预算表中的归还借款和支付利息怎么算
  • 差旅费算直接人工吗
  • 什么是一般增值税纳税人
  • 累计折旧会影响净残值吗
  • 交强险怎么报警
  • 查看、修改mysql的用户名和密码
  • 事业单位净资产变动表
  • 因质量问题免费退货
  • 小规模纳税人企业所得税征收标准
  • 纳税人发生应税行为
  • 研发支出资本化支出期末怎么处理
  • 工程施工合同如何核算收入成本?
  • 结转成本附什么附件
  • 项目所在地个税网上怎么报
  • 可以先抵扣下个月工资吗
  • 小规模纳税人可以抵税吗
  • 企业盘盈盘亏的固定资产先要计入待处理财产损益
  • 为员工买的商业保险怎么做账
  • 空调的折旧年限是多少年的
  • 什么是个人独资企业营业执照
  • 清理系统休眠文件
  • linux如何修改文件创建时间
  • 电脑dbs是什么
  • win10系统如何禁用触摸板
  • winxp优化设置
  • Win10系统安装步骤
  • Unity3D游戏开发(第2版)
  • JavaScript中String.match()方法的使用详解
  • JavaScript中getUTCMinutes()方法的使用详解
  • 国企重组裁员政策解读
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设