位置: 编程技术 - 正文

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

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

  • 未开发票如何确认收入并进行申报
  • 税负率是含税还是不含税
  • 公司刻一套章子多少钱
  • 旅游费用可以报销吗
  • 委托收款税务认可吗
  • 房地产企业土地成本分摊方法
  • 什么情况下是应收账款
  • 广告物料制作费公司怎么做账
  • 商业企业购货分录
  • 基建账的年终结转
  • 企业多扣个税怎么处理
  • 有开发票就要交印花税吗?
  • 购货发票未到
  • 个体工商户税务登记证需要什么资料
  • 建筑企业的职工由于不服管理违反规章制度
  • 现金流量净额为负说明什么
  • 总公司分派人员到分公司工作
  • 华为手机麦克风在哪里
  • 营运资金主要包括什么
  • 投入产出法怎么求逆矩阵
  • 汽车销售公司购买车辆会计科目
  • 无形资产资本化和费用化的区别
  • 生产成本结转库存商品的数量
  • mac怎么保存
  • 发票与付款金额不一致违法吗
  • 网线超五类好还是六类好
  • php实现微信发红包的方法
  • 企业对员工罚款的法律依据
  • PHP:finfo_buffer()的用法_fileinfo函数
  • FUXA个人学习总结(一)
  • Calanques de Piana岩层上的一个心形洞,法国科西嘉岛 (© joningall/Getty Images)
  • 国有土地租赁合同规定多少年
  • php深度分析
  • php面向对象是什么意思
  • vue引用类型
  • 知识图谱的构建方法有两种
  • nmcli命令全称
  • 当月交印花税会计分录
  • 装修的工程款账务处理
  • phpcms官网打不开
  • 怎么实现宏的功能
  • 银行存款转银行存款 什么凭证
  • SQLite中重置自动编号列的方法
  • 代开运输发票是否会引起双重征税?
  • 一般纳税人材料票是几个点
  • 固定资产原值和净值在报表哪里看
  • 计提怎么理解
  • 销售并提供安装服务怎么开票
  • 车辆维修费发票图片
  • 基本户开立账户清单
  • 公司如何交五险一金
  • 增值税专用发票的税率是多少啊
  • 房产税征收标准2020
  • 租地青苗补偿问题
  • 销售废旧物资账务处理
  • 收到技术服务费的账务处理
  • 医院产生的相关费用
  • 固定制造费用包括变动制造费用吗
  • 报关单填制的运费怎么算
  • 明细分类账的格式与登记方法
  • 银行余额调节表电子版
  • 内部审计人员独立性
  • mysql索引数据结构有哪些
  • window10注册表
  • win10飞行模式怎么关掉没有图标
  • osx怎么用
  • windows多屏显示
  • win8.1开不了机怎么办
  • Extjs4 消息框去掉关闭按钮(类似Ext.Msg.alert)
  • linux中rpm命令详解
  • centos 开机启动程序
  • excel password recovery5.0注册码
  • python 操作微信
  • node.js连接mysql的数据怎么可视化
  • sudo提权漏洞
  • android 底部选择菜单
  • 单位自有住房免增值税吗
  • 如何提高税收执法质效管理
  • 抚州到崇仁火车时刻表
  • 合规管理的基本要求
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设