大约有 426 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)
Laya_社区(344) Laya2.0_文档(27) Laya3.0_api(21) Laya3.0_文档(12) Laya2.0_示例(9) Laya_示例(9) laya_api(2) Laya2.0_api(2)
...进行进度值传参 dd.loading(50); } //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } 这里的dd=__JS__("window.loadingView"); 换成 ts 怎么写 Apple • 2018-04-16 16:22 直接 Laya.Brows...
来源: Laya_社区 发布时间: 20180416
...aya.utils.Timer; import laya.display.Sprite; import laya.net.Loader; import laya.ui.TextArea; import laya.resource.Texture; import laya.maths.Point; import laya.utils.Tween; import laya.d3.resource.models.PrimitiveMesh; import laya.debug.DebugP...
来源: Laya_社区 发布时间: 20170921
loader资源放cdn上走不通 这个路径该怎么改呢,图集加载到了,但是读取的图片还是本地的路径 附件 : --> 2018-01-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞...
来源: Laya_社区 发布时间: 20180121
...``typescript if(Laya.Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用...
来源: Laya2.0_文档 发布时间: 20210715
...。layaair折腾半天,搞不明白image组件,sprite.loadImage,Laya.loader.load如果用for循环操作,响应事件中用什么方法指向事件的发起对象?原来用e.target和e.data。现在事件发起者和加载的数据怎么得到呢?(不用循环可以用直接用变量...
来源: Laya_社区 发布时间: 20161023
...,导致这个问题是因为没有资源也调用了加载完成, Laya.loader.on(Laya.Event.ERROR, this, this.onLibError); Laya.loader.load([{ url:com.globals.GameConfig.XML_LIB_URL, type:Loader.BUFFER }], Handler.create(this, this.onLibLoaded)); 资源是不存在的,然后还是调用了 thi...
来源: Laya_社区 发布时间: 20171102
...板,urls接收的是图片地址集合,所以我们需要先使用Laya.loader.load()将图集文件先加载进来。下面我们直接看示例代码及注释。 ```javascript //初始化舞台 Laya.init(1334, 750,Laya.WebGL); //加载完动画的图集后执行回调方法onLoaded Laya.loader....
来源: Laya2.0_文档 发布时间: 20210715
...小游戏下图片错乱 static preLoadPublicAssets(){ this.sAssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets inited !!!!") console....
来源: Laya_社区 发布时间: 20180609
...本1.7.15beat 资源管理的问题 问题描述: 1.官方是没有提供loader加载外部资源的策略吗? 如果有怎么使用? 2使用1.7.15beat ide发布版本管理文件被重命名后,本地4M资源中layaNativeDir 里面的资源会加载不到! 我找到的问题: 1.我只能通...
来源: Laya_社区 发布时间: 20180118
...。 ```typescript if(Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Handler.create(this,function(){ //加载完成 //使用接口将图集透传到子域 MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将jso...
来源: Laya2.0_文档 发布时间: 20210715