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

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

901. 【求助】关于Cannot read property 'visible' of undefined问题 [ 88%]

...wFoods():void{ foodSprite = new Sprite(); Laya.stage.addChild(foodSprite); this.index = 0; foodsList = new Array(); foodsList.push(new Food("菜品1", "1", 0)); foodsList.push(new Food("菜品2", "2", 1)); foodsList.push(new Food("菜品3", "3", 2)); foodsList.push(new Food("菜品4", "4", 3)); food...

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

902. Laya内嵌iframe预览时不显示网页,编辑器和开发者工具上没问题 [ 88%]

...iframe预览时不显示网页,编辑器和开发者工具上没问题 this.iframe = Laya.Browser.document.createElement("iframe");         this.iframe.style.position ="absolute";//设置布局定位。这个不能少。         this.iframe.style.zIndex = 1000;//设置层级     ...

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

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

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

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

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

905. 物理形状扫描检测(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

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

907. 加载-单一类型资源加载 [ 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_示例 发布时间: 20260303

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

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

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