• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 417 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)

81. 关于stage的size问题 [ 73%]

...SCALE; // Laya.stage.size(6000, 6000); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded)); function onLoaded(): void { var sprite = new Laya.Sprite(); sprite.loadImage('comp/bg.png'); Laya.stage.addChild(sprite); } 上面这段代码如...

来源: Laya_社区 发布时间: 20170803

82. 微信资源加载问题 [ 73%]

...ad(resArr, Laya.Handler.create(null, function () { var a = new Laya.Image('comp/bg.png') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) }, null, false)) 项目是微信小游戏 基本就是laya默认的2d微信小游戏里子 我就试...

来源: Laya_社区 发布时间: 20180808

83. 调用时间轴动画丢失皮肤问题? [ 73%]

...丢失皮肤问题? 按照教程来,报错这个。。。 lost skin: comp/ 请问报这个错事因为图片素材路径问题还是因为图片没有打包? 2018-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

来源: Laya_社区 发布时间: 20180329

84. 发布之后报错,跨域问题 [ 72%]

... file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/res/atlas/comp.atlas: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. Access to Image at 'file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/comp/classic_numbers_...

来源: Laya_社区 发布时间: 20180315

85. 请问laya里如何解析json,似乎和AS3的不太一样。 [ 72%]

...qi public function BBB() { Laya.init(550,400); Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("res/atlas/comp.json"); }JSON的解析和AS3的是一样的   2016-10-27 2 0 分享 微博 QZ...

来源: Laya_社区 发布时间: 20161027

86. 多线程worker(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 72%]

...entTarget.response; self.postMessage(data); } xmlreq.open("get","res/atlas/comp.json"); xmlreq.send() }, false); ``` 这个例子是在worker中进行加载文件,加载完毕传给主进程,运行这个例子可以在浏览器控制台看到数据输出来。 `var myWorker = new Worker("my_task...

来源: Laya2.0_文档 发布时间: 20210715

87. 切换位图,点击图片距离容器的区域也会触发点击事件 [ 72%]

...itionImg() { this.flag = false; //判断条件 this.img1 = "../laya/assets/comp/haoyoubang-liang.png"; //地址 this.img2 = "../laya/assets/comp/haoyuobang-hui.png"; var img = new Laya.Sprite(); //实例 img.width = 300; //宽高 img.height = 200; switchImg(); img.on(Laya.Event.CLICK, this, switchIm...

来源: Laya_社区 发布时间: 20180502

88. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 72%]

...entTarget.response; self.postMessage(data); } xmlreq.open("get","res/atlas/comp.json"); xmlreq.send() }, false); ``` 这个例子是在worker中进行加载文件,加载完毕传给主进程,运行这个例子可以在浏览器控制台看到数据输出来。 `var myWorker = new Worker("my_task...

来源: Laya2.0_文档 发布时间: 20210715

89. 无法正常运行官网中的示例代码 [ 72%]

...source: net::ERR_FILE_NOT_FOUND [warn]Retry to load: D:/demo/bin/res/atlas/comp.json Failed to load resource: net::ERR_FILE_NOT_FOUND [error]Failed to load: D:/demo/bin/res/atlas/comp.json 2017-03-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

来源: Laya_社区 发布时间: 20170328

90. [LayaAir3]资源未清理干净 [ 71%]

..._bg.png (4) [6, Texture, 7, Texture2D] loader http://localhost:18090/atlas/comp/img_bg.png (4) [6, Texture, 7, Texture2D] close --------------------------------gc 6000----------------------------------- loader http://localhost:18090/resources/chest_bg.png (2) [6, Texture] loader http://localhost:180...

来源: Laya_社区 发布时间: 20240109