位置: 编程技术 - 正文

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输入值)

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

  • 电子记账凭证需要划线吗
  • 企业收到税收返还会计分录
  • 税种认定网上操作流程
  • 企业停产是否需要自行监测
  • 无法收回的应收账款情况说明
  • 开具增值税专用发票怎么开
  • 小规模纳税人附加税减免政策2023
  • 土建税率是多少
  • 辅导期一般纳税人预缴增值税
  • 社保发票是普票还是专票
  • 开具增值税专用发票和普通发票的区别
  • 商品流通企业进货费用金额较小的计入什么科目
  • 营改增贷款服务包括哪些
  • 税控专用设备全额抵扣
  • 操作系统不同
  • win10 microsoft store怎么改变下载途径
  • 违约方能否要求返还价款
  • 收到非税收入一般缴款书开发票吗
  • 项目盈利后收到短信
  • 预收款交税未开发票申报表怎么
  • 约定抵销与法定抵销的区别
  • 送给经销商的祝福语
  • 潜亏挂账是什么意思
  • 手相算命图解大全女
  • 电脑开机显示屏显示无信号黑屏怎么办
  • 直接转销法账务处理
  • 企业新增股东投标流程
  • 在暴风雪中翻译
  • 先预付货款,货到了怎么做账
  • 以前年度的销售退回,冲减哪年的
  • 学生个人网页制作html5
  • web自动化selenium实战项目
  • 网络分割算法
  • word element
  • 估价入库怎么记账
  • day11-Servlet01
  • 循环logo
  • mysql select语法的使用
  • 调整未分配利润影响所得税吗
  • 管理费用主要核算内容包括什么?
  • 水利基金可以不计提吗
  • 银行承兑汇票是商业汇票吗
  • 如何把excel数据导入到word表格
  • 不动产租赁开票税率
  • 会计学中递延收益的概念
  • 多认证的发票怎么做账
  • 哪种情形的货物或者服务可以采用竞争性谈判方式采购
  • 老板垫付货款
  • 个人所得税如果不补税会怎么样
  • 社保如何做分录报销
  • 租金收入确认收入时间
  • 结余资金结转申请怎么写
  • 满减送的购物券在哪里看
  • 新成立的分公司怎么样
  • 建账的要点
  • mysql alter table命令修改表结构实例
  • windows vista怎么样
  • 在windows 10
  • 电脑系统win7怎么看
  • ubuntu20.04升级20.10
  • 电脑桌面图标有虚影怎么回事
  • win7窗口大小怎么设置
  • win8系统教程
  • linux中find命令用法
  • Unity3D游戏开发引擎
  • javascript面向对象编程
  • jquery 选择
  • node.js中fs模块
  • AndroidAnnotations 自定义控件 ant编译 找不到类
  • Python安装教程windous7
  • scrapy python
  • js 三元
  • 安卓 触摸屏
  • 安卓数据储存方式有哪些
  • Python编程中装饰器的使用示例解析
  • 浙江发票查验不了什么原因
  • 济南个税起征点是多少2021
  • 贵州网上税务大厅官网
  • 现在哪个保险公司车险好
  • 实体经济的行业有哪些
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设