大约有 21 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
...as/gun1.atlas. 然后加载这个资源的时候, 报错 Not recognize the resource suffix 版本是laya 1.7.21 2019-01-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 J 赞同来自: 不识别的文件后缀,...
来源: Laya_社区 发布时间: 20190123
...代码如下: ```java package { import laya.display.Sprite; import laya.resource.Texture; import laya.utils.Handler; public class MaskDemo { private var Res:String; private var img:Sprite; public function MaskDemo() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //...
来源: Laya2.0_文档 发布时间: 20210714
... package { import laya.display.Sprite; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; public class Demo { private var num:Number=0;//加载图片的个数 private var sp:Sprite;//显示图片的显示对象容器 priv...
来源: Laya_社区 发布时间: 20161107
...决? 错误日志: Error: Command failed: "D:\layaair\layaairIde\resources\app\out\vs\layaEditor\libs\TP\atlas-generator" -S 2048000 -s 1920 "C:\Users\john\Desktop\tmp\tmp" -o "C:\Users\john\Desktop\tmp\tmp" --dataFormat atlas --scale 0.5 --force -c 附件 : --> 2018-03-07 添加评论 免...
来源: Laya_社区 发布时间: 20180307
...包括使用纹理压缩信息,打开.json文件如下: { "files": { "resources": [ "layabox.png" ] }, "config": [ { "sRGB": true, "filterMode": 1, "mipmap": true, "pma": false, "files": [ { "file": "0", "ext": "dds", "format": 3 }, { "file": "", "ext": "png", "format": 1 } ], "platforms": { "0"...
来源: Laya3.0_文档 发布时间: 20251010
...据是在图片的前面写入了四个字节的数据 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
...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.DebugPanel; import laya.debug.DebugTool; import lay...
来源: Laya_社区 发布时间: 20170921
...; Laya.stage.addChild(sp2); // 加载并显示一个图片2 sp2.loadImage("resources/layabox.png", null); sp2.pos(200, 190); // 设置blendMode sp2.blendMode = "lighter"; 我们来看看运行结果: (图3-4) 与图3-3对比可以看到,使用“lighter”的blendMode后,sp2图片的颜色...
来源: Laya3.0_文档 发布时间: 20251010
...ge.html:1 j.onmessage @ gamePage.html:1 2code.js:57322 HHHH false VM1768:1 Resources already exist,is repeated loading: https://piggy.q1.comres/sound/BGM.mp3 console.warn @ VM1768:1 Loader.cacheRes @ code.js:12995 SoundManager.playSound @ code.js:4963 SoundManager.playMusic @ code.js:4988 GameEx.onL...
来源: Laya_社区 发布时间: 20180531
...建一个 Animation 类的实例对象 animation 。 animation.loadAtlas("resource/ani/fighter.json");//加载图集并播放 animation.x = 200;//设置 animation 对象的属性 x 的值,用于控制 animation 对象的显示位置。 animation.y = 200;//设置 animation 对象的属性 x 的值...
来源: Laya3.0_api 发布时间: 20231115