大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0101 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...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
...iframe预览时不显示网页,编辑器和开发者工具上没问题 this.iframe = Laya.Browser.document.createElement("iframe"); this.iframe.style.position ="absolute";//设置布局定位。这个不能少。 this.iframe.style.zIndex = 1000;//设置层级 ...
来源: Laya_社区 发布时间: 20200514
...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
...漏了,导致内存面板显示会不断增长: // 原始源码 if (this._instanceParticleVertexBuffer) { this._instanceParticleVertexBuffer._byteLength; this._instanceParticleVertexBuffer.destroy(); } // 更新代码 if (this._instanceParticleVertexBuffer) { memorySize += this._instanceParti...
来源: Laya_社区 发布时间: 20230424
...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
...请: 与内容相关的链接 提交 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
...类型资源 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
...次就打不开了。 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
...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
...elUI(){ ABCPanelUI.__super.call(this); } CLASS$(ABCPanelUI,'ui.abc.ABCPanelUI',_super); var __proto__=ABCPanelUI.prototype; __proto__.createChildren=function(){ ...
来源: Laya_社区 发布时间: 20161017