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

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

31. 关于小游戏缓存bug [ 67%]

...在服务端。首次加载先下载zip包并解压,然后设置Laya.URL.basePath后正常调用Loader相关方法。此时因为资源文件已经在本地了,并不需要laya去做缓存,然而laya还是会copy一份,并且设置Laya.MiniAdpter.autoCacheFile = false;Laya.MiniAdpter.Auto...

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

32. MovieClip 报错 [ 63%]

...,"file not find"); return; } //保护修改-----end------------------ this.basePath =_atlasPath?Loader.getAtlas(_atlasPath).dir:_url.split(".swf")[0] + "/image/"; _initData(data);添加了这个保护后,代码不会报错,但是你帧循环使用创建MC不会显示,不显示原因就...

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

33. MovieClip 报错 [ 63%]

...,"file not find"); return; } //保护修改-----end------------------ this.basePath =_atlasPath?Loader.getAtlas(_atlasPath).dir:_url.split(".swf")[0] + "/image/"; _initData(data);添加了这个保护后,代码不会报错,但是你帧循环使用创建MC不会显示,不显示原因就...

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

34. 我来改代码! [ 62%]

...,"file not find"); return; } //保护修改-----end------------------ this.basePath =_atlasPath?Loader.getAtlas(_atlasPath).dir:_url.split(".swf")[0] + "/image/"; _initData(data);添加了这个保护后,代码不会报错,但是你帧循环使用创建MC不会显示,不显示原因就...

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

35. MovieClip 报错 7 [ 62%]

...,"file not find"); return; } //保护修改-----end------------------ this.basePath =_atlasPath?Loader.getAtlas(_atlasPath).dir:_url.split(".swf")[0] + "/image/"; _initData(data);添加了这个保护后,代码不会报错,但是你帧循环使用创建MC不会显示,不显示原因就...

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

36. ts 不支持import LoginView from "../../LoginView" [ 61%]

...修整需要手动 Mr.余 • 2018-06-22 18:21 @Laya_Aaron: 修改Laya.URL.basePath,改成加载服务器资源。再用 Laya.loader.create加载场景资源。为啥在发布微信小游戏中会报错,模型网格数据比较大。 Mr.余 • 2018-06-22 18:23 @Laya_Aaron:报错为 ...

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

37. MovieClip报错 [ 60%]

...,"file not find"); return; } //保护修改-----end------------------ this.basePath =_atlasPath?Loader.getAtlas(_atlasPath).dir:_url.split(".swf")[0] + "/image/"; _initData(data);添加了这个保护后,代码不会报错,但是你帧循环使用创建MC不会显示,不显示原因就...

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

38. laya.ani.swf.MovieClip [ 45%]

...Bounds方法获取。设置为true,对性能有一定影响。 Sprite  basePath : String资源根目录。MovieClip blendMode : String指定要使用混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图像,cacheAs时,子对象发生...

来源: laya_api 发布时间: 20170929

39. laya.ani.swf.MovieClip [ 44%]

...Bounds方法获取。设置为true,对性能有一定影响。 Sprite  basePath : String资源根目录。MovieClip blendMode : String指定要使用混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图像,cacheAs时,子对象发生...

来源: Laya2.0_api 发布时间: 20190513

40. 微信小游戏加载资源问题 [ 42%]

...empStr = Laya.URL.rootPath != "" ? Laya.URL.rootPath : Laya.URL._basePath; if (tempStr != "") url = url.split(tempStr)[1]; } } } this.url = url; this.readyUrl = url; if (MiniSound._audioCache[this.readyUrl]) { this.event(Laya.Event.COMPLETE); return; } if (MiniAdpter.autoCacheFil...

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