位置: 编程技术 - 正文

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

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

  • 金税盘老是重复更新进不去
  • 缴纳印花税的会计科目
  • 生产型企业出口退税账务处理
  • 出差补贴需要纳税吗
  • 包装物租金要交消费税吗为什么
  • 有形动产租赁服务税收分类编码
  • 设备进项税额转出会计分录
  • 一般纳税人结转增值税
  • 残疾人就业保障金
  • 生产领用周转材料
  • 政府无偿划拨土地涉及的税费
  • 销售发票的会计处理
  • 给经销商的回扣如何做账?
  • 存货盘亏的分录怎么写
  • 出口企业享受增值税优惠政策
  • 国税申报填错了怎么办
  • 残疾人就业保障金怎么申报
  • 现金福利需要发票吗
  • 进口增值税内销可以抵扣吗
  • 借给其他公司借款会计分录
  • 合同取得成本与销售费用
  • 城市维护建设税属于什么税种
  • 领专票需要带什么东西
  • 净资产和净资本和营业收入
  • 企业的银行存款日记账属于
  • 报销员工午餐费怎么入账
  • 抵扣联必须当月认证吗
  • 法人变更涉及到什么
  • thinkphp怎么用
  • 公司出租房屋租金由承租方本人支付
  • PHP:preg_split()的用法_PCRE正则函数
  • 供热企业供热费收入的核算
  • WordPress中设置视频循环播放
  • 苏尼亚尼
  • gridviewcolumn
  • fasternet高效上采样模块
  • 《linux内核分析》
  • 普通发票冲红后还会有税吗
  • mac m1 安装windows
  • 新会计准则增加了哪些科目
  • 农产品进项税抵扣填报方法
  • 现金流动负债比率和流动比率一样吗
  • 下乡扶贫有补助吗
  • 哪几种进项税额允许抵扣
  • 普通发票需要做合同才能开吗
  • 企业所得税的营业收入怎么填
  • 个体工商户季度超过9万怎么交税
  • 管理费用属于费用类吗
  • 企业前期开办的费用怎么做会计分录
  • 车辆维修费如何赔偿
  • 居民和非居民企业的区别是什么
  • 会计记账凭证的填制要求
  • 抵消递延所得税资产会计处理
  • 内控制度包括哪几方面
  • 怎样分辨假钱
  • 零余额账户银行回单
  • 生活垃圾处理费标准
  • 外经证核销反馈表写错了怎么办
  • 制造费用和管理费用怎么结转
  • 滴滴出行怎么开纸质发票
  • 多栏式明细账的账页格式适用于
  • centos6.9开启ssh服务
  • win10手机预览版
  • windowsxp有密码忘了怎么办
  • linux安装flash插件
  • win10 20h2怎么更新
  • scrnsave.exe
  • 修改win7
  • svn下载项目
  • 微信小程序实现轮播图
  • 简单谈谈对中国电信的认识
  • easyui demo
  • node.js介绍
  • python爬虫工作内容
  • pythonipo模型
  • 贵州地方税务局网上办税服务厅
  • 税务代收是什么意思
  • 印花税怎么计提和结转
  • 山东省合格考密码
  • 局党组中心组成员
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设