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

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

11. sprite.mask的疑问 [ 86%]

...  private a ()     {         let a:Sprite = Laya.stage.getChildAt(0).getChildAt(0).getChildByName("A") as Sprite;         let b:Sprite = Laya.stage.getChildAt(0).getChildAt(0).getChildByName("B") as Sprite;         b.removeSelf();         a.mask = ...

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

12. Laya.timer.loop 的优先级 [ 86%]

...-27 16:12 我不开定时器,game.bottom.removeChild(game.majiang_bottom.getChildAt(0));直接用 没有问题 索引没有改变 Laya_Aaron • 2018-02-27 16:13 @oy2419498011:你多描述一下,一句一句的,我还是不知道你要说什么问题 oy2419498011 • 2018-02-27 16:14 定时器...

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

13. 一个父元素 如何取到孙子元素 代码怎么写 [ 86%]

...: 与内容相关的链接 提交 2 个回复 Apple 赞同来自: object.getchildat(0).getchildat(0) 2018-04-11 0 0 分享 微博 QZONE 微信 w1114367261 赞同来自: 你可以跟句下标获对应子物体 numChildren是获取子物体数量 然后使用getChildAt(i)根据下标获取相应子物...

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

14. 滤镜-颜色滤镜 [ 84%]

...e = createApe(); redApe.filters = [redFilter]; var firstChild = Laya.stage.getChildAt(0); redApe.x = firstChild.x + apeTexture.width; redApe.y = firstChild.y; } function grayingApe() { //由 20 个项目(排列成 4 x 5 矩阵)组成的数组,灰图 var grayscaleMat = [0.3086, 0.6094, 0.0820, ...

来源: Laya_示例 发布时间: 20251209

15. 滤镜-颜色滤镜 [ 84%]

...his.createApe(); redApe.filters = [redFilter]; let firstChild = Laya.stage.getChildAt(0); redApe.x = firstChild.x + apeTexture.width; redApe.y = firstChild.y; } grayingApe() { const ColorFilter = Laya.ColorFilter; //由 20 个项目(排列成 4 x 5 矩阵)组成的数组,灰图 let grayscaleMa...

来源: Laya2.0_示例 发布时间: 20251209

16. 蒙皮动画挂点应用 [ 83%]

...管理员看看思路是不是这样的(实现挂点): body = role.getChildAt(0).getChildAt(0) as SkinnedMeshSprite3D; // animationNodeTemp.addChild(effect); body.addComponent(SkinAnimations); this.skinAnimation = body.getComponentByType(SkinAnimations) as SkinAnimations; this.skinAnimation._i...

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

17. 使用webgl之后toDataUrl返回黑色的图像 [ 83%]

...#drawToCanvas() 这片文档,我使用以下代码应该ok   Laya.stage.getChildAt(0).drawToCanvas(100, 100, 0, 0).getCanvas().toDataURL(); 但在WebGL的模式下,实现在laya.core.js的20644行,drawToCanvas返回的是pixels:Uint8Array,这东西怎么变成HTMLCanvas?   如果只能...

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

18. 设置transform.localRotation之后,就不能再使用transform.rotate了 [ 83%]

...后,就不能再使用transform.rotate了 laya3D, ... var ele=eleroot.getChildAt(0).clone(); ele.transform.position=new Laya.Vector3(0, 0, 0); scene.addChild(ele); ... ele.transform.rotate(new Laya.Vector3(10, 0, 0), true); //这里会有效 ele.transform.localRotation=new Laya.Quaternion(0, 0,0...

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

19. 官方demo2d界面混合3d模型,3d模型不显示 [ 83%]

...来自: 将示例中对应的代码改成这样的: (<Sprite3D>sp3.getChildAt(0).getChildAt(0).getChildAt(1).getChildAt(0)).layer = layer; 2022-05-06 0 14 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 158*****197 相关问题 发起...

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

20. list 下 生成图片模糊 [ 83%]

...ckground.setImage('assets/major/waysheet/ludan_small_7.png'); } background.getChildAt(0).visible = (element.pairSide & 1) == 1; background.getChildAt(1).visible = (element.pairSide & 2) == 2; if (element.pairSide == 3) { background.getChildAt(0).visible = true; background.getChildAt(1).visib...

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