大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0067 秒)
Laya_社区(3324) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...d: Number = Laya.timer.currTimer * 0.002; for (var i: int = 0, n: Number = this.lights.length; i 加载场景,并且添加多光源 ```typescript Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Handler.create(this, function (scene: Scene3D): void { //添加到场景 L...
来源: Laya2.0_文档 发布时间: 20210714
...{text:"six"}}); data.push({m_label:{text:"seven"}}); } this.m_list.array = data; this.m_list.vScrollBarSkin=''; } list 的宽高 和下面的box 和label宽高一致 183*****288 • 2018-02-10 13:32 但展示出来就是拉倒最下面 会空着一大块 很难看 qian • 2018-0...
来源: Laya_社区 发布时间: 20180210
... onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2...
来源: Laya3.0_文档 发布时间: 20251010
...置文件:Laya.loader.load(['res/atlas/game.json'],Laya.Handler.create(this,Slot.onSourcesLoaded), Laya.Handler.create(this,Slot.onSourcesLoading,null,false),Laya.Loader.ATLAS);这样写似乎监听的当前加载进度不太对,我总共有6张未打包图和1张打包图 打印的结果: 附...
来源: Laya_社区 发布时间: 20170225
...调用这个方法,然后适配屏幕。你会发现在某些 机型内 this.designWidth 、与 this.designHeight 是无法获取的。这就尴尬了。导致后面直接不适配,或者就算调用showall可以适配,也有黑边且按钮错位。我找了超久才发现这个。怎么办...
来源: Laya_社区 发布时间: 20190228
....createMap("res/TiledMap/orthogonal-outside.json",viewRect, Handler.create(this, this.onCreateMapLoaded)); } private function onCreateMapLoaded():void { trace("loaded..."); } } } testTiledMap.zip 2018-04-28 2 2 分享 微博 QZONE 微信 rabbit 赞同来自: layabox 你遇到什么问题,能具...
来源: Laya_社区 发布时间: 20180428
...ne: the .lh file root type must be Scene,please use other function to load this file."或"Sprite3D: The .lh file root type must be Sprite3D,please use other function to load this file." 跟了一下,发现__proto.onAsynLoaded这个function接收的参数data在layaIDE中被正确解析为json数...
来源: Laya_社区 发布时间: 20180222
...约束,为约束绑定两个刚体 ```typescript var boxA:MeshSprite3D = this.addRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigidBodyBox(new Vec...
来源: Laya2.0_文档 发布时间: 20210715
...onfig.startScene); Laya.timer.once(1000, this, this.a) } private a () { let a:Sprite = Laya.stage.getChildAt(0).getChildAt(0).getChildByName("A") as Sprite; let b:Sprite = Laya.stage.getChildAt(0)....
来源: Laya_社区 发布时间: 20200813
...loadImage('xxx.png'); //此处无论是这样给 list.on(Laya.Event.CLICK, this, () => { console.log(413132131) }) //还是在handler中去渲染,都会滚动不了 txArray.push(list);} storeTxList.array = txArray; Laya.stage.addChild(storeTxList); 悬赏找大神看问题 export defau...
来源: Laya_社区 发布时间: 20190711