位置: 编程技术 - 正文

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

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

  • 公司全额承担个税怎么申报
  • 查账征收纳税申报表
  • 对公转账房租怎么备注
  • 投标成交服务费
  • 医疗服务有增值业务吗
  • 对公账户汇款方式
  • 预计销售收入增长是什么意思
  • 党费帐常用会计分录
  • 收到境外汇款怎么处理
  • 外购生物资产的成本不包括
  • 打车发票丢了怎么办
  • 企业固定资产入账金额标准
  • 未发货先开票怎么结转成本
  • 酒店怎么合理规划管理
  • 已经发生的费用
  • 对公账户的理财收入计入什么科目
  • 应交税费待抵扣进项税额
  • 事业单位购入三年期国债的会计分录怎么做?
  • 企业职工福利费标准是什么
  • 免抵税额和免抵退税额有什么区别
  • 汇算清缴的所得税会计分录
  • 采购材料差旅费怎么入账
  • 汇算清缴申报后怎样撤销
  • 电子发票没有发票号码是怎么回事
  • 多转出的进项税怎么做账
  • 建账时的库存怎么做账
  • 王者荣耀体验皮肤什么时候结束
  • 高德地图定位获取用户手机号码
  • 国有资产无偿使用违反什么规定
  • 超分模型
  • 加利福尼亚湾在哪
  • 付工程改造余款分录
  • js正则表达式删除特定字符
  • 发票多久过期不能开
  • 企业支付宝要交税吗 要交多少钱
  • vue0
  • cmd 过滤命令
  • php图片代码
  • php多线程与并发
  • 服务业小规模纳税人税率
  • 固定资产清理属于非流动资产吗
  • 扶贫资金入股问题
  • mongodb建立索引的命令
  • mysql中的语法
  • 普通发票和增值税发票报销有什么区别?
  • 广告费的税费分录
  • 挂靠在运输公司的车辆为什么要记入"固定资产"科目?
  • 去银行提取备用金不是会计本人需要给谁打电话
  • 服装厂布料都是在哪里进的
  • 所得税费用结转分录
  • 预付账款要设明细科目吗
  • 新公司期初余额怎么算
  • 收到其他应付款会计分录
  • 外贸公司出口退税实例
  • 如何控制生产成本和利润
  • mysql不同数据库不同数据表导入数据
  • php 访问数据库
  • sql server如何进行安全设置
  • 向sql server数据库中导入
  • mysql和c
  • windowsxp教程
  • win8.1怎么打开设置
  • win8如何更新驱动
  • win8隐藏任务栏怎么恢复
  • linux命令统计代码行数
  • centos7如何进入命令行
  • Linux>=2.6.39 Mempodipper本地提权分析和EXP利用(CVE-2012-0056)
  • 在linux操作系统中
  • c#在unity的作用
  • javascript中的函数
  • jQuery的ajax中使用FormData实现页面无刷新上传功能
  • perl 数组放入另一个数组
  • jquery实现
  • 复制链接
  • chrome excel
  • JavaScript开发技巧
  • 充电显示调整差额是什么意思
  • Android使用HttpURLConnection和HttpClient请求服务器数据
  • 面向对象的三大特征
  • 关于加强税务稽查工作的思考
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设