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

大约有 1,754 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0057 秒)

1531. 微信开放数据域加载图片后报错 Cannot read property 'USER_DATA_PATH' of undefined [ 51%]

...   var img:Image = new Image("../res/test.png"); img.height = 100; img.width = 100;             Laya.stage.addChild(img); } 附件 : --> 2019-05-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 早...

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

1532. [LayaAir3]list.selectHandler [ 51%]

...lbl=new Laya.Label(val); this.lbl.name="val"; this.lbl.size(Item.width,Item.height); this.lbl.align="center"; this.lbl.valign="bottom"; this.lbl.padding="0,0,1,0"; this.btn.addChild(this.lbl); } this.btn.name=index.toString(); this.uiCtrl=uiCtrl; this.btn.on(&...

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

1533. 如何使用graphics绘画虚线 [ 51%]

...ot; +"<g fill=\"none\" stroke=\"black\" stroke-width=\"4\">" + " <path stroke-dasharray=\"5,5\" d=\"M5 20 l215 0\" />" + "<path stroke-dasharray=\"10,10\" d=\"M5 40 l215 0\" />" + &q...

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

1534. FaceBook iPhone X 适配(其他正常) [ 51%]

...常, 下图分别为第2,1次进入; 红色字体 : Laya.Browser.width Laya.Browser.height 适配代码: Laya3D.init(1336, 750); Laya.init(1336, 750); Laya.stage.screenMode = "none"; Laya.stage.alignV = "middle"; Laya.stage.alignH = "center"; Laya.stage.bgColor = "#0000000"; if (Laya.Brows...

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

1535. 源码List的一次代码错误 [ 51%]

...X, numY) { var box = this._content; var cell = this._getOneCell(); var cellWidth = cell.width + this._spaceX; var cellHeight = cell.height + this._spaceY; if (this.cacheContent) { var cacheBox = new Box(); cacheBox.cacheAsBitmap = true; cacheBox.pos((this._isVertical ? 0 : startY) * cellWidth, (this...

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

1536. bitmap渲染问题 [ 51%]

... bm2:Bitmap = new Bitmap(bmd2); this.addChild(bm2); bm2.x = 50; trace(rect.width); trace(rect.height); 输出正常,不知道你那边是如何写的?

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

1537. android studio 不支持标签 <Script Language="JavaScript"> [ 51%]

...t;     document.getElementById('WebViewport').setAttribute('content', 'width=100%,initial-scale=' + 1 / devicePixelRatio + ',target-densitydpi=device-dpi,minimum-scale=0.1,maximum-scale=9,user-scalable=0'); &lt;/script&gt;    index.html最后有个这个  然后发布release 然后APP构建 ...

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

1538. laya中怎样使用jQuery写广告轮播 [ 51%]

...anel的大小 3、调整两个Image的位置,一个在x=0,y=0,另一个x=width,y=0 4、代码中,见附件 Banner.zip 2018-08-10 1 3 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 重金悬赏第三方库用法,小伙伴踊跃参加呀。 2018-07-13 0 2 分享 微博 QZONE 微信 zsq 赞同...

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

1539. 物体每帧y方向移动,超出屏幕高度消失,可还没有超出屏幕高度就提前消失了! [ 51%]

... Laya.WebGL); //屏幕适配 Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL; //-----------上面和下面的代码在两个不同的页面------------- _...

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

1540. 2.0)js按照官方遮罩写的程序,无法正常执行, 请问怎么回事,代码见内。 [ 51%]

...dler.create(head_img, function () {              this.height = this.width = 77;        var cMask = new Laya.Sprite();//创建遮罩对象        var r = 38.5; //遮罩圆形半径              cMask.graphics.drawCircle(0, 0, r, "#ff0000");//画一个圆形的遮罩区域     ...

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