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

大约有 435 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0061 秒)

141. 3d特效克隆时,在手机会现卡顿情况,特效资源已经提前在加载 [ 75%]

...EFFECT_PATH_3D+url;             var itemComplete:Sprite3D =  Laya.loader.getRes(_path);             if(itemComplete == null || itemComplete.loaded == false){                 var groupName:String = null;                 if(isGroup == true){           ...

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

142. 怎么同步加载资源 [ 75%]

...内容相关的链接 提交 3 个回复 Laya_XS 赞同来自: 你用Laya.loader.load一次加载很多图片,也是在图片加载完毕才返回完成事件的,但是有一种情况也会返回完成,就是你资源加载失败也会忽略,因为我们也不会因为你在队列里存在...

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

143. Laya2.6.0 升级至Laya2.8.0 Native环境 加载ttf 字体不生效 [ 75%]

...ont1Req =  new Promise((resolve => {             Laya.loader.load("res/fonts/OPPOSANS-R.TTF", Laya.Handler.create(this, (success: boolean) => {                 if (!success) {                     console.error("OPPOSANS-R ttf 字...

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

144. 粒子中引用的图片能合图吗 [ 75%]

...Laya.Stage.ALIGN_MIDDLE; Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void {     Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } fun...

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

145. layaair2-cmd 运行报错,求助 [ 75%]

...ghtDemo2.7.1\fightDemo2.7.1> layaair2-cmd compile internal/mod ules/cjs/loader.js:638     throw err;     ^ Error: Cannot find module 'C:\Users\Nick'z\AppData\Roaming\npm\node_modules\layaair2-cmd\node_modules\gulp\bin\gulp.js'     at Function.Module._resolveFilename (internal/modules/cjs/lo...

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

146. 3d导入粒子效果报错 [ 75%]

...ite3D = Laya.Sprite3D.load("res/partical1/sceneFXMaker.lh"); 报错 Error: LoaderManager:unknown file(res/partical1/Assets/IGSoft_Tools/FXMaker/ToolResource/Texture/MapGrid.psd) extension with: psd. at LoaderManager.__proto._create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:13120:1...

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

147. 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

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

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

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

149. 分包项目, 加载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

150. app打包资源加载不完全 [ 74%]

...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