位置: 编程技术 - 正文

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

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

  • 非盈利组织免税资格文件
  • 应交城建税分录
  • 计入税金及附加的科目
  • 财产租赁合同印花税优惠政策
  • 邮政能否为固定业户代开增值税普通发票
  • 预缴税款是否可以强制执行
  • 企业盘活资产的方法有哪些
  • 库存盘盈如何入账
  • 土地款抵扣增值税申报
  • 销项负数发票的抵扣联
  • 税盘没有抄报各月,有罚款吗
  • 个体户怎么申请核定征收
  • 已付款未收到发票
  • 货物发出未开票
  • 政府给企业的钱叫什么
  • 企业清算期间账务怎么做
  • 交易性金融资产入账价值怎么计算
  • 增值税发票可以抵扣多少
  • 项目融资中风险有哪些
  • 对外长期投资会计分录
  • 影响当期损益的税费
  • 小企业的费用包括生产成本吗
  • thinkphp框架怎么用
  • 计算机视觉算法
  • 购物车html模板
  • 毕业论文笔记怎么写
  • php判断字符串是否为ip地址
  • thinkphp框架结构
  • 简述资产负债表债务法
  • 无形资产转让的最低收费额如何确定?
  • 一般公司是什么企业类型
  • 教大家8天学通MongoDB——第一天 基础入门篇
  • 处置固定资产开票 税目
  • 计提工资是什么时候计提
  • 外包食堂如何进货
  • 进项税抵扣的分录怎么做
  • 个人承担社保有哪些
  • 车船使用税必须每年都交吗
  • 代收物业费有什么风险
  • 小微企业免税如何做账
  • 留底税额怎么入账
  • 补交以前年度的房产税会计分录
  • 实名汽车票抵扣
  • 百旺金赋税盘怎么清卡
  • 一般纳税人开错税率严重吗
  • 销售废旧物资如何入账
  • 个税返还开票什么项目
  • win7系统计算机管理功能打不开
  • windows9预览版下载
  • windows哪个最好用
  • windows优化软件
  • centos安装完成后重启进不去
  • win10一直显示正在配置更新
  • 如何升级mac系统到10.12
  • win平板装ubuntu
  • linux unhide
  • centos安装教程详解
  • win8.1隐藏文件夹
  • win10怎么用cmd删除文件
  • js框架的作用
  • js判断手机号
  • 批处理 >nul
  • express中间件面试题
  • centos7开不了机
  • 网页javascript错误
  • 完美解决雷电模拟器卡顿
  • linux -lc
  • &&在js中
  • jquery easy ui
  • javascript基于
  • unity ulua
  • python中time模块源代码
  • Activity与Theme
  • 党建工作领导小组会议
  • 山东地域分布
  • 党费减免规定
  • 营业收入是含增值税的收入吗
  • 残疾人在国企有补贴吗
  • 作废的发票验旧之后怎么领取新发票
  • 福建高速公路电子发票怎么开
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设