大约有 3,990 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0095 秒)
Laya_社区(2836) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(55)
...isplayData=this.currSlotData.displayArr[index]; if (this.currDisplayData){ var tName=this.currDisplayData.name; this.currTexture=this.templet.getTexture(tName); if (this.currTexture && Render.isWebGL && this.currDisplayData.type==0 && this.currDisplayData.uvs){ this.currTextu...
来源: Laya_社区 发布时间: 20180106
Laya.URL.basePath加载不到网络资源 var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { url: "images/background.png", type : Laya.Loader.IMAGE}, ]; Laya.loader.load(resArray, Laya.Handler.create(this, th...
来源: Laya_社区 发布时间: 20180531
...peError: Cannot read property 'length' of undefined for (var i = 0; i < text.length; i++) { ^^ TypeError: Cannot read property 'length' of undefined at conchTextCanvas.measureText (appl...
来源: Laya_社区 发布时间: 20190829
...继承式页面类,可以直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果 * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能...
来源: Laya_社区 发布时间: 20200720
...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.st...
来源: Laya2.0_api 发布时间: 20190513
...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.st...
来源: Laya2.0_api 发布时间: 20190513
... 对象高度 * * 示例用法: * var div:HTMLDivElement=new HTMLDivElement(); * div.innerHTML = "<link type='text/css' href='html/test.css'/><a href='alink'>a</a><div style='width:130px;height:50px;color:#ff0000'>div</div&g...
来源: Laya_社区 发布时间: 20190815
...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.st...
来源: Laya2.0_api 发布时间: 20190513
...string, strokeColor: string): Laya.Label { const STROKE_WIDTH: number = 4; var label: Laya.Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor; } thi...
来源: Laya3.0_文档 发布时间: 20251010
... public function set avatar(value:Avatar):voidcullingModeproperty public var cullingMode:int = 2 裁剪模式speedproperty speed:Number 获取动画的播放速度,1.0为正常播放速度。 Implementation public function get speed():Number public function set speed(value:Number):...
来源: Laya2.0_api 发布时间: 20190513