大约有 4,034 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0094 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...12850行有2个`符号,不知道是不是这个引起的异常? if (!this._data){ this._data=data; if (data.meta && data.meta.image){ var toloadPics=data.meta.i...
来源: Laya_社区 发布时间: 20190202
...制圆弧问题 如果我当前要制作一个转圈的圆弧, 我只能 this.sprite_gra.graphics.clear(); this.sprite_gra.graphics.drawPie(this.width / 2, this.height / 2, this.width, SkillIcon.START_NUM, this.end, "#000000"); 在定时器里,每次都擦除后再重新绘制一个圆弧吗? ...
来源: Laya_社区 发布时间: 20171102
分享贝塞尔曲线运动 Laya.timer.frameLoop(1, this, this.move, [0.0003])//主控制 0.0003自己调整 private testSp:Laya.Sprite;//移动物体 private counts=0; //移动 自己做条件判断停止frameLoop private move(arg) { var t = arg * this.counts var point = this.bezier(...
来源: Laya_社区 发布时间: 20170830
... (force===void 0)&& (force=false); if (!this._destroyed){ this._destroyed=true; var bit=this._bitmap; if (bit){ bit._removeReference(this._referenceCount); ...
来源: Laya_社区 发布时间: 20190704
...ain.ts的 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); 该行能成功运行,执行了this.onVersionLoaded回调; 2、然后该行Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, thi...
来源: Laya_社区 发布时间: 20200111
...ya.loader下面的_infoPoll 没有发生变化, public dispose(): void { this.ani.clear(); Laya.Animation.clearCache(this.resUrl); this.ani = null; Laya.loader.clearRes(this.resUrl, true); } 我单独写了一个例子,这样释放没有问题,内存明显有变化,但是Laya.loader下面的...
来源: Laya_社区 发布时间: 20170905
... Laya.stage.addChild(rect); //增加鼠标事件 rect.on(Event.MOUSE_DOWN, this, mouseHandler); rect.on(Event.MOUSE_UP, this, mouseHandler); rect.on(Event.CLICK, this, mouseHandler); rect.on(Event.RIGHT_MOUSE_DOWN, this, mouseHandler); rect.on(Event.RIGHT_MOUSE_UP, this, mouseHandler); rect.on(Event...
来源: Laya_社区 发布时间: 20180205
...it: ISubmit; if (src._targets) { //生成渲染结果到src._targets上 /* this._submits[this._submits._length++] = SubmitCanvas.create(src, 0, null); _curSubmit = SubmitBase.RENDERBASE; //画出src._targets //drawTexture(src._targets.target.getTexture(), x, y, width, height, 0, 0); */ //应用并...
来源: Laya_社区 发布时间: 20210527
...constructor() { super(); } onAwake() { this.nativeImg = new Image(); let style = this.nativeImg.style; style.position = 'absolute'; style.visibility = 'hidden'; style.zIndex = 9999; style.height = screen....
来源: Laya_社区 发布时间: 20230323
...报错,,底层代码: loop() { if (this.assetManager.isLoadingComplete()) { //这里应该先判断加载是否成功,否则失败了也会满足条件 this.parseSpineAni();//在处理失败资源会报错 ...
来源: Laya_社区 发布时间: 20220317