位置: 编程技术 - 正文

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

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

  • 出口退税无纸化备案
  • 减免附加税怎么填报
  • 年金是否一定是每年发生一次
  • 查看企业用什么软件
  • 转让不动产增值税计算
  • 企业设备维修管理制度
  • 以股权转让名义转让土地使用权
  • 企业增值税税负率与利润率的关系
  • 进项发票与销项发票差额是企业毛利润吗
  • 印花税征税范围包括所有合同
  • 产业扶持周转金退回多久到账
  • 如何安装react
  • 信用证保证金会退还吗
  • php数组函数实现机选双色球
  • 公司从超市购买东西缴纳印花税吗
  • hppusg.exe是什么进程
  • 商品房的维修金该怎么交
  • win10桌面图标怎么随意摆放
  • php教程全集
  • 购买性支出和转移性支出的本质区别
  • laravel搭建
  • 专利年费的滞纳金
  • laravel5.4生成验证码的实例讲解
  • 增值税申报时,里面没有数据怎么办
  • 基于Java+SpringBoot+Vue前后端分离仓库管理系统设计实现
  • 工商罚款怎么入账
  • ChatGPT 编写模式:如何高效地将思维框架赋予 AI ?
  • GCN经典论文笔记:Semi-Supervised Classification with Graph Convolutional Networks
  • 上月普通发票怎么作废
  • 增值税发票认证期限是多久
  • 分公司需要交所得税吗
  • 海关缴款书能重开吗
  • 完整的css代码案例
  • python缩进有什么作用
  • 劳务分包收入交什么税
  • 固定资产属于有形还是无形资产
  • 企业盈余公积的主要用途是
  • 营业成本的构成
  • 个人所得税申报退税能退多少
  • 为什么应付账款不被视为债务融资
  • 收到分红的会计科目
  • 购买其他权益工具投资公允大于我支付的价值
  • 卖固定资产如何做账
  • 服务类发票怎么做分录
  • 营业外收入的账户核算有哪些
  • 买两个能退一个吗
  • 建筑图纸设计费多少钱
  • 土地返还金
  • 预付款充值发票
  • 公司向个人借款利息可以税前扣除吗
  • 物流运输公司的运营盈利模式
  • 商业企业固定资产一次性扣除
  • mysql时间语句
  • windowsxp显卡驱动在哪个位置
  • windows xp的设备管理器在哪
  • win10执行数据保护如何开启
  • mac版安装教程
  • windows精简版精简了哪些
  • 硬盘安装好了显示不出来怎么办
  • centos6.10安装
  • windows8任务管理器在哪
  • 优质安卓应用
  • div +css
  • perl 获取数据库查询结果
  • js单线程多线程
  • Git 创建分支提交远程分支详解
  • 备份多个数据库
  • python中类怎么用
  • 安卓端数据库
  • android:ellipsize="marquee"
  • JavaScript中的NaN代表什么
  • JavaScript中定义数组
  • python爬虫抓取数据的步骤
  • python环境及基础语法
  • 江西省发票综合服务平台
  • 发票查验明细怎么截屏
  • 发票查询结果打印怎么弄
  • 神州浩天财务软件
  • 公积金扣800一个月多少钱
  • 贵阳市税务电话
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设