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

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

761. 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 [ 61%]

....core.js:1410)     at ResInfo.__proto.event (laya.core.js:1166)     at LoaderManager.__proto._endLoad (laya.core.js:14880)     at Loader.onLoaded (laya.core.js:14850)     at EventHandler.__proto.runWith (laya.core.js:1409)     at Loader.__proto.event (laya.core.js:1166)     at Loader.__p...

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

762. 每次进行预加载的时候都会重新加载图片 [ 61%]

...加载的时候都会重新加载图片 我用的语言是JS来写,用Laya.loader.load进行预加载,放数组url路径,在progress哪里做一个加载完成进度事件,其他参数默认原有的配置,甚至修改缓存为true ,强制加载为false,但是仍然没有效果 每次都...

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

763. 嵌入字体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...成功'); } else { log('字体注册失败'); } } } 4.2 方法二 通过ttfloader下载远程字体文件,注册时传入的字体名称为ttf文件名。 Laya.loader.load("res/maobi.ttf", Loader.TTF).then(() => { var label: Label = new Label(); label.font = "maobi"; label.text = "自定义嵌...

来源: Laya3.0_文档 发布时间: 20251010

764. .lh 文件不能在同一js文件内重复引用吗? [ 61%]

...得场景内的元素 layaAir TS项目如何引用protoBuf库? 请问下loader如何强制加载一个文件,避免浏览器的缓存 微信小程序 发布后缺少app.json文件 怎么实现同一个工程内分包? 微信小游戏中访问带空格的文件出错 问题状态 最新活动: ...

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

765. SCALE_FIXED_WIDTH适配屏幕的问题 [ 61%]

...Laya.View.regComponent("ScaleButton", ScaleButton);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/cre...

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

766. 关于mouseThough=true的问题 [ 61%]

...); var assets:Array = []; assets.push({url:[ "fish_6.png" ],type:Loader.IMAGE}); Laya.loader.load(assets,Handler.create(this,onLoaded)); } private function onLoaded():void{ var img:Image = new Image("fish_6.png"); img.on(Event.CLICK,this,onClick); img.mouseThrough = true; Laya.st...

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

767. 背景音乐音效问题 [ 61%]

... var lobbyRes:Array<any> = [ {url: "Lobby/Sound/BG309.mp3",type:Laya.Loader.SOUND}, } Laya.loader.load(fightLandlordRes, Laya.Handler.create(this, this.resLoaded)); Laya.SoundManager.playMusic("Lobby/Sound/BG309.mp3"); 2017-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

768. 急 苹果手机资源加载超过40M浏览器直接自动刷新页面 [ 61%]

...览器直接自动刷新页面 如题,利用Laya.Sprite3D.load或者Laya.loader.create加载资源,资源是.lh文件(人物模型动画骨骼贴图等),每个角色lh文件及其包含的关联资源大约3M左右,代码中加载15个不同的角色资源,在android手机上没有问...

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

769. 2d粒子旋转时大小也会随着改变 [ 61%]

2d粒子旋转时大小也会随着改变 代码: Laya.loader.load("res/Particles/Tail.part", Laya.Handler.create(this, this.OnPariticleAssetsLoaded), null, Laya.Loader.JSON); OnPariticleAssetsLoaded(setting:Laya.ParticleSetting) { let sp = new Laya.Particle2D(setting); sp.pos(200, 200); sp.emitt...

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

770. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 61%]

...Laya.View.regComponent("ScaleButton", ScaleButton);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/cre...

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