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

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

271. 请问我用网络格式加载成功后,在服务器替换image.atlasimages.png重新打开小游戏没有重新加载服务器的png,只重新加载了atlas [ 59%]

...Array = [ //{ url: "https://piggy.com/res/atlas/images.atlas", type : Laya.Loader./png}, { url: "https://piggy.com/res/atlas/images.atlas", type: Laya.Loader.ATLAS }, { url: "https://piggy.com/res/swf/flash.json", type: Laya.Loader.JSON }, { url: "images/background.png", type: Laya.Loader.IMAGE }, {...

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

272. 开发数据域报错wx.getFileSystemManager is not a function [ 59%]

...自: //主域if(Laya.Browser.onMiniGame){//加载一个json图集Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){//加载完成//使用接口将图集透传到子域Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口...

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

273. 加载同一个json文件第一次正常,第二次json文件里面的数据就只有一条了。 [ 59%]

...请: 与内容相关的链接 提交 2 个回复 Yangcy 赞同来自: Laya.loader.load("abc.json", Handler.create(this, onAssetLoadedSound), Handler.create(this, progressHandler), Loader.SOUND);   第一次加载出来: [list=none] [*]0: {column: "0", duration: "0", mode: "点", time: "30...

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

274. Panel滚动条滑块位于最下方 [ 59%]

...ion Main() { Laya.init(1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img:Image=new Image(); img.skin="bg2.png"; panel=new Panel(); panel.vScrollBarSkin...

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

275. 图集动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 58%]

...板,urls接收的是图片地址集合,所以我们需要先使用Laya.loader.load()将图集文件先加载进来。下面我们直接看示例代码及注释。 ```javascript //初始化舞台 Laya.init(1334, 750,Laya.WebGL); //加载完动画的图集后执行回调方法onLoaded Laya.loader....

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

276. 3d项目发布到微信工具真机预览无法加载场景ls文件??? [ 58%]

...信工具调试库 2.2.1 最新 都是最新的     加载方式:Laya.loader.create 获取方式:scene = Laya.loader.getRes(path) as Scene;   2018-08-02 1 2 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 可以 2018-08-02 0 0 分享 微博 QZONE 微信 承 赞同来自: 真的可以么 ...

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

277. Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 [ 58%]

Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 1、引擎ide版本都是2.1.2 2、点击屏幕会绘制一个光圈特效 3、点击第1次加载资源使用后释放调用Laya.loader.clearTextureRes 4、再点第2次      1、图片代码中指示出必然会...

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

278. 关于mouseThough=true的问题 [ 58%]

...); var assets:Array = []; assets.push({url:[ "fish_6.png" ],type:Loader.IMAGE}); Laya.loader.load(assets,Handler.create(this,onLoaded)); } private function onLoaded():void{ var img:Image = new Image("fish_6.png"); img.on(Event.CLICK,this,onClick); img.mouseThrough = true; Laya.st...

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

279. 微信小游戏中不能加载proto文件 [ 58%]

...valid url "res/protobuf/Login.proto"   具体代码: (function () { var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; console.log("!____________________________________")  var ProtoBuf = Browser.window.protobuf;  // Laya.init(550, 400);  ProtoBuf.load("res/proto...

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

280. 背景音乐音效问题 [ 58%]

... var lobbyRes:Array<any> = [ {url: "Lobby/Sound/BG309.mp3",type:Laya.Loader.SOUND}, } Laya.loader.load(fightLandlordRes, Laya.Handler.create(this, this.resLoaded)); Laya.SoundManager.playMusic("Lobby/Sound/BG309.mp3"); 2017-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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