位置: 编程技术 - 正文

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

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

  • 季度所得税费用如何计提
  • 综合收益总额与什么有关
  • 收到失业保险稳岗补贴会计分录
  • 金蝶利润表没有数据怎么办
  • 红字发票申请表盖什么章
  • 净资产账面价值怎么计算
  • 未达起征点销售额怎么填申报表
  • 按月按季申报
  • 房产税应由哪方交纳
  • 企业合并的被合并方会计分录
  • 项目现金流量的构成
  • 外购一批原材料对外销售
  • 企业所得税核定征收怎么计算
  • 个人投资者
  • 上月暂估本月怎么冲销
  • 企业所得税是根据什么申报的
  • 核销单怎么做
  • 筹建期的开办费需要归集后才能一次性扣除吗
  • 劳保用品做账分录
  • 公司股权转让的印花税谁来承担
  • 来料加工方式中,料件和加工后成品的所有权
  • 存货报废如何账务处理
  • 出售低值易耗品的成本
  • 应收账款净额可以是负数吗
  • 应纳税所得额准予扣除的有
  • 融资性售后回租承租方为什么不交税
  • 长期股权投资会减值吗
  • 怎么理解php语言
  • php curl_exec
  • next frame
  • 异地工程款预缴
  • 分公司不享受小规模纳税
  • php中单双引号的区别
  • 代发工资如何计算
  • 社保可以不计提直接缴纳吗
  • 租赁房产税如何交税
  • 评价股权转让要交什么税
  • 接受捐赠收入要缴纳企业所得税吗
  • 专家评审费属于咨询费吗
  • 交通费 抵扣
  • 残保金 滞纳金
  • 坏账准备在资产负债表哪里体现
  • 公司债券属于负债吗
  • 怎么计算利润的百分比
  • 工程分包需要注意什么
  • 小规模第一次申报流程
  • 账实核对是指各种财产物资与债权债务的账面余额
  • 工会经费计税依据是应发还是实发
  • 一般纳税人适用什么会计准则
  • 无形资产入账
  • 公司购买的礼品卡怎么做账
  • 货物出去没有出口报关可以补吗
  • 材料核销的依据
  • 管理费用科目余额表有余额怎么办
  • 事业单位残疾人就业保障金减免
  • 招标代理服务费计算器在线
  • sqlserver批处理语句
  • mysql行锁的作用
  • mysql优化sql有哪些
  • windows命令行使用
  • win7怎么装win8系统
  • 自我挖掘的才干
  • iphone os
  • freebsd ports安装
  • bios识别不了硬盘怎么回事
  • linux 解析
  • windowxp操作系统
  • win10周年纪念版
  • unity3d documentation
  • opengl入门教程
  • andriod 控件
  • jquery动态生成表格
  • js 截取
  • jquery 购物车
  • python中的description
  • python flask框架 web服务器
  • 南京电子税务局咨询电话
  • 电子税务局增值税申报表下载
  • 居住证在粤省事怎么查询
  • 国税地税数据共多少
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设