位置: 编程技术 - 正文

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

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

  • 航天金税财务软件使用说明
  • 汽车购置税怎么在手机上缴费
  • 计提租赁费用
  • 销项负数的分录怎么做
  • 个税抵扣未及时填报
  • 个体户未抄报不能领发票
  • 预付账款有二级科目嘛
  • 季度申报后还要年度申报吗
  • 营改增后房地产公司税种及税率
  • 公司固定资产丢失谁负责
  • 出口退税代理费用大概多少
  • 工会经费用于什么
  • 购买面粉的税率是多少
  • 燃油税改革了谁的钱包
  • 钢结构制作安装方案
  • 计提工资多计提,如何做冲销
  • 票开了但是没有发票
  • 公司双方签订协议书范本
  • 上个月开的发票这个月还能用吗
  • 第一次申领发票可以增额吗?
  • 自建厂房领用材料进项税的处理
  • win11开机后
  • 保护电脑安全的主要方式
  • 服务公司收到服务费发票怎么做账
  • 生产车间的各种费用
  • 水电费无发票如何做账
  • pssvc.exe - pssvc是什么进程 有什么用
  • php对称加密算法实验报告
  • php add
  • jinjia.exe进程
  • mode exe
  • php 智能家居
  • 一个简单的html文档一般且必须包含哪些标签
  • 本月职工工资
  • 星空下的灯塔作文
  • 会计账目和账户的区别
  • 计提增值税附加税怎么计算
  • 研发支出资本化支出属于什么科目
  • python 如何
  • 个体双定户税率
  • 政府会计准则的双报告
  • 我有朋友吗朋友圈说说
  • 固定资产清理残料收入
  • 月底主营业务成本会计分录
  • 公允价值变动损益借贷方向增减
  • 研发设备的折旧计入研发费用吗
  • 承租人违约押金怎么办
  • 长期借款账务处理会计分录
  • 关联交易现金流
  • 长期应付未付款项清理方案
  • 代垫水电费的账务处理
  • 税前扣除怎么理解
  • 工厂宿舍水电费怎么扣
  • 工程行业收到工程发票
  • 房地产开发企业销售自行开发的房地产项目
  • 公司账户美金入账后怎么做分录
  • sqlserver提示功能怎么打开
  • 如何进入opencore引导
  • win8恢复出厂设置方法
  • centos state down
  • 如何重置win10
  • win7右下角时间怎么显示年月日
  • 系统时间错乱如何使用NTP进行系统时间调整
  • 3d图形计算器
  • jquery刷新局部页面
  • node介绍
  • bootstrap快速入门
  • python中requests小技巧
  • 编写程序实现将两个文本文件的内容合并
  • vps 备份
  • unity3d入门视频教程
  • jquery查找方法
  • jquery 放大镜
  • javascript获取数据
  • 如何打印纳税申报表
  • 怎么打印电子社保
  • 注销外经证需要身份证吗
  • 陕西陉阳县税务局官网
  • 遂宁市国家税务局
  • 税务总局四个确保
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设