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

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

301. 多线程worker(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 58%]

....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实...

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

302. 微信小游戏利用开放域好友关系链做排行榜 [ 58%]

...代码: import Label = Laya.Label; import Handler = Laya.Handler; import Loader = Laya.Loader;  class GameBootstrap{      public constructor(){         this.init();     }      private init():void{         //初始化微信小游戏         Laya.MiniAdpter.ini...

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

303. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 58%]

....init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():...

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

304. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 57%]

...Enter(){ this.img_sample.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this...

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

305. AtlasGenerator.exe指令出错 [ 57%]

...加皮肤出错 微信关系链开发,如果在开放域那边使用Laya.loader.load加载就会出错 问题状态 最新活动: 2018-03-13 21:26 浏览: 1003 关注: 2 人 weedong • 2020-04-07 21:30 你好,最后有没有实现命令行打图集?

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

306. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 57%]

Laya.loader.load(xx) 当地址""的时候,会报错。 laya 引擎是2.5的      Laya.loader.load(cg_url,Laya.Handler.create(this,()=>{             let tur:Laya.Texture = Laya.loader.getRes(cg_url);             if(tur)img_cg.graphics.drawImage(tur)        ...

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

307. swf转换 [ 57%]

...止工作 unity的坐标和旋转转换到laya需要做什么运算 请问Loader.load支持支持swf格式的预加载吗? 请问Laya支持什么样的swf,我运行公司美术给的swf,屏幕一片黑 龙骨动画转换失败 Cannot read property 'name' of undefined layabox 3d格式转换 的...

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

308. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 57%]

...图片加密数据是在图片的前面写入了四个字节的数据 Laya.loader.fetch("resources/res/test.bin","arraybuffer").then((res)=>{ //获得res的ArrayBuffer数据 let arraybuffer: ArrayBuffer = res; //Byte数组接收arraybuffer let byte:Byte = new Byte(arraybuffer); //从第四个字...

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

309. .gitignore 文件,忽略哪些些比较好? [ 57%]

...map生成的json文件里data是这种格式,地图显示有误 请问下loader如何强制加载一个文件,避免浏览器的缓存 微信小程序 发布后缺少app.json文件 微信小游戏中访问带空格的文件出错 粒子系统官例里载入的那些json文件是用什么软件...

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

310. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 57%]

...年了至今无解答 let aniEffConfPath = './res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报...

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