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

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

271. 图片放在assets根目录下无法被引用成功,必须放到一个文件夹中 [ 73%]

...载了 var resArray = [ {url:"res/atlas/comp.json", type: Laya.Loader.ATLAS}, {url:"res/atlas/assets.json", type: Laya.Loader.ATLAS} ]; Laya.loader.load(resArray, Laya.Handler.create(null,LoadResComplete)); cuixueying • 2017-03-21 16:15 好的,谢谢你的建议,我们会...

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

272. Laya2.6.0 升级至Laya2.8.0 Native环境 加载ttf 字体不生效 [ 73%]

...ont1Req =  new Promise((resolve => {             Laya.loader.load("res/fonts/OPPOSANS-R.TTF", Laya.Handler.create(this, (success: boolean) => {                 if (!success) {                     console.error("OPPOSANS-R ttf 字...

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

273. swf转laya,还需要加载原swf?Loader type是什么? [ 73%]

swf转laya,还需要加载原swf?Loader type是什么? 问题1: mapFlash转laya格式文件,加载时还需要加载mapFlash.swf? 问题2: {url:"../../res/swf/mapFlash.swf", type:Loader.BUFFER} swf的type是Loader.BUFFER吗? 2017-01-17 添加评论 免费帖 --> 分享 微博 QZONE ...

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

274. 微信小游戏中如何加载XML文件? [ 73%]

微信小游戏中如何加载XML文件? 使用Laya.loader.load("res/xml/info.xml", Laya.Handler.create(null, onLoadedXML),null,Laya.Loader.XML);来加载xml文件,在网页中能正常加载,在微信小游戏中显示 request:fail invalid url "res/xml/info.xml"。 2018-05-19 添加评论 ...

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

275. 粒子中引用的图片能合图吗 [ 73%]

...Laya.Stage.ALIGN_MIDDLE; Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.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)); } fun...

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

276. 微信小游戏,动态加载资源很慢 [ 73%]

...nventional/NewBuilds.lh", "./LayaScene_111/Conventional/smoke.lh"];  Laya.loader.create(res3D, Laya.Handler.create(this, this.createBuild));这句子去获取资源,然后用 Laya.Loader.getRes("./Prefab/Conventional/NewBuilds.lh");方法去读取相应的文件,可是发现资源加载还是...

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

277. fillTexture使用问题 [ 73%]

... number = 1188; static height: number = 594; constructor() { super(); Laya.loader.load("res/images/map_01.png", Laya.Handler.create(this, this.bgLoaded)); } bgLoaded(): void { let t: Laya.Texture = Laya.loader.getRes("res/images/map_01.png"); this.width = 1000; this.height = 500; this.graphics.fillT...

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

278. UI-ComboBox [ 73%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { let cb = this.createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } createComboBox(...

来源: Laya2.0_示例 发布时间: 20260929

279. Laya.loader.load GPUMemory如何不增加 [ 73%]

Laya.loader.load GPUMemory如何不增加 大佬们好,地图加载, 地图我有很多块文件,预加载造成了GPUMemory过高。               var tPath=this.mergePath(this._resPath,tTileSet.image);             this._loader.load(tPath,/*laya.net.Loader.IMAGE*/"image",f...

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

280. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 73%]

... Laya.WebGL); let res:any = []; res.push({url:"res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry();   Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{...

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