• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,738 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0062 秒)

21. UI - Tab问题: 设置item的width,height [ 95%]

UI - Tab问题: 设置item的width,height UI - Tab问题: 请问在IDE上面我将tab control的width,height都设大了,里面的ITEM为什么没有跟着相应的变大啊? 难道里面item的width,height和skin image的width,height有关? 2018-03-19 添加评论 免费帖 --> 分...

来源: Laya_社区 发布时间: 20180319

22. 请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 [ 95%]

...ild(miniMap1); } } miniMap.src=url;     function circle_image(img, oldImgWidth, oldImgHeight) { var width, height, canvas, contex, circle; if (img.width > img.height) { width = img.height; height = img.height; } else { width = img.width; height = img.width; } canvas = document.createElement('ca...

来源: Laya_社区 发布时间: 20181125

23. HTMLDivElement <img>标签width、height在手机端无效 [ 95%]

HTMLDivElement &lt;img&gt;标签width、height在手机端无效 请问一下 我用HTMLDivElement,设置"&lt;img src='"+iconImg+"' width='45'  height='45'&gt;&lt;/img&gt;"标签设置图片的width、height,在编辑器或网页上显示正常,但是打包android apk后安装游戏,就显...

来源: Laya_社区 发布时间: 20190112

24. 我想把flex项目转为laya ts项目,转换过程 mx.containers.Canvas报错 [ 95%]

...oding="utf-8"?&gt; &lt;mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="144" height="590" mouseEnabled="true"&gt;                 &lt;mx:Canvas width="144" height="590" x="0" y="0" horizontalScrollPolicy="off" verticalScrollPolicy="off"&gt;                     &l...

来源: Laya_社区 发布时间: 20180202

25. laya.maths.Rectangle [ 95%]

... 确定)以及宽度和高度定义的区域。 Rectangle 类的 x、y、width 和 height 属性相互独立;更改一个属性的值不会影响其他属性。 Public Properties PropertyDefined By  bottom : Number[read-only] 此矩形底端的 Y 轴坐标。y 和 height 属性的和。Rectan...

来源: Laya2.0_api 发布时间: 20190513

26. Native(android)下创建二维码并显示在页面上 [ 94%]

...     // androidplat,创建二维码     createQrCode(url:string, width:number, height:number):string {         return this._bridge.call("createQrCode", url, width, height);     }     // 以下android代码 // JSBridge.javapublic static String createQrCode(final String c...

来源: Laya_社区 发布时间: 20200729

27. 性能测试-虫子(慎入) [ 94%]

...s = []; var wrapBounds; var maggotTexture; (function() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#000000"; Stat.show(); wrapBounds = new Rectangle(-padding, -padding, Laya.stage.width + padding * 2, Laya.stage.height + padding * 2); Laya.loader.load(texturePath, Handle...

来源: Laya_示例 发布时间: 20240929

28. 求解clip的切片得到的单个width0 [ 94%]

求解clip的切片得到的单个width0 一张550×65的图片,用clip切了11分,但是得到的width为什么是 0,正确的应该是55吧= =,但是得到的确是0。 代码如下: this.k = new Laya.Clip("nbdz/gameover/Clip_win.png",11, 1); this.singleNumberW = this.k.width; this.k...

来源: Laya_社区 发布时间: 20170804

29. layaUI.max.all.js 这个文件怎么生成的? [ 94%]

..."child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,"height":37,"sizeGrid":"4,4,4,4","var":"btn"},"type":"Button"},{"props":{"x":401,"y":56,"skin":"comp...

来源: Laya_社区 发布时间: 20170330

30. 页面中的width问题 [ 94%]

页面中的width问题 页面中节点的width和height上都是Auto,脚本中获取就是0,这是为什么啊,有什么方法能获取到真正的宽和高吗??? 2019-12-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

来源: Laya_社区 发布时间: 20191222