大约有 1,873 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0047 秒)
Laya_社区(1137) Laya3.0_api(242) Laya2.0_文档(103) Laya2.0_示例(94) Laya_示例(91) Laya2.0_api(82) laya_api(76) Laya3.0_文档(48)
....stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } 发布成单机版apk在移动端安装运行,移动端报错提示: http://www.xxx.com/LayaUISampl ... annot read property 'start' of null ...
来源: Laya_社区 发布时间: 20170522
...ize(); _proMask = new Sprite(); _proMask.graphics.drawRect(0, 0, _progress.width, _progress.height); _proMask.scaleX = 0; _progress.mask = _proMask; _bar.stateNum = 1; } override protected function createChildren():void { super.createChildren(); var index:Number = getChildIndex(_bg); addChildAt(_pro...
来源: Laya_社区 发布时间: 20170327
...处理做一下取整处理,看下是否能解决您这个问题: The width of getCharBmp must be an integer 2024-05-30 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 忆汉月 相关问题 微信关系链:LayaAir引擎针对微...
来源: Laya_社区 发布时间: 20240514
...00; j++) { if(count == 10000) { var htmlCanvas:HTMLCanvas = a.drawToCanvas(width,height,0,0); var texture:Texture = new Texture(htmlCanvas); var b:Sprite = new Sprite(); b.graphics.drawTexture(texture); a.graphics.clear(true); a.destroy(); a = b; } a.graphics.drawRect(10*i, 10*j, 10, 10, "#ff0000");...
来源: Laya_社区 发布时间: 20181113
...竖屏思路: Laya.stage.scaleMode "fixedwidth" :宽度不变,高度根据屏幕比缩放 这种模式下的Laya.init(width,height, WebGL);高度一般是不对的,需要计算 b.横屏思路: Laya.s...
来源: Laya_社区 发布时间: 20200305
... position: absolute; margin:5px; width: 300px; height: 200px; overflow:auto; font-size:20px; line-height:38px; font-family:"微软雅黑"; color:#000; text-align:justify; text-justify:inter-ideograph...
来源: Laya_社区 发布时间: 20180103
...48导致引发上面的问题 this.mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");
来源: Laya_社区 发布时间: 20180713
...口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Conf.App_Width, Conf.App_Height); //创建TiledMap地图 this.tMap.createMap("map/"+mapname+".json",viewRect, laya.utils.Handler.create(this, this.test));//, null, new Laya.Point(1600, 816)); } private test(){ var testLayer:Laya.MapLay...
来源: Laya_社区 发布时间: 20170627
...根节点,根据index索引获取,如果是panel节点,根据panel的width和heigh获取,如果是动画节点就用矩阵变换获取 2017-11-21 0 8 分享 微博 QZONE 微信 wudi199553 赞同来自: target3.transform.position 2017-11-21 0 0 分享 微博 QZONE 微信 Faith_mkx 赞同来...
来源: Laya_社区 发布时间: 20171121
... Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); 3) 而你的代码里并不会执行这一行,你完全拷贝示例代码,会发现是能够播放的。差别就在于是否设置了video元素的style 2020-07-11 0 2 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20200703