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

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

111. 游戏系怎么把一些共用的功能独立出来 [ 67%]

...JS 如:  var atlas:Object[] = [{ url: "res/atlas/choujiang.js", type: Loader.TEXT },                             { url: "res/atlas/choujiang.json", type: Loader.ATLAS },         ];         Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this...

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

112. [0]laya-zip游戏加载提速库(Laya3.0版本适配更新) [ 67%]

...res/3d/Player.zip,则使用方法为[code]// Laya 2.x及以下版本 Laya.loader.create([{ url: "res/3d/Player.zip", type: LayaZip.ZIP}])[/code][code]// Laya3.x版本 Laya.loader.load([{ url: "res/3d/Player.zip", type: LayaZip.ZIP}])[/code] 加载资源使用:[code]// Laya 2.x及以下版本 let pla...

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

113. Laya1.7.20如何加载3d资源? [ 67%]

...载速度慢 小游戏项目 加载有中文的json文件 报错 请问下loader如何强制加载一个文件,避免浏览器的缓存 本地调试加载本地图片都报错 模型资源释放问题 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 Animation ...

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

114. Animation创建和销毁的问题 [ 67%]

...同样的代码,第一次创建就可以显示动画,然后当使用了Loader.clearRes之后再次创建就怎么都显示了,是哪里用错了么?求指点 附件里上传了测试工程,打开后先按A键可以看到屏幕有两条鱼,然后再按空格将其彻底移除,然后...

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

115. unity里导出的骨骼动画无法读取 [ 66%]

...的插件的参数,你看下有没有错误   读取代码:    Laya.loader.create("res/1.lh",Handler.create(this,onModelOK),null,Sprite3D); private function onModelOK():void         {              //添加3D场景              var scene:Scene = new Scene();  ...

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

116. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 66%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); } private function setup(e:*=null):void { normalizeApe(); makeRedApe(); grayingApe(); } private function normalizeApe():void { var originalApe:Sprite = createApe(); apeTextur...

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

117. [LayaNative3]Laya3.28/9原生打包ISO视频播放闪退 [ 65%]

... Laya.stage.on(Laya.Event.MOUSE_DOWN, () => {             //Laya.loader.load("resources/files/layaAir.mp4").then(() => {                 this.VideoNode.play(); //播放视频             //});         })     } }   Laya.loader.load没有必要,在IDE里面已经赋...

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

118. 设置遮罩(JavaScript-LayaAir基础篇(JS)-位图) [ 65%]

...源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(Res,Handler.create(this,graphicsImg)); })(); function graphicsImg() { img = new Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台 Laya.sta...

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

119. SCALE_FIXED_WIDTH适配屏幕的问题 [ 65%]

...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_社区 发布时间: 20181208

120. 更改资源路径的URL [ 65%]

...? 解析sk资源报错 资源打包类型是如何判断的? 调用Laya.loader.load()方法加载资源,怎么获取所加载的资源大小. LayaAir IDE 资源窗口那块能否像unity一样加个图片预览模式的功能 网络资源的帧动画如何做? 问题状态 最新活动: 2018-1...

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