• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0067 秒)

2601. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 65%]

...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

2602. UI 下的list 配合 label 为什么会多出来一大块空白 怎样去掉 [ 65%]

...{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

2603. 微信小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

... 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

2604. 请问怎么监听在IDE中创建的UI中资源的加载进度呢 [ 65%]

...置文件: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

2605. 字距的调整问题 [ 65%]

...调用这个方法,然后适配屏幕。你会发现在某些 机型内 this.designWidth 、与 this.designHeight 是无法获取的。这就尴尬了。导致后面直接不适配,或者就算调用showall可以适配,也有黑边且按钮错位。我找了超久才发现这个。怎么办...

来源: Laya_社区 发布时间: 20190228

2606. 求助关于TiledMap的版本问题 [ 65%]

....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

2607. unity导出的ls和lh文件发布到微信小程序,用微信开发者工具打开报错 [ 65%]

...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

2608. 物理系统之ConfigurableConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 65%]

...约束,为约束绑定两个刚体 ```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

2609. sprite.mask的疑问 [ 65%]

...onfig.startScene);                  Laya.timer.once(1000, thisthis.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

2610. Laya List给子元素添加事件后,滚动事件被劫持了 [ 65%]

...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