位置: 编程技术 - 正文

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

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

  • 购房返现金需要什么资料
  • 房地产可抵扣的税有哪些
  • 专用增值税发票和普通发票区别
  • 收取车辆使用费怎么做账
  • 如何在房产证上加父母名字
  • 车船税不开发票怎么做账?
  • 交易性金融资产入账价值怎么计算
  • 外国专家工资个税
  • 开具发票只有票号可以吗?
  • 没有缴纳社保怎么开证明
  • 退货专票已经认证进项税怎么处理
  • 购进药材如何抵扣进项税额
  • 超市预付卡发票如何入账
  • 应收票据计入应收账款吗
  • 营改增后房地产公司税种及税率
  • 购买方现金折扣计入什么科目
  • 任务管理器网络占用率100%怎么办
  • 公司之间往来借款利息怎么记账
  • 项目不可用怎么解决
  • 会计中在建工程与建筑安装工程的区别
  • 销售折让怎么开票
  • win10蓝牙驱动怎么安装程序
  • php imagettftext
  • php加密文件解密
  • 加拿大西北部的首都
  • winform缓存解决方案
  • 生产企业计提车折旧年限
  • qrcode.min.js
  • 职工教育经费是不是教育费附加
  • html里面有什么
  • 人工智能ai软件免费版app
  • 私募股权基金公司是做什么的
  • php显示当前时间
  • 金蝶专业版数量金额明细账设置
  • mysql proxy问题的解决方法
  • 工会经费和残保金属于税费吗
  • 收到普票和专票对企业的纳税影响
  • 发票上的印记能去掉吗
  • 固定资产处置损益怎么算
  • 逾期交房违约金 已支付金额
  • 年末计提企业所得税的依据
  • 收到投资款如何申报印花税
  • 一次性补缴一年社保
  • 企业受赠资产会计处理
  • 发票开出来对方不走账会怎么样?
  • 分支机构企业所得税计提和缴纳数额不一致怎么办?
  • 同城票据交换差额户的帐号怎么查对方的帐号
  • 旅游服务住宿费公司不给报销
  • 计提盈余公积比例
  • 银行卡里的钱怎么转出来
  • 产品利润率如何计算
  • sqlserver多表查询怎么加索引
  • sqlserver数据库中的null值空值表示的是空格或零值
  • Cont()与Where().Count()有时性能差别如此之大!
  • mac电脑双系统
  • 怎样破解bios密码
  • win8系统界面切换成win7
  • 必应big
  • flashplayer不能正常运行
  • centos7.5设置静态ip
  • ubuntu 21.10安装
  • win10教育版登录
  • JAVAscript操作word
  • android打包v1v2
  • shell脚本获取命令的输出结果
  • html通配符选择器怎么用
  • vue中的组件通信
  • pg搭建
  • shell ui
  • 黑马程序员学费多少钱2018
  • 编写shell脚本,批量建立用户
  • jquery fadein不起作用
  • JavaScript中的变量名不区分大小写
  • Python判断字符串结尾并输出yes或no
  • 天津租房网个人房源出租
  • 深圳前海自贸区医院是三甲吗
  • 行政机关吗
  • 信托公司抵押房能买吗
  • 城市土地使用税计税依据
  • 湖北低保查询网站官网
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设