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

大约有 4,034 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0094 秒)

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

872. 关于动态绘制圆弧问题 [ 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

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

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

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

876. 内存释放问题 [ 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

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

878. 设置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

879. drawToCanvas绘制显示不全 [ 89%]

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

880. SpineSkeleton3.8.loadAni如果加载失败一定会引发LAYA底层报错 [ 89%]

...报错,,底层代码:     loop() {             if (this.assetManager.isLoadingComplete()) { //这里应该先判断加载是否成功,否则失败了也会满足条件                 this.parseSpineAni();//在处理失败资源会报错          ...

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