位置: 编程技术 - 正文

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

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

  • 不予认定一般纳税人
  • 预收款开发票,不确认收入可以吗?
  • 装修收入如何填报增值税表
  • 税率开错了影响征税吗
  • 为什么应交增值税记在借方
  • 小规模免哪些税
  • 代开专票收入未超30万税务怎么处理
  • 物业管理水电费税率
  • 客户减免费用邮件怎么写
  • 银行汇票转给第三方怎么操作
  • 企业财务会计制度范本
  • 小企业准则适用范围
  • 所得减免优惠明细表减免项目包括几项
  • 税率13降到11的财税政策解读
  • 反倾销税税率查询
  • 哪些人可以享受4050社保补贴
  • 不动产所占份额
  • 外购已抵扣进项税额
  • 外商投资的企业是外资企业吗
  • 退进项税留抵是什么意思
  • 支票挂失需要本人去吗
  • 实收金额比应收金额多
  • 哪些发票冲抵备用金
  • 增值税小规模纳税人减免增值税政策
  • 携程只有电子发票吗
  • 如何正确核算出租房屋所应交的房产税?
  • 公司注销时债权人未申报债权
  • 固定资产清理借贷方向增减变动
  • 线上网速测试
  • php正则表达式验证url
  • linux shell 比较运算符
  • php string
  • 销售费用的类型
  • agsservice是什么进程
  • 结转已销产品实收成本
  • yolov5 教程
  • 商业汇票贴现时贴现额的大小受贴现期长短的影响
  • 对公账户转入对私账户
  • fall 瀑布
  • php禁用函数怎么删除
  • 性能优化模式
  • 发给客户的服装文案
  • 运费已付发票未到会计分录
  • 分期收款销售产品
  • 企业之间的借款计入什么科目
  • css设置英文词距
  • 跨年认证原材料是什么
  • 磁盘监控命令
  • 贸易公司委托加工费怎么入账
  • 公司帮员工买的意外险钱是打到公司还是员工账号
  • 收到货物抵账的会计分录
  • 银行账户维护费收费标准
  • 多少金额以上算固定资产
  • 删除重复记录mysql
  • services.exe修改注册表
  • linux中vim命令详解
  • sqlservr.exe - sqlservr是什么进程 有什么作用
  • win7系统桌面图标变大了怎样恢复
  • centos mail命令
  • 如何用dos破解wifi
  • 上帝模式使用教程
  • win10在更新界面怎么办
  • Linux分区详解
  • win7无网激活
  • windows7打开网络连接
  • ES6 javascript中class类的get与set用法实例分析
  • 刚接触 python 如何快速上手?
  • perl package
  • JS实现的base64加密、md5加密及sha1加密详解
  • python常见算法
  • jquery模拟表单提交
  • js表单序列化
  • androidstudio国内镜像地址
  • shell 读取
  • javascript教程
  • android 进程通信
  • activity启动原理
  • jquery设置隐藏属性
  • 重庆市网上税务局官网app下载
  • 融资租赁 合同
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设