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

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

261. 这样的panel请问如何实现比较好? [ 71%]

...; Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; var resPath = ['res/atlas/comp.atlas']; Laya.loader.load(resPath, new Laya.Handler(this, function () { var textUi = new TextUI(); Laya.stage.addChild(textUi); }), null, Laya.Loader.ATLAS);  } } new GameMain();   Test.zip 2018-08-10 0 1 分享 ...

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

262. ui.TestPUI() 找不到 [ 71%]

...ya.init(1334,750); Laya.stage.bgColor = "#ffffff"; Laya.loader.load("./res/atlas/blackMagic.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ var efc =new ui.TestPUI(); Laya.stage.addChild(efc); } //new ui.TestPUI(); 这个东西找不到。我是按照官方文档动效模板来操...

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

263. UI发布以后如何引用 [ 71%]

...2018-08-23 1 0 分享 微博 QZONE 微信 Yangcy 赞同来自: [{url: "res/atlas/excessivePage.atlas"}]   直接这样 都不用写type 2018-08-23 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 MITBOY 相关问题 sprite旋转以后...

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

264. 请问设计模式下,怎么使用图集? [ 71%]

...模式下 情况:已经用官方工具生成了对应的图集,如ui.atlas 问题:我要怎么使用这个ui.atlas呢?目测只能用分散的各个图片才能拉进设计模式的编辑区域。 2018-06-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

265. 服了2.0Animation能加载的图集3.0就无法显示了 [ 71%]

...提交 1 个回复 LayaAir3 赞同来自: 3.0可以运行。但是6001_013.atlas要放在6001_013目录下,或者修改6001_013.atlas文本里的"prefix":"6001_013/" 改为 "prefix":"/" 。如果还有问题,请发上来一个demo工程,我们看下。 2023-02-02 0 0 分享 微博 QZONE 微信...

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

266. 微信小游戏图集接口sendAtlasToOpenDataContext报错。 [ 71%]

微信小游戏图集接口sendAtlasToOpenDataContext报错。 更新了1.7.20.1 beta的引擎后,用这个接口把加载后的json文件路径传过去,就报这个md5的错误。 附件 : --> 2018-08-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...

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

267. 在加载包含Animation的prefab后,动画没有显示 [ 71%]

...预制体之前先加载动画需要的图片资源,资源一般再 res/atlas里面   代码如下 Laya.loader.load(["res/atlas/zombie/z2.atlas"],Laya.Handler.create(this,function(){ Laya.loader.load("prefab/gk2v1.json",Laya.Handler.create(this,function(pref:Laya.Prefab){ var gkpref:Laya.Prefab =...

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

268. 微信小游戏图集卸载报错 [ 71%]

...,调用Laya.loader.clearRes(url)报错 然后整个游戏卡死 url=res/atlas/Mission.atlas Laya.loader.clearRes(url);  (在调用这个方法前图集已加载完成)   附件 : --> 2018-08-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

269. 加载UI为什么总是加载白底 [ 71%]

...色s Laya.stage.bgColor = "#ffffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ var _start = new start(); Laya.stage.addChild(_start); } })(); var start = (function(_super){ function start(){ start.super...

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

270. 微信开发者工具无法加载图集 [ 71%]

...开发者工具无法加载图集 发版启用文件版本管理后发现.atlas图集加载不会回调执行complete事件。 尝试1: 加载其他的普通图片资源(文件名带了hash码)能都正常。 尝试2: 把图集对应图片的文件名中的hash码删除(只处理.png图片,.atlas...

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