大约有 378 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0035 秒)
Laya_社区(103) Laya3.0_api(79) Laya2.0_api(73) laya_api(68) Laya2.0_文档(34) Laya_示例(12) Laya3.0_文档(8) Laya2.0_示例(1)
... 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
...-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
...: 与内容相关的链接 提交 2 个回复 Apple 赞同来自: object.getchildat(0).getchildat(0) 2018-04-11 0 0 分享 微博 QZONE 微信 w1114367261 赞同来自: 你可以跟句下标获对应子物体 numChildren是获取子物体数量 然后使用getChildAt(i)根据下标获取相应子物...
来源: Laya_社区 发布时间: 20180411
...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
...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
...管理员看看思路是不是这样的(实现挂点): 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
...#drawToCanvas() 这片文档,我使用以下代码应该ok Laya.stage.getChildAt(0).drawToCanvas(100, 100, 0, 0).getCanvas().toDataURL(); 但在WebGL的模式下,实现在laya.core.js的20644行,drawToCanvas返回的是pixels:Uint8Array,这东西怎么变成HTMLCanvas? 如果只能...
来源: Laya_社区 发布时间: 20170523
...后,就不能再使用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
...来自: 将示例中对应的代码改成这样的: (<Sprite3D>sp3.getChildAt(0).getChildAt(0).getChildAt(1).getChildAt(0)).layer = layer; 2022-05-06 0 14 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 158*****197 相关问题 发起...
来源: Laya_社区 发布时间: 20220506
...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