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

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

3911. 获取lh动画控制失败【已解决】 [ 45%]

...来自: 谢谢。应该是:   layaMonkey.once(Event.HIERARCHY_LOADED, this, function():void{                 //获取Animator动画组件                 var zombieAnimator = (layaMonkey.getChildAt(0) as Sprite3D).getComponentByType(Animator) as Animator;     ...

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

3912. HTMLIframeElement报错 [ 45%]

...parseFromString(value,'text/xml'); if (rst.firstChild.textContent.indexOf("This page contains the following errors")>-1){ throw new Error(rst.firstChild.firstChild.textContent); } return rst; } 2018-01-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

3913. 游戏引导 原来使用 blendMode = "destination-out"; 现在怎么用? [ 45%]

...时 这句话会导致 mask 的尺寸超过2048导致引发上面的问题 this.mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");

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

3914. [LayaAir3]调用renderTexture.getDataAsync且同时勾选camera的hdr或msaa,webgl必报错 [ 45%]

...骤 1 新建个3D项目 2 在main.ts start里写 let camera:Laya.Camera = this.owner as Laya.Camera; let renderTexture:Laya.RenderTexture = camera._getRenderTexture(); let out:Uint8Array = new Uint8Array(50 * 28 * 4); let pixels:Uint8Array = await renderTexture.getDataAsync(0, 0, 50, 28, out) as Uin...

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

3915. 如何在场景中获得node的位置信息? [ 45%]

如何在场景中获得node的位置信息? let target3 = this.scene.getChildByName("Target3"); 现在我需要知道target3这个node的位置信息。有什么办法吗? 2017-11-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

3916. [LayaAirIDE 2.0]Laya官方的视频例子,用LayaAir2.1.1.1版本开发,在ios无论是safari还是通过微信打开的h5链接都无法播放 [ 45%]

...调,所以这一行一定会执行。 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); 3) 而你的代码里并不会执行这一行,你完全拷贝示例代码,会发现是能够播放的。差别就在...

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

3917. 使用 loader.create 预加载模型后。必须要在回调 Laya.Event.HIERARCHY_LOADED 中获取子元素吗?预加载是预加载的什么部分? [ 45%]

...es("LayaScene_effect/effect.lh")); effect3D.once( Event.LOADED , this,function(sprite){ var child=effect3D.getChildAt(0); } ); sfsmmc • 2017-08-21 15:53 我试过,在loader.create预加载资源完成后,通过 Laya.loader.getRes("LayaScene_effect/effect.lh") 是不会触...

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

3918. laya.maths.Quaternion_API3.0 [ 45%]

...元数 Returns void set set(x: number, y: number, z: number, w: number): this Defined in laya/maths/Quaternion.ts:297 设置四元数的值。 Parameters x: number X值。 y: number Y值。 z: number Z值。 w: number Returns this 返回四元数 setValue setValue(x: number, y: number, z: number, w:...

来源: Laya3.0_api 发布时间: 20231115

3919. 调用ui,new的时候出现Uncaught TypeError: Cannot read property 'call' of undefined [ 45%]

...ar Test = (function(_surper){    function Test(){         Test.super(this);     };     Laya.class(Test, "Test", _surper);     return Test;      })(ui.TestUI);     报错Uncaught TypeError: Cannot read property 'call' of undefined     at Function.<anonymous> (laya.core.js:127...

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

3920. 事件绑定不触发bug [ 45%]

...pos(500, 400);                           sp.on("mousedown", this, callback);                           Laya.stage.addChild(sp);                                        console.log(" laya test");                      };             ...

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