位置: 编程技术 - 正文

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

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

  • 房产税的计税基础包括契税吗
  • 售卖会卡,达标返现,怎么进行账务处理
  • 工程中常见的土方工程有哪些
  • 汽车保险专用发票可以抵扣吗
  • 企业转让无形资产使用权取得的收入应计入营业外收入
  • 专用发票抵扣联放在凭证中吗
  • 净现金流量率计算公式
  • 企业销售商品的业务有什么特点
  • 金蝶财务软件如何打印凭证
  • 银行卡收单机构外包业务管理指引
  • 跨年成本发票红冲怎么做会计分录
  • 农林牧渔业税务优惠
  • 代开专用发票缴纳的增值税需要计提吗?
  • 出口退税备案信息
  • 小规模纳税人增值税怎么算
  • 国家对发票开具时间有没有具体规定?
  • 以旧换新增值税税率是多少
  • 盘亏固定资产会计处理
  • 分红个人所得税怎么交
  • 公司注销要交分红税吗
  • 发生额对照表
  • 或有事项基本确定
  • win10开机黑屏几秒
  • linux怎么操作
  • 未分配利润可留待以后年度进行分配的当年结余利润
  • 员工出差补贴怎么入账
  • kb4503269补丁安装失败解决办法
  • 公司购买二手车需要什么手续
  • php的js
  • 会计差错更正账务处理会计分录
  • 销售退回的增值税怎么处理
  • 拆迁以后
  • php验证身份证号
  • java上传文件 multipartfile
  • ln s命令
  • php access_token
  • linux中login命令
  • 企业所得税是怎么产生的
  • 收到借款时 会计科目怎么做
  • 购销合同印花税税率
  • php中使用什么函数来定义常量
  • 机关单位差旅费
  • MySQL发生系统错误2和5
  • 财务费用的相关认定
  • 代收电费的增值税怎么算
  • 教育行业有主营业务吗
  • 发票可以付款前开吗
  • 承兑能随便给别人看吗
  • 接待客人后的感受和过程
  • 存货周转率特别高说明什么
  • 自助餐怎么核算成本
  • 物流辅助服务包含哪些内容
  • 建筑企业收挂靠公司的管理费如何做账?
  • 房开企业预缴增值税
  • 跨年多计提的工资如何处理
  • 代收代缴水电费如何开票
  • 投资收益的账务怎么处理
  • 二类银行卡是什么卡
  • 发票作废才能验旧吗
  • 资本公积金什么时候提取
  • 新建企业需要什么手续
  • sqlserver将查询结果作为临时表
  • MySQL使用show status查看MySQL服务器状态信息
  • 怎么判断win7还是win10
  • XP系统连接VPN提示错误633:调制解调器已在使用的解决方法图文教程
  • 深入Windows 第七版 第二部分
  • 进程死锁原因
  • windows运行在哪
  • mac怎么管理字体大小
  • perl读取文件内容逐行处理
  • netcfghlp怎么安装
  • vue实现滚动条
  • Developing for Android, III: The Rules: Performance
  • 修改应用程序图标
  • 安卓手机怎么自定义
  • 国家税务局网发票查验
  • 纳税申报表作废了怎么重新报?
  • 社保银行代扣收费吗
  • 广州电子税务局财务报表在哪里查询
  • 湖北省叉车考试题库
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设