位置: 编程技术 - 正文

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

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

  • 个人获得的专利有哪些
  • 企业所得税税前扣除政策
  • 固定资产变卖怎么开票
  • 对公的etc怎么绑定怎么充值
  • 金税盘服务费不能全额抵扣吗
  • 投资性房地产的初始计量
  • 非独立核算的分公司怎么做账
  • 出租设备应计入什么科目
  • 单位租用个人住房合法吗
  • 银行结算方式包括哪些内容
  • 记账凭证广告费
  • 软件著作权如何入账
  • 公司注销取不到采购发票怎么汇算清缴?
  • 个人所得税0申报操作流程
  • 怎么合理规范地避免企业涉税风险?
  • 所得税预警税负率
  • 资金账簿印花税最新政策2023
  • 房地产公司基础设施建设费包括哪些费用
  • 企业收到党建经费 所得税
  • 餐饮发票忘记作废也没冲红怎么处理?
  • 期初存货余额在哪张表里
  • 个人所得税分月明细申报表
  • 发票认证信息怎么填
  • 违约金收入是否交增值税
  • 转账银行汇票遗失后可以申请办理
  • 进项是普票销项是专票,怎么交税
  • 跨年度的收入如何做分录
  • 该系统的软件
  • 不用itunes怎么下载软件
  • 腾讯电脑管家中的软件市场打不开
  • 货物运输业的增值税税率
  • Thinkphp5+PHPExcel实现批量上传表格数据功能
  • 子公司可以接总公司的工程吗
  • 电脑屏幕字体模糊怎么办
  • 房屋装修各项费用比例
  • 银行本票结算的特点是什么
  • 摊销专利权会计分录怎么写
  • php addslashes函数
  • 公立医院增值税抵扣
  • ci框架api版本
  • php利用数组完成党员信息表
  • 路径规划是什么意思
  • cdr快捷键命令大全
  • laravel分页
  • dpkg --list
  • 防伪税控可以做什么
  • python中numpy数组和列表的区别
  • 你用python做什么
  • 影响企业营业利润的有哪些
  • 存货跌价准备在年报哪里
  • 转让股权溢价账务处理会计分录
  • 制作费用和管理费用
  • 进项税额是怎么算的
  • 交易性金融资产属于流动资产
  • 逾期未认证的增值税发票处理办法
  • 忘了作废的发票还能用吗
  • 汽车属于固定资产类吗
  • 食品发票可以报销吗怎么报销
  • 教育费返还款计入收入吗
  • 车辆使用费报销制度
  • 普通发票和增值发票的区别在哪里
  • 高新技术企业每年需要多少专利
  • mac怎么用知云翻译
  • 主板不支持u盘装系统怎么办
  • ubuntu怎样调出命令行
  • ie的进程
  • 远程操作win10
  • linux重复命令
  • linux在网络方面的应用
  • js按照指定顺序排序
  • python ssh 远程执行命令
  • jquery自定义事件
  • Node.js中的事件循环是什么
  • windows清除远程登录记录
  • android sdk loader的问题
  • 开普通发票必须要纳税人识别号吗?
  • 荆州市税务局现任名单
  • 锐志2.5新车报价
  • 广东省职称证书编号查询系统
  • 企业支付的年度报告审计费
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设