位置: 编程技术 - 正文

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

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

  • 资产负债表债务法核算所得税
  • 租办公室自己装修可以拆走吗
  • 出口退税购入的商品进项税怎么处理
  • 装修公司财务报销制度和流程
  • 年报会计师审计费用
  • 小规模10万元免税
  • 本年支付 历年支付
  • 加计扣除是什么意思举例说明农产品
  • 物流企业账务流程
  • 抵款车辆低价卖给职工账务处理:
  • 农产品为什么价格低
  • 作为一个财务 月末要做什么
  • 担保费和评审费计入什么科目
  • 不能确认收入的应收账款怎么做账
  • 管理费用是进项还是销项
  • 募集资金怎么算
  • 碎石需要技术吗
  • 个人所得税申报是什么意思?
  • 建筑业交税会计分录
  • 税前扣除有标准的项目及标准有哪些?
  • 买二手车转让费一般要多少钱
  • 资产置换会计处理办法
  • 企业稀释股份
  • 怎么计算房产税率
  • 佣金可以开票吗
  • 开电脑店几年搞活动好吗
  • mac安装软件不用密码
  • 为什么预付账款是流动资产
  • 产品作为样品账务处理
  • 苹果mac系统桌面空间不够
  • 原版win10系统安装方法
  • 曼哈顿2021
  • 委托加工物资企业原材料都是自己采购
  • 高新企业政府补贴怎么入账
  • 自创商誉是否能入账
  • 购入固定资产入账价值包括增值税吗
  • php7数据库操作
  • 苏门答腊岛海岸线多少
  • 异常生物见闻录
  • 机器学习中的数据预处理方法与步骤
  • 什么是市盈率和市净率,谈谈你对两个指标的理解
  • CV攻城狮入门VIT(vision transformer)之旅——VIT原理详解篇
  • thinkphp框架设计原理
  • jquery+thinkphp实现跨域抓取数据的方法
  • python opencv如何获取图片尺寸
  • 工会经费计提的会计分录
  • 月末库存商品结转成本怎么算
  • 新合同旧合同的法律依据
  • 税盘抵扣怎么做分录
  • 建筑企业的收入特点有哪些
  • 通过法院拍卖取得的房屋需要法院下确认裁定吗
  • 哪些情况可以开立基本账户
  • 人力资源行业税收优惠
  • 跨月的增值税普通发票能作废吗
  • 一般纳税人的增值税税率
  • 纳税人发生应税行为
  • 个人转让不动产交印花税吗
  • 代销手续费怎么做账
  • 投资购入房产会亏钱吗
  • 建造厂房流程
  • 产品质量问题扣款账务处理
  • 赠送客户样品记什么费用
  • 滴滴出行怎么开纸质发票
  • linux磁盘格式化后一定会清空数据吗
  • window8所有程序在哪
  • Win10打开浏览器就未响应
  • js时间范围
  • 游戏输入法安卓
  • 手机背光面板
  • unity2d shader
  • python的queue
  • numpy入门
  • js的文件操作
  • jQuery实现table中的tr上下移动并保持序号不变的实例代码
  • js获取设备
  • 注会证可以挂靠吗?挂靠合法吗?
  • 钢材出口关税税率是多少
  • 顺丰快递的开票历史如何删除
  • 下载广东省电子税务局appp
  • 婚姻登记处婚俗改革宣传
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设