• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0108 秒)

881. 我创建了 一个 dialogUI,怎么在页面中打开? [ 89%]

我创建了 一个 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

882. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 89%]

...率依赖于参数指定时间。 ```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

883. Invalid character: '`' Stack:[native code]异常 [ 89%]

...12850行有2个`符号,不知道是不是这个引起的异常? if (!this._data){                     this._data=data;                     if (data.meta && data.meta.image){                         var toloadPics=data.meta.i...

来源: Laya_社区 发布时间: 20190202

884. 关于动态绘制圆弧问题 [ 89%]

...制圆弧问题 如果我当前要制作一个转圈的圆弧, 我只能 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

885. 分享贝塞尔曲线运动 [ 89%]

分享贝塞尔曲线运动 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

886. Texture引用计数不为0的时候执行销毁纹理destroy方法后再加载这个资源会导致重复加载 [ 89%]

...      (force===void 0)&& (force=false);         if (!this._destroyed){             this._destroyed=true;             var bit=this._bitmap;             if (bit){                 bit._removeReference(this._referenceCount);   ...

来源: Laya_社区 发布时间: 20190704

887. QQ小游戏demo跑不起来 MiniFileMgr.fs.readFile无回调 [ 89%]

...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

888. sprite点击事件 位置便宜 [ 89%]

... 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

889. 内存释放问题 [ 89%]

...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

890. 设置cacheAs = bitmap时, drawCanvas 的一个bug [ 89%]

...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