大约有 446 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
...文件后,除第一次外,再加载特效不显示了? 缓存:Laya.loader.create([ ... "Resources/Player/nan_jianshi/Effect/dmc_skycity_attack1/.lh", ... ], XXX, XXX); 加载: var effect = actor.mView.root.addChild(Laya.Sprite3D.load...
来源: Laya_社区 发布时间: 20170614
...ew Laya.Sprite();绘制图形以后,怎么删除释放资源? 请问下loader如何强制加载一个文件,避免浏览器的缓存 为什么有的图片打包,有的图片不打包? 如图 问题状态 最新活动: 2020-09-22 17:07 浏览: 2135 关注: 1 人
来源: Laya_社区 发布时间: 20200922
... constructor() { Laya.init(600, 400); Laya.stage.bgColor = "#123456"; Laya.loader.load([ { url: "res/beijing/beijing2.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.onL...
来源: Laya_社区 发布时间: 20180507
...EFFECT_PATH_3D+url; var itemComplete:Sprite3D = Laya.loader.getRes(_path); if(itemComplete == null || itemComplete.loaded == false){ var groupName:String = null; if(isGroup == true){ ...
来源: Laya_社区 发布时间: 20180601
...ra 和light,所有代码如下 import Handler=laya.utils.Handler; import Loader=laya.net.Loader; // 程序入口 class GameMain { constructor() { Laya.init(600, 400); Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL; Laya.stage.alignH = Laya.Stag...
来源: Laya_社区 发布时间: 20171227
...ont1Req = new Promise((resolve => { Laya.loader.load("res/fonts/OPPOSANS-R.TTF", Laya.Handler.create(this, (success: boolean) => { if (!success) { console.error("OPPOSANS-R ttf 字...
来源: Laya_社区 发布时间: 20201104
...内容相关的链接 提交 3 个回复 Laya_XS 赞同来自: 你用Laya.loader.load一次加载很多图片,也是在图片加载完毕才返回完成事件的,但是有一种情况也会返回完成,就是你资源加载失败也会忽略,因为我们也不会因为你在队列里存在...
来源: Laya_社区 发布时间: 20170220
...Laya.Stage.ALIGN_MIDDLE; Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } fun...
来源: Laya_社区 发布时间: 20170803
...ite3D = Laya.Sprite3D.load("res/partical1/sceneFXMaker.lh"); 报错 Error: LoaderManager:unknown file(res/partical1/Assets/IGSoft_Tools/FXMaker/ToolResource/Texture/MapGrid.psd) extension with: psd. at LoaderManager.__proto._create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:13120:1...
来源: Laya_社区 发布时间: 20180328
...ghtDemo2.7.1\fightDemo2.7.1> layaair2-cmd compile internal/mod ules/cjs/loader.js:638 throw err; ^ Error: Cannot find module 'C:\Users\Nick'z\AppData\Roaming\npm\node_modules\layaair2-cmd\node_modules\gulp\bin\gulp.js' at Function.Module._resolveFilename (internal/modules/cjs/lo...
来源: Laya_社区 发布时间: 20201110