位置: 编程技术 - 正文

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

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

  • 国税如何零申报
  • 纳税会计的要素有
  • 未交增值税借贷方负数表示
  • 从价计税消费税计算公式
  • 即征即退如何申报增值税
  • 收到扶贫款怎么做会计分录
  • 金蝶美金账户怎么开
  • 为什么生产车间地板是绿色的
  • 预缴 汇算清缴
  • 财产保险合同印花税计税依据
  • 交易性金融资产的交易费用计入哪里
  • 个体工商户需要缴纳哪些税
  • 逾期还款银行罚息怎么算
  • 货款打了未收到发票但是公司倒闭了怎么办?
  • 进项票没开过来可以先开销项票吗
  • 已备案购销合同
  • 文件夹如何更改图标
  • applepay怎么用云闪付
  • 怎么批量给指定条件加入批注
  • 网速保护功能介绍
  • 贴息贷款利息怎么入账
  • 实收资本或股本的账务处理
  • 上月暂估成本高了这个月怎么做账
  • 系统之家一键重装系统步骤
  • ct.dll
  • gst插件
  • 企业所得额不能扣除
  • 基建会计和建筑会计的区别
  • php getdate
  • 公司未成立,发起人的责任
  • 2023前端面试题csdn
  • 合同内容和开票内容不一致
  • php正则表达式验证网址
  • vuex中this.$store.commit和this.$store.dispatch的用法
  • 小规模纳税人记账需要哪些账本
  • openapi官网
  • 本月的进项票可以抵扣上月税款吗?
  • etc电子发票需要多久才能开
  • 未开票收入下月开票
  • java io读写
  • 支付国外佣金的税率多少
  • 小规模纳税人的企业所得税怎么算
  • 原始凭证的基本内容有会计分录吗
  • sql server2014使用
  • sql server如何进行安全设置
  • 车出险理赔需要什么材料
  • 民宿的房屋租赁费怎么算
  • 无偿调入的固定资产其贷方应计入
  • 实收资本需要明细科目吗
  • 中小企业的判定标准
  • 代开租金发票的税金怎样入账?
  • 什么叫特定资产和负债
  • 不动产分期抵扣表数据
  • 存货类明细分类账一般采用
  • 关于单独计价的规定
  • 生产销售库存表
  • 购买设备怎么开专票
  • 会计成本核算方法有几种类型
  • ubuntu git not found
  • win10鼠标指针在文本区很小
  • ubuntu20.04教程
  • linux参数命令
  • win10系统如何给d盘加密
  • xp清理系统的命令
  • linux的trace
  • rtlrack.exe - rtlrack是什么进程 有什么用
  • 新手如何入门
  • win10怎么旋转屏幕
  • oracle12c怎么卸载
  • 可以查杀病毒的软件
  • Python IDE PyCharm的基本快捷键和配置简介
  • jquery中的事件和事件处理有哪些
  • windows and android
  • javascript数据结构与算法
  • 第三届一带一国际高峰论坛
  • 建筑施工税务处理
  • 深圳个人税收完税证明网上打印
  • 非房地产企业土地增值税清算
  • 五证合一后工商变更完还要税务变更吗
  • 上海市税务局的电话
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设