位置: 编程技术 - 正文

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

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

  • 增值税税控系统产品及维护服务价格
  • 烟叶增值税税率10%
  • 预提费用
  • 水利建设专项基金的税率
  • 员工买东西自己垫付的钱怎么做账
  • 计算企业所得税可以扣除的项目有
  • 房地产土地使用权是无形资产吗
  • 建筑公司核定征收是什么意思
  • 企业注销了,报表的银行存款还有余额
  • 间接费用是指
  • 在建工程无发票怎么说明原因
  • 养老基金利率多少
  • 投资款打到个人账户算诈骗吗
  • 应付税款法账务处理
  • 现金收取业务办理流程
  • 减税的案例
  • 企业所得税权责发生
  • 建筑行业预收账款
  • 月底结转应交税费怎么弄
  • 关于设备安装调试的说法
  • 个体不超过10万怎么交税
  • 收到社保补助不发放
  • 个人所得税分月明细申报表
  • 增值税包括土地整治收入吗
  • 医疗机构免征增值税如何申报
  • 本月开了红字发票可以退税吗
  • 进项退回怎么做账
  • mac上如何切换apple id
  • 其他应付款是什么意思
  • 研发阶段产品销售账务处理
  • 出口免退增值税计算公式
  • vite config
  • 企业支付宝账单明细怎么查
  • 长期借款的利息计入
  • 钢琴块小游戏在线玩
  • vue前端常见面试题
  • Python运算符的优先级别
  • 参展费可以抵扣吗
  • phpcms怎么修改模板风格
  • sql server查询前1000条纪录
  • phpcms2008
  • 中药资源与开发跨专业考研
  • 烟草的发票可以报销吗
  • 股权收购协议书实际案例
  • 生产经营个人所得税税率表
  • 固定资产计提折旧的原则
  • 服务业如何确定收入
  • 国外佣金代扣代缴增值税可以抵扣吗
  • 国有资产划转实施方案
  • 收到票据款
  • 记账凭证账务处理程序的特点是直接根据每张
  • 培训发票能抵扣吗
  • 发票遗失重开需要收费吗?
  • sql中where语句的写法
  • mysql事物的作用
  • mysql性能极限
  • CentOS 7中安装mysql server的步骤分享
  • linux 解析
  • 将某软件添加到桌面
  • win7桌面记事本
  • win8调分辨率
  • ubuntu安装后怎么启动
  • win10打开或关闭功能在哪里
  • win10系统哪款好
  • win10鼠标箭头怎么换样式
  • window10的连接功能
  • win8适用的pr
  • win8能不能玩gta5
  • 举例讲解水生花卉栽培管理
  • tab栏切换案例
  • 详解 linux mysqldump 导出数据库、数据、表结构
  • 批处理字符串截取
  • 使用nodejs连接openai超时
  • shell函数返回多个值包含数组
  • js 模块 modules
  • listview subitems
  • python条件怎么算合法
  • 减免性质代码怎么会自动选择
  • 成品油消费税税率2023
  • 材料费增值税发票几个点
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设