位置: 编程技术 - 正文

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

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

  • 申请退还增量留抵税额的条件包括
  • 计提税金账务处理
  • 老项目增值税简易计税
  • 结转本月完工入库产品制造成本,甲产品800台全部完工
  • 普通人如何交五险一金
  • 电子发票可以更改备注吗
  • 划转税务的非税发票
  • 闲置固定资产如何做账
  • 承兑汇票能直接兑换吗
  • 增值税不达起征点处理
  • 劳务有预付款吗
  • 资产负债表上的资产是原值还是净值
  • 处置子公司全部股权会计处理 企业会计准则
  • 支付退货款现金流怎么做
  • 补交以前年度增值税的科目处理
  • 受托加工怎么做账
  • 三包范围内的维修费谁出
  • 进项税额留底月底销项税金如何结转?
  • 留底的预缴税款怎么处理?
  • 银行贷款损失的认定标准
  • 投资损益表该如何填列
  • 西安的税务局
  • 企业所得税发票在哪里打印
  • 发票密码区出格了怎么调整
  • 通用申报表工会经费可以不申报吗
  • 增值税发票遗失证明模板
  • 华为分享平时可不可以打开
  • mcrlnstaller
  • 怎么修改boot启动项
  • 计算应缴房产税的公式
  • win10电脑记事本在哪
  • 在暴风雪中翻译
  • 工行对公贷款利息扣除时间
  • wordpress 函数
  • php is_a
  • telnet 执行命令
  • 数量金额式账页图片
  • 工业企业成本核算方法
  • 固定资产出售算不算收入
  • centos5.7
  • phpcms api
  • 个税汇算清缴什么意思?
  • 小规模纳税人为什么不能抵扣进项税
  • 运输中合理损耗计入什么科目
  • 出口转内销会计分录举例
  • 同城票据交换原理
  • 汽车以租代购可靠吗
  • 税控盘年费每年都可以抵扣吗
  • 购买无形资产的手续费计入
  • 免息分期付款怎么办理
  • 签发空头支票的罚款
  • 行为异常不能使用优惠
  • w10专业版最新版本
  • Mac OSX通过homebrew卸载formula的方法
  • windows无法打开添加打印机
  • .exe是什么软件
  • win7打开
  • linux如何更改默认的运行级别
  • shstart.exe - shstart是什么进程 有什么用
  • onekey.exe是什么
  • surface准备就绪
  • linux如何结束正在运行的进程
  • win10系统中怎么打开IE浏览器
  • windows8如何降到windows7
  • android自定义搜索框
  • android搭建环境
  • shutdown命令不能运行
  • cocos2dx lua在sublime下的插件安装及查看定义
  • Node.js中的什么模块是用于处理文件和目录的
  • node 多线程
  • javascript总结笔记
  • shell脚本 ftp
  • js自定义鼠标右键菜单
  • JavaScript File API文件上传预览
  • document.write与writeln的输出内容区别说明
  • 深入理解新发展理念
  • 成都市个人房屋出租税费
  • 小规模开票税金怎么算
  • 乌市沙区医保局电话是多少
  • 规范性文件失效后,没有新文件,可以使用民法典第十条吗
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设