大约有 2,660 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0076 秒)
Laya_社区(2342) Laya2.0_文档(106) Laya3.0_文档(58) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
...createChildren(); let assets = [ { url: "res/atlas/ui/shared.atlas", type: Loader.ATLAS }, { url: "res/atlas/ui/myview.atlas", type: Loader.ATLAS }, { url: "view/MyView.json", type: Loader.JSON }, ] Laya.loader.load(assets, Handler.create(this, this.onLoaded)); } private onLoaded():void { this.creat...
来源: Laya_社区 发布时间: 20180113
...请: 与内容相关的链接 提交 3 个回复 谷主 赞同来自: Laya.loader.load("xx", { propertyParams : { wrapModeU : Laya.WrapMode.Clamp, wrapModeV: Laya.WrapMode.Clamp } }) 2023-03-17 0 1 分享 微博 QZONE 微信 LayaAir3 赞同来自: 如果图片从网络下载是没法修改图...
来源: Laya_社区 发布时间: 20230316
...e这个接口是从远端下载文件到手机磁盘,然后你使用Laya.loader.load加载你下载的文件存到引擎的资源对象里,然后你在调用Loader.getRes来获取即可。 2018-09-04 0 1 分享 微博 QZONE 微信 幽默的黑色 赞同来自: 下载后,Laya.loader.load加载...
来源: Laya_社区 发布时间: 20180904
...1 个回复 cuixueying 赞同来自: 代码如下package { import laya.net.Loader; import laya.utils.Handler; public class XmlDemo { public function XmlDemo() { Laya.init(550,400); Laya.loader.load("data.xml",Handler.create(this,onLoaded),null,Loader.XML); } private function onLoaded():void { // TOD...
来源: Laya_社区 发布时间: 20160914
加载的nativeimage处理 Loader的load方法type是nativeimage的时候,加载到的img如何应用到Sprite显示出来 2017-06-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: { La...
来源: Laya_社区 发布时间: 20170603
...import laya.display.Animation; import laya.display.Sprite; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(600, 800); //加载引擎需要的资源 Laya.loader.load([{url:"res/atlas/atlas_res.js...
来源: Laya_社区 发布时间: 20160707
...图片加密数据是在图片的前面写入了四个字节的数据 Laya.loader.fetch("resources/res/test.bin","arraybuffer").then((res)=>{ //获得res的ArrayBuffer数据 let arraybuffer: ArrayBuffer = res; //Byte数组接收arraybuffer let byte:Byte = new Byte(arraybuffer); //从第四个字...
来源: Laya3.0_文档 发布时间: 20230303
...画在pc模拟器播放OK在手机端不显示 loaded : function(){ this.loader = Laya.loader; this.loader.retryNum = 0;//无加载重试 this.urls = ['imgdebris/imgdebris.atlas','imgdebris/p1_slj.png',]; // this.loader.load(this.urls[0], Laya.Handler.create(this, this.onAssetloaded)); this.loader.l...
来源: Laya_社区 发布时间: 20190117
...ng, Laya.stage.width + padding * 2, Laya.stage.height + padding * 2); Laya.loader.load(texturePath, Handler.create(this, this.onTextureLoaded)); } onTextureLoaded() { maggotTexture = Laya.loader.getRes(texturePath); this.initMaggots(); Laya.timer.frameLoop(1, this, this.animate); } initMaggots() { l...
来源: Laya2.0_示例 发布时间: 20251209
...加载 之后逐个绘制在界面上。 实现很简单,我通过Laya.loader.load预加载把302个图片资源加入到内存中,然后通过getRes 和 drawTexture 添加SPRITE对象到屏幕中。 预加载后的初始内存为29M左右 之后开始逐个添加SPRITE,在添加第1个到第8...
来源: Laya_社区 发布时间: 20161107