大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0108 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
我创建了 一个 dialogUI,怎么在页面中打开? this.wrong=new ui.wrongUI; this.wrong.width=300; this.wrong.height=200; this.wrong.x=50; this.wrong.y=100; this.doworkui.addChild(this.wrong); doworkui是我的一个UI,我要在这个面中打开一个对话框. wrongUI是我创建的 对话...
来源: Laya_社区 发布时间: 20171027
...率依赖于参数指定时间。 ```javascript Laya.timer.frameLoop(1, this, animateFrameRateBased); Laya.stage.on("click", this, dispose); private function dispose():void { Laya.timer.clear(this, animateFrameRateBased); } ``` 当一个对象的生命周期结束时,记得清...
来源: Laya2.0_文档 发布时间: 20210715
...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
... 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
...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
...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