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

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

21. clearRes好像没作用,或许我的用法不对 [ 90%]

...("释放资源false")             Laya.loader.clearRes("res/atlas/comp.json", false);             Laya.loader.clearRes("res/atlas/comp.png", false);         }         if (e.keyCode == 66) {//B             console.log("释放资源 true")             La...

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

22. TS分离模式设置未打包图片输出目录导出资源无法加载未打包资源 [ 89%]

...图设置 修改加载代码 Laya.loader.load([     { url: "res/atlas/comp.atlas", type: Loader.ATLAS },     { url: "unpack/comp/image.png", type: Loader.IMAGE },     { url: "test/TestPage.json", type: Loader.JSON }, ], Handler.create(this, this.onLoaded)); 运行报错: [warn]Retry to l...

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

23. prefix 路径修改后图片不显示 [ 88%]

...修改后图片不显示 图集打包好的路径为: "meta":{"image":"comp.png","prefix":"comp/"}}我手动修改了 prefix  的路径: "meta":{"image":"comp.png","prefix":"https://app.izlyun.com/Clients/app/userFtp/LocalUser/sunchao/tuixiangzi/comp/"}}  之后图片就不显示了 ,请问...

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

24. laya.ui.Component 组件无法重新布局 [ 88%]

laya.ui.Component 组件无法重新布局 comp.left = 100; // 现在是 父容器 左边100像素显示 //下次位置更新 comp.right = 100; // 无法实现 父容器 右边 100像素显示 2016-12-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

25. box2d动态创建绑定多个关节报错 Node:the component is singleton,can't add the second one. [ 88%]

box2d动态创建绑定多个关节报错 Node:the component is singleton,can't add the second one. 需求:模拟粘性小球,与任何物体发生碰撞后,在容器内动态创建多个DistanceJoint 与多个不同rigBody做距离关系绑定 代码片段:  onTriggerEnter(other: any, se...

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

26. 用ide打包后的图片,Texture显示不出来? [ 86%]

...re报错、、、说找不到图片   代码 : Laya.loader.load([{url: "comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); function onLoaded(){     var aa = new Sprite();     Laya.stage.addChild(aa);     var texture = new Laya.Texture();     texture.load('comp/zzw.png' );...

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

27. typescipt在一定范围内加载图片按照等比排列 [ 85%]

....spaceX = myTestUI.imgList.spaceY = 50;     myTestUI.imgList.array = ['comp/bg.png', 'comp/btn_close.png', 'comp/button.png', 'comp/image.png'];     myTestUI.imgList.renderHandler = new Laya.Handler(this, onImgListRender);   function onImgListRender(box: Laya.Box) {     let model = box....

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

28. 启用版本管理后有严重bug [ 85%]

...: 找到原因了  项目发布后图集的两个文件正常被更名为compbf82bbfd.png何compfae00cbd.atlas 然而laya坑的地方是  当加载atlas的时候实际内部再请求的图片地址是更名前的comp.png!!!   我在服务器上compbf82bbfd.png旁边放一个comp.png就可...

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

29. 图集类型(ATLAS)文件的的png文件没有加上时间戳 [ 85%]

...ng文件没有加上时间戳   如图所示,图集文件有配置文件comp.json文件,以及图片合集文件comp.png文件,在1.7.2及以下的版本中,comp.png文件有在url后加时间戳,但是1.7.3及以上版本中都没有给comp.png文件加上时间戳。 如果有的公司...

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

30. 图集版本加载问题 [ 84%]

... var obj:any = {                             url:"res/atlas/comp.atlas?version=1.0.0",                             type: Loader.ATLAS                       };Laya.loader.load(obj); 引擎自动加载的png地址是res/atlas/comp.png, 而不是res/atlas/comp.pn...

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