位置: 编程技术 - 正文

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

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

  • 动态市盈率与静态市盈率区别百度百科
  • 税后营业利润和利润总额的区别
  • 如何开银行卡账户
  • 可供出售金融资产公允价值变动
  • 企业收到银行汇票退回的多余款项
  • 离岸外包和国内外包区别
  • 私募基金管理公司
  • 购进货物既用于应税项目又用于免税项目的
  • 差旅费出差补助如何计算天数
  • 税前扣除的职工教育经费
  • 应收账款补提坏账是什么意思
  • 个人借款到期未还诉讼时效
  • 冷库租赁收入税率
  • 劳务费差额征税的账务处理
  • 金税盘增值税普通发票红冲操作流程
  • 增资印花税增加哪个税目
  • 单位缴交的社保和医保还要交其他费用吗
  • 销售购物卡如何开票
  • 季度报税过了怎么办
  • 蓝屏代码0xc000000f
  • w10关闭
  • 工程结算如何进行
  • 在建工程及时结转重要性
  • 使用mac什么意思
  • 房地产开发公司组织架构
  • 房地产项目如何通过抖音宣传
  • 应付账款与其他应付款科目调整
  • 售后租回交易形成融资租赁会计处理
  • php精度丢失
  • php实现邮件发送
  • yolov5m
  • 安装工程在工程建设中的主要内容有哪些
  • 广告费可以结转几年扣除
  • 前端v3
  • 核心书评价格
  • 保理属于什么行业分类
  • python datetime把日期转换字符串
  • 电子发票开出后如何查看
  • 社保断交一个月但是后面正常缴费
  • 个人对公付款
  • vuex 3
  • 补充医疗相关政策
  • PostgreSQL中使用dblink实现跨库查询的方法
  • 织梦cms怎么样
  • 旅行社差额征税税率5%
  • 异地预交个人所得税
  • mysql 中文乱码 识别
  • 营业净利率和总资产周转率正相关
  • 收入增长率计算器
  • 商业汇票的承兑银行必须具备下列条件
  • 收到退回的增值税,应当作为营业外收入核算对吗
  • 增值税进项税转出有哪些
  • 损益类会计科目有哪些
  • 管理费用记错了跨年了怎么调整
  • 黄金以旧换新是不是不划算
  • 加工企业如何计税
  • 注销基本户必须注销专户吗
  • 汽车销售企业的资产有哪些
  • 现金日记账和银行存款日记账必须逐日结出余额
  • mysql5.7.
  • mysql数据源
  • sqlserver怎么恢复数据
  • winxp如何禁用u盘
  • win8.1系统安装教程
  • xp启用telnet
  • macbook外接多个显示器
  • windows8怎么搜索文件
  • win10输入法设置快捷键
  • jquery图片轮播无缝连接
  • 初识年岁尚温柔 小说 免费
  • Node.js中的什么模块是用于处理文件和目录的
  • unity linux arm
  • python数据导出
  • window.parent与window.openner区别介绍
  • 安卓框架是什么怎么用
  • 如何使用wordpress
  • 网上报税失败怎么办
  • 如果快递没有按时发货东西变质怎么办
  • 土地增值税分期清算条件?
  • 云南省国税发票查询真伪查询
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设