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

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

891. 2.0.1beta ctx.getImageData is not a function [ 88%]

...TypeError: ctx.getImageData is not a function. (In 'ctx.getImageData(0, 0, this._mbW, this._mbH)', 'ctx.getImageData' is undefined) url:undefined line:67259 column:43 id:1300147 TypeError: ctx.getImageData is not a function. (In 'ctx.getImageData(0, 0, this._mbW, this._mbH)', 'ctx.getImageData' is u...

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

892. ShurikenParticleInstanceSystem内存统计错误 [ 88%]

...漏了,导致内存面板显示会不断增长:   // 原始源码 if (this._instanceParticleVertexBuffer) { this._instanceParticleVertexBuffer._byteLength; this._instanceParticleVertexBuffer.destroy(); } // 更新代码 if (this._instanceParticleVertexBuffer) { memorySize += this._instanceParti...

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

893. 物理形状扫描检测(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 88%]

...ya.SphereColliderShape(0.5); //使用球型碰撞器进行形状检测 if (this.castAll) { //进行形状检测,检测所有碰撞的物体 this.scene.physicsSimulation.shapeCastAll(sphereCollider, this.from, this.to, this.hitResults); for (i = 0, n = this.hitResults.length; i 该示例中射线摆...

来源: Laya2.0_文档 发布时间: 20210715

894. 2.0如何射线检测 [ 88%]

...请: 与内容相关的链接 提交 1 个回复 158*****364 赞同来自: this.mousePos = new Laya.Vector2(Laya.MouseManager.instance.mouseX, Laya.MouseManager.instance.mouseY); //鼠标点击屏幕产生射线         this.camera.viewportPointToRay(this.mousePos, this.ray);      var ph...

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

895. 加载-单一类型资源加载 [ 88%]

...类型资源 Laya.loader.load("../../res/apes/monkey0.png", Handler.create(this, onAssetLoaded1)); // 加载多张png类型资源 Laya.loader.load( ["../../res/apes/monkey0.png", "../../res/apes/monkey1.png", "../../res/apes/monkey2.png"], Handler.create(this, onAssetLoaded2)); })(); function onAsse...

来源: Laya_示例 发布时间: 20250225

896. Laya.loader Progress回调形同虚设 [ 88%]

...png", "res/4.png", "res/5.png", "res/6.png", "res/7.png" ], Handler.create(this, onLoaded),Handler.create(this, onProgress)); //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded),Handler.create(this, onProgress)); } private function onProgress(v:Number):void { trace("onProgress"...

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

897. DialogManager设置弹出效果后,第一次能打开,第二次就打不开了。 [ 88%]

...次就打不开了。 Dialog.manager.popupEffectHandler = Handler.create(this,(e)=>{ var dialog:Dialog = <Dialog>e; dialog.y = - dialog.height; var yy:number = (Laya.stage.height - dialog.height)/2; Laya.Tween.to(dialog,{y:yy},600,Laya.Ease.backOut); },[],false); this.gameHelpDialog = new v...

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

898. 1.5.0 LayaAir IDE发布UI资源缺失! [ 88%]

...elUI(){                          ABCPanelUI.__super.call(this);         }         CLASS$(ABCPanelUI,'ui.abc.ABCPanelUI',_super);         var __proto__=ABCPanelUI.prototype;         __proto__.createChildren=function(){                         ...

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

899. 莫名其妙的报错,this.getStyle()是null [ 88%]

莫名其妙的报错,this.getStyle()是null 2018-08-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 chasel 赞同来自: 莫名其妙的错误啊 2018-08-24 0 1 分享 微博 QZONE 微信 为什么被折叠?...

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

900. 物理形状扫描检测(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 88%]

...ya.SphereColliderShape(0.5); //使用球型碰撞器进行形状检测 if (this.castAll) { //进行形状检测,检测所有碰撞的物体 this.scene.physicsSimulation.shapeCastAll(sphereCollider, this.from, this.to, this.hitResults); for (i = 0, n = this.hitResults.length; i 该示例中射线摆...

来源: Laya2.0_文档 发布时间: 20210714