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

大约有 1,613 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0051 秒)

401. 粒子中引用的图片能合图吗 [ 71%]

....loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void {     Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } function onPartLoaded(data: any) {     let part = new Laya.Particle2D(data)...

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

402. 加载.lh文件 运行后黑屏 无法显示 [ 71%]

...yaMonkey.lh", type: Laya3D.HIERARCHY, priority: 1}];     //Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete));         Laya.loader.create("Export/LayaScene_JJF/Conventional/JJF.lh", Laya.Handler.create(this, this.onComplete));     }     public onComplete():v...

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

403. 多次用Laya.Scene.load加载同名的.ls场景,返回是同一个 [ 71%]

...载场景,注意:不缓存 然而它的实现调用的是 Laya.loader.create(url, null, null, Scene); 但是create的第7个参数,cache默认是true。   也就是说Laya.Scene.load的注释不太对。 不知道是不是这个原因,请官方答疑。 2018-09-07 0 0 分享 微博 QZONE ...

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

404. android native环境,ttfloader加载的字体,设置无效果! [ 71%]

...loader.fontName = "ubuntu";             ttfloader.err = Laya.Handler.create(this, () => {                 console.log("加载失败ubuntu-bold.ttf");             });             ttfloader.complete = Laya.Handler.create(this, () => {                        ...

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

405. 【BUG】加载的url中有错误url时,laya偶现加载complete不回调 [ 71%]

... { url: this.zombie_anim_path5 }, ]; Laya.loader.retryNum = 0; Laya.loader.create(res3DArr, Laya.Handler.create(this, this.onRes3DLoaded), null);   结论:onLoad时checkNext触发endLoad,会重置customParse属性,onError的时候没有触发这个逻辑,导致复用这个loader时,custom...

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

406. 2.2.0beta4 vivo小游戏加载不了3D场景 [ 71%]

...机上就出问题了,main.ls是unity导出来的空场景 Laya.loader.create(`LayaScene_main/Conventional/main.ls`, Laya.Handler.create(this, (scene: Laya.Scene3D)=>{ Laya.stage.addChild(scene); }));   附件 : --> myLaya.zip 2019-09-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

407. sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? [ 71%]

...= new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); this.tMap.createMap("res/mario_map/new_map2.json", viewRect, Laya.Handler.create(this,this.initMap)); } private initMap(): void { var layer = this.tMap.getLayerByIndex(9); var gs = layer.getObjectByName('others1'); var sp: Laya.Sprite ...

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

408. Sprite3D的克隆(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 71%]

...e3D&name=Sprite3DClone)) ```typescript { ...... //加载模型 Laya.loader.create("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Handler.create(this, onComplete)); } ////完成回调 public function onComplete():void { //获取资源 var layaMonkey:Sprite3D = scene.addChild(Loader.getRes("res/...

来源: Laya2.0_文档 发布时间: 20210715

409. laya.utils.Tween.to的第一个参数可以是个label? [ 70%]

...化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。          * @param    duration 花费的时间,单位毫秒。          * @param    ease 缓动类型,默认为匀速运动。         ...

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

410. 我二进制资源load之后,为什么通过getRes获取不到。 [ 70%]

...ata.txt", type: Laya.Loader.BUFFER }]; Laya.loader.load(resources, Handler.create(this, this.onComplete), Handler.create(this, this.onProcess), null, 1, false); } onComplete(e,a,b) { console.log('资源加载完成!!',e,a,b); var cfg = Laya.Loader.getRes("config/data.txt"); console.log('cfg===',...

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