大约有 321 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0038 秒)
Laya_社区(195) Laya3.0_api(79) Laya2.0_文档(32) Laya_示例(7) Laya3.0_文档(3) laya_api(2) Laya2.0_api(2) Laya2.0_示例(1)
... 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
...s")); //删除原始资源中包含的默认相机 var camera = this.scene.getChildByName("Scenes").getChildByName("Main Camera"); camera.removeSelf(); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox3/skyCube.ltc"); camera.sky = skyBox; ...
来源: Laya_示例 发布时间: 20241123
...e.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Scenes").getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox3/skyCube.ltc"); cam...
来源: Laya_示例 发布时间: 20241123
...erial.SmoothnessSource_MetallicGlossTexture_Alpha; let barrel = this.scene.getChildByName("Wooden_Barrel"); let barrel1 = this.scene.getChildByName("Wooden_Barrel (1)"); let barrel2 = this.scene.getChildByName("Wooden_Barrel (2)"); let barrel3 = this.scene.getChildByName("Wooden_Barrel (3)"); barrel...
来源: Laya2.0_文档 发布时间: 20210715
... 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