大约有 158 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
...3-27 11:22 Laya.loader.load([{ url: 'wxlocal/load.json', type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.loadComplete)); 我就是这么调用的,但是load.json这个文件还是去远程拉了。该怎么解? Laya_Aaron • 2018-03-27 11:23 @seacole:仔细看文字描述,写的很...
来源: Laya_社区 发布时间: 20180327
...script private function init():void { //加载场景 Laya.loader.load('res/atlas/comp.atlas',Handler.create(this,onComplete)); } private function onComplete():void{ //获取图集中的一个单图 var a:Texture = Laya.loader.getRes('comp/button.png'); //通过单图的bitmap对图集加锁 a.bitmap...
来源: Laya2.0_文档 发布时间: 20210715
... private beginLoad():void{ Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.onLoaded)); } private onLoaded(): void { console.log("onLoaded ......"); GameBootstrap.wxPostMessage({ cmd...
来源: Laya_社区 发布时间: 20180529
...的改变。 #### 1.5 转换整个导出的目录 导出生成的文件为`atlas,json,png`格式的文件,如图3所示。需要注意的是,使用转换工具转换时,不要直接拖动文件去转换,要将整个父级目录(*如图3中的spine目录*)拖入到转换面板中。 ![图...
来源: Laya2.0_文档 发布时间: 20210715
... ```typescript private init():void { //加载场景 Laya.loader.load('res/atlas/comp.atlas',Laya.Handler.create(this,this.onComplete)); } private onComplete():void{ //获取图集中的一个单图 var a = Laya.loader.getRes('comp/button.png') as Laya.Texture; //通过单图的bitmap对图集加锁 ...
来源: Laya2.0_文档 发布时间: 20210715
...的改变。 #### 1.5 转换整个导出的目录 导出生成的文件为`atlas,json,png`格式的文件,如图3所示。需要注意的是,使用转换工具转换时,不要直接拖动文件去转换,要将整个父级目录(*如图3中的spine目录*)拖入到转换面板中。 ![图...
来源: Laya2.0_文档 发布时间: 20210715
...的改变。 #### 1.5 转换整个导出的目录 导出生成的文件为`atlas,json,png`格式的文件,如图3所示。需要注意的是,使用转换工具转换时,不要直接拖动文件去转换,要将整个父级目录(*如图3中的spine目录*)拖入到转换面板中。 ![图...
来源: Laya2.0_文档 发布时间: 20210715
...am fileType 文件类型(image、text、json、xml、arraybuffer、sound、atlas、font) * @param callBack 文件加载回调,回调内容[errorCode码(0成功,1失败,2加载进度) * @param encoding 文件编码默认 ascill,非图片文件加载需要设置相应的编码,二进制编码为...
来源: Laya2.0_文档 发布时间: 20210714
...am fileType 文件类型(image、text、json、xml、arraybuffer、sound、atlas、font) * @param callBack 文件加载回调,回调内容[errorCode码(0成功,1失败,2加载进度) * @param encoding 文件编码默认 ascill,非图片文件加载需要设置相应的编码,二进制编码为...
来源: Laya2.0_文档 发布时间: 20210714
...new Laya.HTMLDivElement(); div.innerHTML="<img src='res/atlas/test.png'/>" Laya.stage.addChild(div); } TypeError: Illegal constructor laya.core.js:11687 at Function.getInstance (file:///D:/work/test2/bin/libs/laya.core.js:11687:24) at Functio...
来源: Laya_社区 发布时间: 20190926