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

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

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

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

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

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

773. 设置适配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

774. 原生app缓存能不能不关联热更地址 [ 61%]

...ion 的createFrames 使用已经加载的图集缓存动画失败 请问下loader如何强制加载一个文件,避免浏览器的缓存 请教下微信小游戏的内存和数据缓存? 怎样获取浏览器地址传过来的GET参数 as3中,调用原生js的的时候,如何传递原生JS...

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

775. meshRender修改材质问题 [ 61%]

... (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:483:28) at LoaderManager.__proto._endLoad (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12841:11) at Loader.onLoaded (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12818:10) at EventHandler.__proto.runWi...

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

776. UI界面加载有哪些回调方法可用 [ 61%]

UI界面加载有哪些回调方法可用 Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoad...

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

777. 报错,这不是个构造函数 "StartPage is not a constructor" [ 61%]

...n(){ (function(){ Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })() function onLoaded(){ var StartPage = new StartPage(); Laya.stage.addChild(StartPage); var GamePage = new GamePage(); Laya.stage...

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

778. 3D开启多线程报错 [ 61%]

3D开启多线程报错 开启多线程后 Laya.WorkerLoader.workerPath="libs/worker.js"; Laya.WorkerLoader.enable=true;   加载导出的3D模型 Laya.Sprite3D.load("res/assets/LayaScene_guanyu/TestScene.lh");   报错:laya.d3.js:37225 Uncaught TypeError: Failed to execute 'texImage2D' on 'Web...

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

779. 如何用代码控制panel的vscroll滚动幅度 [ 61%]

...ueying 赞同来自: package { import laya.display.Sprite; import laya.net.Loader; import laya.ui.Panel; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(600,600); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,...

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

780. 小游戏导入手机后Sprite.Mask没有正常显示 [ 61%]

...,微信开发工具里好好的,导入手机里就不行了- -   Laya.loader.load(url, Handler.create(this, function () { var t = Laya.loader.getRes(url) var sp = new Sprite() sp.graphics.drawTexture(t, 0, 0, 80, 80) that.addChild(sp)  var cMask = new Sprite() cMask.graphics.drawCircle(40, 40,...

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