大约有 2,741 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0052 秒)
Laya_社区(1926) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(46)
...用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 问题状态 最新活动: 2018-10-25 10:20 浏览: 1675 关注: 2 人 me_more_cool • 2018-10-25 11:10 我在ls文件里看到导出的碰撞器大小位置参数和u3d的是一样的 Laya_Xq • 2018-10...
来源: Laya_社区 发布时间: 20181025
... context.ctx.setIBVB(x, y,this.iBuffer, this.vBuffer,this.iNum,null,this.shader,this.shaderValue, 0, 0); } 2.我将自定义的精灵类添加到ui根节点下,能达到我想要的效果gl.uniform1f(u_lightTime, this.timerCount)生效 3.我将自定义的精灵类添...
来源: Laya_社区 发布时间: 20181121
...de public function destroy():void { _ctx && _ctx.destroy(); _ctx = null; + super.destroy(); } public function get context():Context {即 WebGL.as 注释掉265,266 WebGLCanvas.as 在 destroy()函数的最后加 super.destroy(); 2018-06-20 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来...
来源: Laya_社区 发布时间: 20180612
...ePath, Handler.create(this, createApe)); } private function createApe(_e:*=null):void { var ape:Sprite = new Sprite(); ape.loadImage(apePath); ape.x = (Laya.stage.width - ape.width) / 2; ape.y = (Laya.stage.height - ape.height) / 2; Laya.stage.addChild(ape); applayFilter(ape); } private function app...
来源: Laya_示例 发布时间: 20251223
... Laya.Sprite3D) { //递归调用 let index = 0; let child: Laya.Sprite3D = null; while (true) { child = root.getChildAt(index) as Laya.Sprite3D; if (!child) break; if (child.name == nodeName) { child.addChild(Sprite3D); Sprite3D.transform.localPosition = new Laya.Vector3(); return true; } else { if ...
来源: Laya_社区 发布时间: 20190918
...ndManager.stopMusic(); Laya.SoundManager.playMusic("res/sound/BGM.mp3", 0, null); // var test = new EffectFlicker(); // test.startRun(); // test.startRun(); // test.create(); // var test = new Q1Buff1(); Laya.stage.off(Laya.Event.MOUSE_DOWN); Laya.stage.off(Laya.Event.MOUSE_MOVE); Laya.stage.off...
来源: Laya_社区 发布时间: 20180514
...用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 问题状态 最新活动: 2020-05-07 15:34 浏览: 2744 关注: 5 人 如果你也听说 • 2021-01-05 11:48 我这边也遇到同样得问题 没添加ccd 不管设置不设置0.1 有时候就是不触...
来源: Laya_社区 发布时间: 20200426
...son和图集 Laya.loader.load(["res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); }));子域main.ts: import GameConfig from "./GameConfig"; import BigRank from "./view/...
来源: Laya_社区 发布时间: 20200314
...3D.RENDER_STATE_DEPTH_WRITE } var shader = Laya.Shader3D.add("BLINNPHONG", null, null, true); var subShader = new Laya.SubShader(attributeMap, uniformMap); shader.addSubShader(subShader); subShader.addShaderPass(MeshBlinnPhongVS, MeshBlinnPhongPS, stateMap); ``` > BLINNPHONG材质关联渲染通道...
来源: Laya2.0_文档 发布时间: 20210715
...or = "#eeffcc"; Laya.loader.load("lang.lang",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var obj:Object=Laya.loader.getRes("lang.lang"); Text.langPacks=obj; var texts:Text=new Text(); texts.text="hello!welcom LayaBox"; Laya.stage.addChild(texts); } } } 20...
来源: Laya_社区 发布时间: 20161018