位置: 编程技术 - 正文

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

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

  • 增值税计入成本吗?
  • 4s店事故处理流程
  • 什么是价税分离?
  • 设立登记核准通知书未签名不能办理其他业务
  • 申报增值税之后怎么做账
  • 收到投资款怎么做账
  • 外币购销业务的账务处理
  • 制造费用明细账实例图
  • 没超过标准的招待费缴税吗
  • 进出口企业如何防范汇率风险
  • 增值税发票已作废怎么办
  • 现代服务促销服务费的经营范围
  • 淘宝无票采购账务处理
  • 应付账款周转天数上升的原因
  • 中期支付内容包括
  • 前期认证相符且不符合
  • 提供有形动产租赁服务的增值税税率是
  • steam打开速度
  • 暂估成本的会计处理
  • 华为mate50pro怎么读
  • php的数组函数
  • 暂估收入入账冲回如何会计分录
  • 当前页面的脚本发生错误是否要在此页面上继续运行脚本
  • php字符串定义的三种方式
  • 增值税纳税义务人
  • 保理业务的会计记账
  • yolov5解析
  • php中pdo
  • 资产减值损失会影响利润总额吗
  • 布莱顿小镇介绍
  • web-inf lib
  • php页面跳转实现什么功能
  • segment anything model模型 需要的配置
  • jquery还用吗2020
  • js 跳转网页
  • vgrename命令 重命名卷组
  • phpcms v9用户手册
  • 企业销售旧车增值税处理
  • 企业实缴各类税金的总额
  • 自然人专项扣除填报
  • dedecmsv6
  • 二级栏目怎么做
  • 电子发票可以作废吗?当月
  • 汽车维修公司做账基本流程
  • 金税盘全额抵扣申报表怎么填
  • 增值税专用发票金额与付款金额是否必须一致
  • 如何暂估费用会计分录
  • 增加以前年度损益科目报表要改吗
  • 收到上年度企业所得税退税怎么做账
  • 期末结账后没有余额的科目
  • 房租已支付未收到发票可以做费用吗
  • 房地产行业的特殊性表现在哪些方面
  • 体检费用开发票给公司怎么开
  • 在建工程转固定资产的账务处理
  • 存货盘亏的账务处理怎么做
  • 转账凭证的编制流程
  • 记账凭证是什么填制的?A.由经办人
  • 笔记本电脑的触摸板怎么开启和关闭
  • linux设置时间日期
  • win10系统怎么将桌面路径改为d盘
  • xp怎么装系统步骤图解
  • win10系统打开ie浏览器变百度怎么改回ie浏览器了
  • win7如何设置休眠不断网
  • win7右键没有
  • linux 删除 用户
  • linux怎么添加一个用户
  • react-native fetch的具体使用方法
  • node.js如何运行
  • material design怎么用
  • jquery左右选择框
  • 通过制作日晷我们可以探索发现一天之中
  • javascript entries
  • javascript运用
  • androidapplication
  • unity基于什么语言
  • android 内部存储
  • 国家税务总局2018年61号公告
  • pdf扫描件怎么弄
  • 河南省焦煤集团董事长
  • 在电脑上怎样做word的文档
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设