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

大约有 2,741 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0052 秒)

2361. u3d导出的碰撞器,为什么相对速度稍微快点就不能检测到碰撞触发trigger回调,而在laya里用代码添加触发器相对速度再快也可以触发回调 [ 48%]

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

2362. 自定义渲染后,customRender里设置uniform值在ui节点下不生效 [ 48%]

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

2363. sprite.drawToCanvas绘制纹理无法释放内存资源 [ 48%]

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

2364. 滤镜-模糊滤镜 [ 48%]

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

2365. LayaAir IDE 2.2.0beta4 动画挂点(骨骼挂点)无效 [ 48%]

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

2366. 在微信分享成功的回调函数里,Laya播放音效失败。 [ 48%]

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

2367. 3d物理引擎有碰撞不触发onCollisionEnter [ 48%]

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

2368. l微信开放域无法显示,但是可以正常传数据 [ 48%]

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

2369. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 48%]

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

2370. LayaAir IDE 语言包的使用? [ 48%]

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