位置: 编程技术 - 正文

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

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

  • 销售返利可以计入销售费用吗
  • 委托加工物资需要计提存货跌价准备吗
  • 给客户多开了发票,下月少开可以吗?
  • 预交增值税设备租赁是否可抵扣
  • 制造费用的借方和贷方各表示什么
  • 用友软件冲销凭证是什么意思
  • 快递费的进项税可以抵扣吗
  • 承租承包经营个人所得税
  • 小规模纳税人附表一怎么填
  • 出口退税审核系统疑点
  • 吊车租赁费计入什么会计科目
  • 企业所得税期间费用明细表
  • 小规模企业增值税税率
  • 统借统还账务处理流程
  • 处置报废车辆如何缴纳增值税
  • 购买国外技术需要缴纳什么税
  • 汽车销售公司购买车辆会计科目
  • 内含报酬率概念
  • linux 匹配字符
  • 建筑企业如何确认所得税收入
  • 失业保险稳岗补贴是什么意思
  • 怎么绕开中介找到房主
  • phpfopen
  • 增值税的计税依据包括契税吗
  • php如何防止xss攻击
  • php中file
  • 无形资产使用寿命不确定需要摊销吗
  • ts基础
  • 生产型企业出口退税退的是哪部分的税
  • CSS: overflow-anchor 固定滚动到底部,随着页面内容增多滚动条自己滚动展示最新的内容
  • 数据读取流程
  • javascript保留字有哪些
  • vue router-view路由详解
  • 无人驾驶基础知识
  • ts入门教程
  • 随机梯度下降算法优缺点
  • cv计算机视觉定义
  • 第十七届全国大学生智能车
  • 研发费用加计扣除2022政策
  • 建筑企业异地预缴增值税销售额含税吗
  • 帝国cms使用手册
  • 织梦怎么添加相关
  • mongodb数据查询
  • 年会服装费属于什么费用
  • 企业增资相关知识点
  • 企业所得税的征税对象包括( )
  • 收到的技术服务费计入什么科目
  • 员工多交个税企业就少交所得税吗?
  • 其他应付款可以转主营业务收入吗
  • 长期待摊费用待摊费用
  • 营业外收入的账户核算有哪些
  • 冲回以前年度暂估入库
  • 建筑公司脚手架租赁费会计分录
  • 保险发票计入什么科目
  • 文化事业建设费逾期未申报怎么办
  • 工程施工间接费用明细
  • 旅行社开什么票
  • 评估入账的无形资产能摊销吗
  • 原始凭证的审核要求有哪些
  • mysql varchar2
  • sql创建表日期格式
  • winxp关闭自动更新方法
  • 清华同方笔记本无线网络开关在哪
  • 邮件远程控制
  • 电脑超频以后变得很卡
  • linux,Centos5,Ubuntu关掉ipv6的方法
  • css spirit
  • vim安装ycm
  • unity3d官方案例
  • javascript中的函数该如何理解
  • vue中父组件向子组件传递数据
  • n归档是什么软件
  • 解决在基层
  • 怎么查询电子票是否被红冲
  • 税务上征信
  • 建筑一般纳税人开3%
  • 强化管理定义
  • 南京国税局长是谁
  • 临沂市2020年居民燃气价格
  • 安徽省建筑施工企业排名
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设