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

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

151. load方法加载cdn上面的图片资源的时候直接报了跨域不同源的问题,怎么破? [ 75%]

... ]; this.isFirst = true; console.log('Gzdaze='); console.log(Gzdaze); Laya.loader.load(Gzdaze.dialogList, Handler.create(this, this.startLoaded)); 代码是这样的 报错 Access to Image at 'http://caifu-1251177394.file.myqcloud.com/beta/book/bookLaya/img/progressBar$bar.png' from origin 'http://b...

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

152. 咨询在Laya.Sprite3D中,是否含有类似于 Sprite 中的getbounds函数 [ 75%]

...的,所以不能在下一行代码立刻获取数据,推荐使用Laya.loader.create yinglei999 • 2017-11-17 19:10 1.数据都为零,需要获取的数据需要在资源加载的回调中进行 我不太明白,在Laya.MeshSprite3D.load 这个函数中只有一个参数是具体的地址 而...

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

153. 分包项目, 加载js时报错 [ 75%]

...th (AA.max.js:674)     at ResInfo.__proto.event (AA.max.js:453)     at LoaderManager.__proto._endLoad (AA.max.js:9492)     at Loader.onLoaded (AA.max.js:9469)     at EventHandler.__proto.runWith (AA.max.js:674)     at Loader.__proto.event (AA.max.js:453) 附件 : --> testA_B.zip 2017-07-25...

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

154. app打包资源加载不完全 [ 75%]

...sCfgList 是一组资源类似    { url: CONFIG_MONSTER_LEV, type: Laya.Loader.JSON },  { url: CONFIG_TERRAIN, type: Laya.Loader.JSON },  { url: CONFIG_FORMATION_TEMPLATE, type: Laya.Loader.JSON },  { url: CONFIG_MOVE_PATH, type: Laya.Loader.JSON },  { url: CONFIG_LEVEL, type: Laya.Loader.JSO...

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

155. movieclip destroy 后重新加载失败 [ 74%]

...载prefab FD 宏编译时 出现 试图访问该方法时失败 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2017-05-24 16:42 浏览: 1312 关注: 2 人

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

156. 加载龙骨动画出报错Uncaught getUint16 error - Out of bounds [ 74%]

...链接 提交 1 个回复 微笑 赞同来自: 龙印 已经解决:: Laya.loader.load("ani/jingbubeipi.sk",Handler.create(this,asd),null,Loader.BUFFER);  在预加载动画时这样在后面参数加上loader.buffer; 2018-09-13 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠...

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

157. 加载多个protobuf文件报错 [ 74%]

...ar assets:Array = [];    assets.push( { url:"protobuf/user.proto", type:Loader.TEXT } );    assets.push( { url:"protobuf/bag.proto", type:Loader.TEXT } );        Laya.loader.load(assets, Handler.create(this, onAssetsLoaded));   首先确认下类型是为TEXT吗,如果这样写就是...

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

158. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 74%]

....js 在之前的基础上增加加载图片的代码://加载图片 Laya.loader.load(["res/background.png", "res/m_background.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoad...

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

159. 请教下微信小游戏的内存和数据缓存? [ 74%]

...新编译。 请教一个关于laya2.5d项目美术规范的问题哈 Laya.Loader.getRes请教 微信小程序canvas如何使用layaAir引擎 请问下loader如何强制加载一个文件,避免浏览器的缓存 Animation 的createFrames 使用已经加载的图集缓存动画失败 我用list.ar...

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

160. 技术文档中的示例js运行报错 [ 74%]

...错 Uncaught TypeError: this.setTo is not a function(function () { const Loader = Laya.Loader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(this, onLoaded)) })() function onLoaded() { var cMa...

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