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

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

1351. 微信小游戏加载资源次数过多,超过50mb,造成的bug [ 48%]

...调试模式就可以 game.js里面 修改版本号的源码 config.verson_res = "?v=0.0.1"  修改一次版本号进入一次游戏 重复10次左右 就会触发问题 加载条会不动卡住 就触发了 然后点调试模式的输出 就会看见报错 游戏加载的地方在 core max js 1666...

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

1352. 3D场景中背景无法透明,版本2.7.1 [ 48%]

...false); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex) { material.albedoTexture = tex; })); box.meshRenderer.material = material; } } 附件 : --> laya1.rar 2020-10-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

1353. socket.sent [ 48%]

...Stage.SCALE_SHOWALL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var uiResArr =[ {url:"res/atlas/comp.atlas",type: Laya.Loader.ATLAS}, ]; Laya.loader.load (uiResArr , Laya.Handler.create(this,this.onLoded));      //加载图片 this.byte = new Laya.Byte(); //这里我们采用小端 this.byt...

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

1354. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 48%]

3Ddemo加载Unity导出场景报错resou._removeReference is not a function import { ui } from "./../ui/layaMaxUI";  /** * 本示例采用非脚本的方式实现,而使用继承页面基类,实现页面逻辑。在IDE里面设置场景的Runtime属性即可和场景进行关联 * 相比脚本...

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

1355. 2.2.0bete4排除文件夹发布功能没有效果 [ 48%]

...自: 试了一下排除资源文件,也没有效果哦。附件中排除res/altas这个文件夹了,打出的rpk,仍然有这目录。 myLaya.zip 2019-09-21 0 0 分享 微博 QZONE 微信 kylin 赞同来自: 我检查了demo里的publish.js脚本,里面的内容和我们发布出去的差别...

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

1356. 更新到1.7.6beta之后,HBox有bug [ 48%]

...微信 lusky 赞同来自: Laya.init(1200, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i...

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

1357. 如何让发布后的H5加载资源用src或href指向本地路径,而不是网络请求 [ 48%]

...cess to XMLHttpRequest at 'file:///E:/Game-SuperMary/SuperMary/release/web/res/atlas/option.atlas' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.   load(url) {             v...

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

1358. 已经进行微信适配,微信小游戏loader加载xml失败,其他类型加载成功,这个要怎么解决? [ 48%]

...04 关注: 2 人 xq15059492071 • 2018-02-08 14:32 Laya.loader.load("res/config/preloadAssets.xml", Handler.create(this, this.onPreloadConfigLoaded), null, "xml"); 就一行代码,比如这样的,就是load不下来了,你们小游戏里可以load xml的吗 qian • 2018-0...

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

1359. Unity3d导出的资源,用layadcc,只有.lh文件能用缓存,.lh依赖的资源始终download。 [ 48%]

...删除了)   情况: 1、从unity3d导出一个资源。 (路径:res/gamedata/3d/tower/tower_111002/tower_111002.lh)   2、加载这个资源 (使用Laya.loader.create,参阅附件工程)   3、使用layadcc (反正也没人回答,附件暂时删除了)   4、发现tower_11...

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

1360. Panel使用文档(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 48%]

...始化引擎 Laya.init(800,600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例化Panel组件 var panel:Panel = new Panel(); //给panel添加背景色 panel.graphics.drawRect(0,0,100,100,"#ffcccc"); //给p...

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