大约有 493 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0045 秒)
Laya_社区(249) Laya3.0_api(79) Laya2.0_api(73) laya_api(68) Laya2.0_文档(17) Laya_示例(4) Laya3.0_文档(3)
...nction onRender(item,index){ var dataIndex = data[index]; var label = item.getChildByName('lab'); if(dataIndex.type == false){ label.bgColor = '#f3d9b4'; }else { label.bgColor = 'red'; } } function onSelect(ev,index){ data[index].type = data[index].type ? false : true; record_slide_list.setItem(inde...
来源: Laya_社区 发布时间: 20170803
... this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collision.restitution = 0.1; this.ball = this.scene3D.getCh...
来源: Laya_社区 发布时间: 20200512
... this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collision.restitution = 0.1; this.ball = this.scene3D.getCh...
来源: Laya_社区 发布时间: 20200515
... self.owner.addChild(scene3d); var lv = scene3d.getChildByName("--- GAMEPLAY ---").getChildByName("Levels Parent"); // Laya.Sprite3D.load("res/prefabs/Conventional/prefabs.lh", Laya.Handler.create(null, function (sp) { ...
来源: Laya_社区 发布时间: 20220506
... 场景中有个图片sprite,怎么通过代码获取这个图片节点? getChildByName,这个我知道,怎么得到根节点再getChildByName? 2019-09-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为...
来源: Laya_社区 发布时间: 20190917
...时候,我在代码中动下面圆盘的transform.positionthis.block = s.getChildByName("target_root").getChildByName("PendulumCircleTarget").getChildByName("MoveBlockPivot").getChildByName("TargetGuard") as Laya.Sprite3D; Laya.stage.on(Laya.Event.KEY_PRESS, this, this.KeyPress); this.pivot = s.ge...
来源: Laya_社区 发布时间: 20171228
...3d Laya.stage.addChild(scene); //获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //清除摄像机的标记 camera.clearFlag = BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; direc...
来源: Laya2.0_文档 发布时间: 20210715
...(scene); //添加方向光 var directionlight: Laya.DirectionLight = scene.getChildByName( "Directional Light" ) as Laya.DirectionLight; this.directionlight = directionlight; //加入子層人物腳色到舞台 var littleGirl: Laya.Sprite3D = scene.getChildByName( "Girl" ) as Laya.Sprite3D; scene.ad...
来源: Laya_社区 发布时间: 20200917
...tor3(8, 8, 8); this.layaMonkeyMeshSprite3D = this.layaMonkey.getChildAt(0).getChildByName("LayaMonkey"); //添加盒型碰撞器 var boxCollider = this.layaMonkeyMeshSprite3D.addComponent(Laya.BoxCollider); boxCollider.setFromBoundBox(this.layaMonkeyMeshSprite3D.meshFilter.sharedMesh.boundingBox); t...
来源: Laya_示例 发布时间: 20241002
...{ 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 = b; } 2020-08-14 0 2...
来源: Laya_社区 发布时间: 20200813