大约有 1,720 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0048 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
... 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(_progress = new Image...
来源: Laya_社区 发布时间: 20170327
...+) { 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"); count...
来源: Laya_社区 发布时间: 20181113
...幕比缩放 这种模式下的Laya.init(width,height, WebGL);高度一般是不对的,需要计算 b.横屏思路: Laya.stage.scaleMode "fixedheight" :高度不变,宽度根据屏幕比缩放; 你使用的是默认值为 "no...
来源: Laya_社区 发布时间: 20200305
...的问题 this.mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");
来源: Laya_社区 发布时间: 20180713
...iewRect: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.MapLayer = this.tMap....
来源: Laya_社区 发布时间: 20170627
...MElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); 3) 而你的代码里并不会执行这一行,你完全拷贝示例代码,会发现是能够播放的。差别就在于是否设置了video元素的style 2020-07-11 0 2 分享 微博 QZONE 微信 为什么被...
来源: Laya_社区 发布时间: 20200703
...partIns.x = Laya.stage.width / 2; partIns.y = Laya.stage.height / 2; } 报错如下: ReferenceError: Loader is not defined preload.js:55 at LoveView.onEnable (file:///D:/laya/myLaya/myZootopia/bin/js/bundle.js:683:94) at LoveView.__proto._activeHier...
来源: Laya_社区 发布时间: 20190704
... 0.0px; font: 11.0px Menlo; color: #ffffff; background-color: #1e2028; min-height: 13.0px} 2019-06-18 13:34:08.458935+0800 test1[6479:65523] >>>>>>Thread Mode = single 2019-06-18 13:34:08.459188+0800 test1[6479:65523] 当前应用软件版本:2.0 2019-06-18 13:34:08.459307+0800 tes...
来源: Laya_社区 发布时间: 20190618
...module 'tslib' cannot be found 定位到代码中是: let { width, height } = Laya.stage; mac上却没有问题,win10上却出问题了,求解?难道只支持ts2.x?不支持解析赋值语法? 附件 : --> 2020-04-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20200409
...至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgCo...
来源: Laya_社区 发布时间: 20161128