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

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

51. 微信小游戏下载png为什么不带MD5? [ 79%]

...第一个场景loadingScene加载后会自动下载里面用到的atlas(comp4e6089ba.atlas),但是下载的png却是comp.png而不是compd042ffba.png, 看laya.core.js发现: 这是我们哪里设置有问题吗? 附件 : --> 2019-02-28 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

52. 引擎自带的图集图片丢失问题 [ 79%]

...集图片丢失问题 我用js加载完图集后 tArray=[{url:"res/atlas/comp.atlas",type:Laya.Loader.ATLAS}] Laya.loader.load(tArray,Laya.Handler.create(this,onResLoaded()));   里面的button和checkbox提示丢失了。是什么原因??   附件 : --> 2018-03-25 添加评论 免费帖 --> ...

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

53. UI编辑器里是否只能导入.jpg .png文件 [ 78%]

...UI编辑的模式 3.此时可以看到在【资源】栏里看到,只有comp文件夹【且内有相应图片资源】 4.将自己的图片资源文件夹resource拖拽到IDE【资源】栏中,导入资源 5.此时发现IDE【资源】栏并没有显示resource这个文件夹,但是在工程...

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

54. Panel使用文档(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 78%]

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

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

55. 发现惊天大bug给官方报备一下 [ 78%]

...shiyang • 2021-09-09 20:33 给你举个例子,比如我图片路径为 comp/btn.png,设置Laya.URL.basePath = "xxx",第一张图里面,传入的url是comp/btn.png,format以后就是xxx/comp/btn.png,然后else里面有format以后就是“xxx/xxx/comp/btn.png” layabox • 2021-09-22...

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

56. Panel使用文档(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 78%]

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

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

57. 请问怎么制作一个layabox js版本的加载效果 [ 77%]

... Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(["./comp/progress.png", "./comp/progress$bar.png"], Handler.create(this, onLoadComplete)); } console.log(1); Laya.class(Loadings,"Loadings",_super); function onLoadComplete() { progressBar = new ProgressBar("./comp/progress.png")...

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

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

... 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"); //给panel设置...

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

59. 如何用代码控制panel的vscroll滚动幅度 [ 76%]

...a.init(600,600); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { //panel 切记设置宽高,否则panel不显示 var panel:Panel=new Panel(); panel.size(300,300); panel.pos(100,100); panel.v...

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

60. 微信上测试加载服务器资源 [ 76%]

...资源 URL.basePath = "http://212.xx.xx.xx/"; Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,loadComplete)); loadComplete(){显示自己的ui}; 项目设置选择不校验合法域名。(我没有配置域名,用IP可以吗?) 发现comp.atlas是加载下来了,图片不行,...

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