位置: 编程技术 - 正文

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

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

  • 个税申报数是按应发数还是实发数进行申报?
  • 个税全员全额扣缴申报指什么
  • 车辆备注栏备注怎么填
  • 所得税亏损年限有什么规定
  • 企业股权转让留存收益可以扣除吗
  • 简易征收如何入账
  • 银行承兑个人可以接受吗
  • 加油站固定资产折旧年限
  • 上年的应收帐款在本年度如何录入?
  • 公司能否投资非盈利组织?如何做账
  • 营改增之前固定资产可以抵扣吗
  • 公司办的中石化油卡可以查视频记录吗
  • 房地产企业汇算清缴政策解析
  • 提供建筑服务应在发票备注栏注明
  • 高新企业的研究方向
  • 个税手续费收入要交税吗
  • 挂名财务负责人会坐牢吗
  • 上海中级会计报名入口
  • 货运发票与运输发票的区别
  • 发票作废什么时候生效
  • 不同税率的发票可以合并入账吗
  • win11怎么设置桌面显示我的电脑
  • 收到应收票据会计分录
  • ubuntu20.04安装make
  • mp3最早什么年代流行
  • 税法的构成要素中,()是税法最基本的要素
  • 工程竣工决算会计账务处理
  • 怎么核算购进商品
  • 设备租赁会计科目
  • 个人所得税有哪些可以减免的项目
  • 集团关联企业间关联交易对账单
  • 企业之间拆借资金
  • docker部署webdav
  • 验证码php代码
  • 固定资产清理属于非流动资产吗
  • 补提企业所得税财务报表应该如何调整
  • 发票开错时,如何做账务处理?
  • 用友重新安装步骤
  • 减免税在借方如何结转
  • SQLITE3 使用总结
  • 什么时候计提所得税费用会计分录
  • 公司增资该怎么做账
  • 公积金贷方有余额如何做调整分录
  • 非营利组织接受捐赠收入要交企业所得税吗
  • 成本法和权益法的相同点
  • 法人可以是办税人员吗
  • 融资租赁取得的机器设备的账务处理
  • 施工企业简易计税的依据
  • 房租增值税专用发票可以抵扣吗
  • 土地使用权作为存货怎么入账
  • 国家法定滞纳金规定
  • 人力资源外包服务平台
  • 去银行更换帐户需要什么
  • 银行手续费没拿可以退吗
  • 招标代理服务费计算器在线
  • 待处理财产损益借贷方向
  • 预收账款是什么资产
  • 如何建立一个
  • sql server数据库中的null(空值)
  • ubuntu lnmp环境搭建
  • xp调出输入法
  • win8旗舰版官方下载
  • 装win8.1
  • javascriptdom编程
  • 及将上市的手机
  • 提高网站性能
  • python用while循环求π的值
  • linux同名文件
  • bat 远程连接
  • shell脚本计算执行时间
  • javascriptcsdn
  • 税务局通知自查该怎么办理
  • 供暖配套费
  • 安徽营业执照网上怎么申请
  • 重庆九龙坡区商务委员会
  • 苏州公积金密码怎么改
  • 技术合同备案要求
  • 现任新疆兵团政治部主任
  • 所得税与增值税区别
  • 民族贸易产生的原因
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设