位置: 编程技术 - 正文

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

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

  • 增值税为什么不重复征税
  • 企业所得税申报表
  • 劳务报酬个人所得税税率表
  • 研发费用加计扣除是什么意思啊
  • 金税盘不用了之后要抄报税吗
  • 金融债券的利息收入
  • 小规模企业所得税多少
  • 事业单位申请电采暖电表免费么新疆昌吉
  • 社保公积金占比多少
  • 咨询服务费的印花税率
  • 年末结转本年利润是在结转损益前还是后
  • 公摊电费计入什么科目
  • 银行发行理财产品的条件
  • 质量罚款入什么科目
  • 新办的营业执照多久可以注销
  • 本月收到外汇怎么做账
  • 个税多申报了实发没有这么多,如何处理
  • 投资收益科目应用
  • 全资子公司向母公司提供劳务服务怎么做账
  • 平销返利税率
  • 公司 期货投资
  • 客户退回货物会计分录
  • 预付账款主要是
  • 如何保护word文件不被他人修改
  • 商会收到的会费要交企业所得税
  • 消防设施费用怎么入账
  • 贷款利息不能抵扣依据
  • 分级核算下的建议有哪些
  • 业务招待费的会计科目
  • 君子兰的养殖方法
  • 更改公司章程发函怎么写
  • 集团公司管理费提取办法
  • 会计准则新规
  • 财务专用章是干啥的
  • 印花税贴花怎么贴划线
  • 慕尼黑基姆湖
  • php数据统计分析
  • f12过滤请求
  • 一天撸一个财务APP系统【安卓端+前端+后端】
  • 深度学习之bottleneck layer
  • windowsserver2012r2远程协助灰色
  • 资本金什么时候可以退回
  • 税务申报显示已申报
  • discuz发帖标签
  • wordpress技巧
  • 试生产期间发生事故后重新
  • mongodb数据表
  • 开业前需要支出什么费用
  • sql server rollup函数
  • db2 history
  • SQL高级应用之同服务器上复制表到另一数据库中并实现去重复
  • 收据能否入账?如何填写才具有合法性呢...
  • 个税是指怎样的税金
  • 没有进货发票可以开票吗?
  • 应收账款转营业外支出
  • 享受研发费用加计扣除需要什么条件
  • 什么是库存现金限额
  • 收到票据之后贴什么标签
  • win8怎么连接
  • wind10手机
  • Windows Server 2008下高效域管理体验
  • xp怎么关闭自启动
  • windows打开或关闭功能
  • centos桌面切换到命令行有什么区别
  • linux shell !
  • linux系统怎么修改文件里的参数
  • redhat linux 7.2系统安装详细过程
  • opengll
  • JavaScript中Number.NEGATIVE_INFINITY值的使用详解
  • Android---43---Service之IntentService
  • 使用jQuery调用XML实现无刷新即时聊天
  • 安卓解析xml的几种方式
  • unity loom插件
  • javascript字符类型
  • jquery前端开发实战教程课后题答案
  • jQuery 选择同时包含两个class的元素的实现方法
  • 卷票真伪查询系统国税
  • 河北省税务局对外公开电话
  • 湖北注册税务师协会
  • 车船使用税减免法律规定
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设