大约有 378 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0034 秒)
Laya_社区(103) Laya3.0_api(79) Laya2.0_api(73) laya_api(68) Laya2.0_文档(34) Laya_示例(12) Laya3.0_文档(8) Laya2.0_示例(1)
...; for(var i:number = 0;i<childLength;i++) { var childSprite:Node = scene3d.getChildAt(i); if(childSprite instanceof MeshSprite3D) { //设置精灵接收阴影 childSprite.meshRenderer.receiveShadow = true; //设置精灵可投射阴影 childSprite.meshRenderer.castShadow = true; } else if(childSprit...
来源: Laya2.0_文档 发布时间: 20210715
...0;i<this.roleBox.numChildren;i++){ let role:Laya.Animation=this.roleBox.getChildAt(i) as Laya.Animation // 只要去掉下面这行代码就不会消失 let isIntersect:boolean=this.home.player.getBounds().intersects(role.getBounds()) }代码的碰撞逻辑,就是以上的代码,但是发现i...
来源: Laya_社区 发布时间: 20171111
...出的.lh中,components全是空的。导致 var zombieAnimator = plane.getChildAt(0).getComponentByType(Laya.Animator); zombieAnimator.play("Idle"); 播放动画是,zombieAnimator 是null 2018-05-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登...
来源: Laya_社区 发布时间: 20180508
...; for(var i:number = 0;i<childLength;i++) { var childSprite:Node = scene3d.getChildAt(i); if(childSprite instanceof MeshSprite3D) { //设置精灵接收阴影 childSprite.meshRenderer.receiveShadow = true; //设置精灵可投射阴影 childSprite.meshRenderer.castShadow = true; } else if(childSprit...
来源: Laya2.0_文档 发布时间: 20210715
...iKenParticle3D粒子我如何用代码控制它的速度、大小? 我用getChildAt取不到ShuriKenParticle3D,显示numChilds为0 2018-03-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: h...
来源: Laya_社区 发布时间: 20180328
...dialog,manager下就有多少的子对象 var dia:Dialog=Dialog.manager.getChildAt(2) as Dialog;//获取manager下的子对象,通过zOrder改变其层级 dia.zOrder=2000; } 2017-06-06 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 q...
来源: Laya_社区 发布时间: 20170606
...然后根据数量进行for循环获取name为b的所有物体 Laya.stage.getchildAt(i);//根据下标获取物体 2018-04-16 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 lu632375951 相关问题 btn 鼠标移动上去默认文本颜...
来源: Laya_社区 发布时间: 20180416
...learTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeC...
来源: Laya3.0_api 发布时间: 20231115
...不会是下面这段代码引起的: var meshSprite3D = sceneSprite3d.getChildAt(0); 附件 : --> CreateHeightMap.rar 2017-06-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 183*****755 赞同来自: sfsmm...
来源: Laya_社区 发布时间: 20170605
...r值时,放在函数中调用 for(var i=0;i<10;i++)(){ game.box.getChildAt(i).zOrder=100-i; }; last_one() function last_one(){ var n=game.box.numChildren; game.box.removeChildAt(n-1); }; //默认zOrder最大的为第一个; 2018-03-05 1 条评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20180305