位置: 编程技术 - 正文

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

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

  • 民非 企业所得税
  • 固定资产报废进项税额怎么处理
  • 税务缴税流程
  • 社保稳岗返还计算公式
  • 微信小程序需要授权怎么设置
  • 建筑业企业生产经营情况表
  • 怎么知道对方的支付宝账号
  • 社保费公司部分怎么算
  • 预缴土地增值税的会计处理
  • 送员工礼物
  • 净利润提盈余公积
  • 商业企业购货分录
  • 公司发实物要交税吗
  • 建筑施工企业预交税款
  • 医院晚上开不开
  • 结转增值税的计算公式
  • 印刷制作费税收编码是啥
  • 个人所得税申报退税的条件
  • 注册公司未签名怎么办
  • 小规模核定征收税率
  • 一般纳税人购车可以抵扣多少税
  • 开票系统问题
  • 企业实缴出资额怎么查
  • 损失与费用的区别
  • 工程合同外购设备怎么开票
  • 此 google 帐号尚未与设备关联
  • 营业外支出所得税前可以扣除吗
  • 结转进项税销项税额的分录怎么写
  • 生产经营所得投资者减除费用季度申报填吗
  • bios相关概念
  • php安装教程详解
  • 怎么修改wifi密码视频教程
  • 融资租入固定资产的入账价值
  • 按下电源按钮时锁定计算机怎么弄
  • 企业合并进行过程中发生的各项直接相关费用
  • uniapp打包成h5如何调用原生
  • 凯斯西储大学在哪个城市
  • 待摊费用在资产负债表里写在哪
  • 工业企业采购部工资计入什么科目
  • 管理费用增加记哪方
  • 社保可以不计提直接缴纳吗
  • 应付账款会计分录大全
  • 定期存款怎么入门
  • 营销策划费会计分录
  • 建筑企业工程结算账务处理
  • 电汇和票汇
  • sql server如何进行安全设置
  • 企业所得税汇算清缴会计分录
  • 主营业务收入明细科目
  • 销售费用期末余额
  • 销售商品返还现金
  • 预提成本和冲回成本金额不一致情况说明
  • 股权转让可行性
  • 建筑行业每月报税
  • 预付账款主要是什么
  • 固定资产原价的含义
  • 会计账本怎么记账
  • mysql 定点数和浮点数
  • unix系统中目录采用什么结构
  • linux的lvm扩容
  • ubuntu tc
  • xp输入法图标消失
  • windows7如何设置双屏显示
  • lsass.exe是什么病毒
  • win7系统搜索不到自己家wi-fi
  • win7系统配置怎么设置
  • vim如何复制粘贴
  • win8功能
  • javascript中的数组可以存放任何类型的数据
  • ubuntu20安装unity桌面
  • shell脚本介绍
  • 文本框几种常用属性
  • JavaScript获取网页内容
  • javascript获取html元素的方法
  • jquery封装原理
  • 广东省为什么电不够用
  • 税务工商指的是什么
  • 深圳市国家税务局电子税务局官网
  • 北京市地方税务局
  • 会计报表错误
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设