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

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

211. TS分离模式设置未打包图片输出目录导出资源无法加载未打包资源 [ 81%]

...出资源无法加载未打包资源 如图设置 修改加载代码 Laya.loader.load([     { url: "res/atlas/comp.atlas", type: Loader.ATLAS },     { url: "unpack/comp/image.png", type: Loader.IMAGE },     { url: "test/TestPage.json", type: Loader.JSON }, ], Handler.create(this, this.on...

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

212. [LayaAir3]Laya.loader.loadPackage加载分包,如果判断成功与失败 [ 81%]

[LayaAir3]Laya.loader.loadPackage加载分包,如果判断成功与失败 测试代码,无论sub111是否存在,都会打印“pack sub1 loaded”,请问如何判断是否加载分包成功或失败? Laya.loader.loadPackage("sub1111").then(() => {                 console.log('p...

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

213. Templet资源删除不掉 [ 81%]

...*=null):void         {             // var texture:Texture = Loader.getRes("res/Dragon.png");             // var data:ArrayBuffer = Loader.getRes("res/Dragon.sk");             factory = new Templet();             factory.on(Event.COMPLETE, this, onSkeletonDat...

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

214. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 81%]

... constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let label: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-...

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

215. Sprite-显示图片 [ 81%]

...adImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.po...

来源: Laya_示例 发布时间: 20251130

216. 【紧急】clearRes清理缓存后,再加载图片会有延时显示问题 [ 81%]

...缓存后,再加载图片会有延时显示问题 我想咨询一下: loader.clearRes()清理指定资源地址的缓存后,用loader.load 加载不回来了吗?为何再次加载同一图片显示时有延迟?   http://m.infinistudio.cn/test/nestle/ 点击1,再点击2, 再点击1...

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

217. version.json版本文件会加载缓存的,看了源码也没有忽略缓存 [ 81%]

...) {             ResourceVersion.type = type;             ILaya.loader.load(manifestFile, Handler.create(null, ResourceVersion.onManifestLoaded, [callback]), null, Loader.JSON);         } load没有设置忽略缓存   应该 static enable(manifestFile, callback, type = 2) {      ...

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

218. Android替换游戏启动logo看不到设置的图片 [ 81%]

...播完一遍动画); 3、示例(AS为例)package { import laya.net.Loader; import laya.utils.Handler; import view.TestView; public class LayaUISample { private var dd:*; public function LayaUISample() { //初始化引擎 Laya.init(600, 400); //判断是否在加速器端 __JS__("if(window.conc...

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

219. 在加载多个资源的时候,加载进度异常 [ 81%]

在加载多个资源的时候,加载进度异常 Laya.loader.load(["res/atlas/images.atlas", "res/atlas/f1.atlas", "res/atlas/f2.atlas", "res/atlas/f3.atlas", "res/atlas/f4.atlas", "res/atlas/f5.atlas"],   Laya.Handler.create(this, function(){ }),  Laya.Handler.create(this, function(e){    c...

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

220. laya.net.Loader [ 81%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderProperties | Methods | Events | Constants Packagelaya.netClasspublic class LoaderInheritanceLoader EventDispatcher Object Loader 类可用来加载文本、JSON、XML、二进制、图像等资源。 Public Properti...

来源: laya_api 发布时间: 20170929