大约有 800 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0051 秒)
Laya_社区(407) Laya2.0_文档(122) Laya3.0_api(79) Laya2.0_api(73) Laya3.0_文档(56) Laya_示例(43) laya_api(20)
...> { this.createBtn(); this.createvbox(); // 添加VBox组件 this.owner.addChild(this.vbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins); this.btn2 = new Laya.Button(this.skins); this.btn3 = new Laya.Button(this.skins); } // 创建VBox组件 pri...
来源: Laya3.0_文档 发布时间: 20240910
...ildren parent scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getCompo...
来源: Laya3.0_api 发布时间: 20231115
...gt; { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d.addChild(sp3); }); }) } printProgress(r...
来源: Laya3.0_文档 发布时间: 20250103
...nish(): void { //初始化3D场景 this.scene = (<Scene3D>Laya.stage.addChild(Loader.createNodes("res/threeDimen/scene/TerrainScene/XunLongShi.ls"))); //根据场景中方块生成路径点 this.initPath(this.scene); //获取可行走区域模型 var meshSprite3D: MeshSprite3D = (<MeshSprit...
来源: Laya3.0_文档 发布时间: 20230303
...sp = new Laya.Sprite(); sp.graphics.drawTexture(texture, 0, 0); Laya.stage.addChild(sp); //3D加载图集 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(64, 64))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); var materia...
来源: Laya_社区 发布时间: 20180331
...> { this.createBtn(); this.createHbox(); // 添加HBox组件 this.owner.addChild(this.hbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins); this.btn2 = new Laya.Button(this.skins); this.btn3 = new Laya.Button(this.skins); } // 创建HBox组件 pri...
来源: Laya3.0_文档 发布时间: 20240910
...景 var scene:Scene3D = Laya.loader.getRes("monkey/monkey.ls"); Laya.stage.addChild(scene); //从场景中获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //后续对摄像机的逻辑操作....... } } } ``` 在Untiy中,摄像机默认名为“Main Camera”...
来源: Laya2.0_文档 发布时间: 20210715
...Laya.loader.getRes("res/lk4.lh") as Laya.Sprite3D; //加载到场景 scene.addChild(role3D); //此处报错 var ani = role3D.getComponent(Laya.Animator) as Laya.Animator; //播放攻击状态 ani.play(); chrome 调试: addChild(node) { if (!node || this.destroyed || node === ...
来源: Laya_社区 发布时间: 20191203
...anelRotationTest(Laya.Sprite); testSpriteRotation.pos(300,260); Laya.stage.addChild(testSpriteRotation); var testPanelRotation:PanelRotationTest = new PanelRotationTest(Laya.Panel); testPanelRotation.pos(1000,260); Laya.stage.addChild(testPanelRotation); Laya.Tween.to(testPanelRotation,{rotation:720...
来源: Laya_社区 发布时间: 20170814
...是dialog吗,看你的代码好像使用错了dialog不用自己在单独addChild到某个显示对象身上,这块你还需要在查下具体问题 2018-04-07 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 luoluqi 相关问题 2.0...
来源: Laya_社区 发布时间: 20180407