大约有 195 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0044 秒)
... this.myHome,//我的家园 this.famlilyMune.getChildByName("shop"),//我的家园-商店 this.famlilyMune.getChildByName("entrepot"),//仓库 this.famlilyMune.getChildByName("exchange"),//兑换中心 this.famlilyMu...
来源: Laya_社区 发布时间: 20170301
... class testbox extends Laya.Box { constructor(){ super(); console.log(this.getChildByName('btnName')) } } export class testImg extends Laya.Image { constructor(){ super(); console.log(this.getChildByName('name')) console.log(this) } } } 我这两个分别绑定在了image和box上面,但是就是...
来源: Laya_社区 发布时间: 20180724
... 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
...更改单元格属性 var hero:Image = cell.getChildByName("hero")as Image;//根据名字查找要更改的单元格 hero.disabled = HostData.array[index].hero;//属性更改 var ani :Animation = cell.getChildByN...
来源: Laya_社区 发布时间: 20180503
... 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
...道是否是我代码的问题,附件有DEMO工程 let buttonTest = this.getChildByName("buttonTest"); this.sprteCenter = this.getChildByName("sprteCenter"); this.boxSpaw = this.getChildByName("boxSpaw"); //this.spriteSpaw.loadImage("../..") buttonTest.on(Laya.Event.CLICK,this,()=>{ let point =...
来源: Laya_社区 发布时间: 20190221
... 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
...时候,我在代码中动下面圆盘的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
...(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
...d { //当list刷新时接收并更改单元格属性 var hero:Image = cell.getChildByName("hero")as Image;//根据名字查找要更改的单元格 hero.disabled = HostData.array[index].hero;//属性更改 var ani :Animation = cell.getChildByName("heroani") as Animation;//加载...
来源: Laya_社区 发布时间: 20180522