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

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

401. 使用blendMode=add模式时,某些手机上无法正常显示,出现黑底 [ 65%]

... var image:Image = new Image();             image.skin = "res/atlas/clanwar_bg.jpg?" + Math.random();             Laya.stage.addChild(image);              var index:int = 0;             Laya.stage.timerLoop(1, this, function():void{index++;image.alph...

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

402. 资源发布目录以及efc动效获取资源路径的问题。 [ 65%]

...liuhang_1988 • 2017-11-22 11:28 我现在是资源发布目录在bin/res/atlas, html发布目录在bin/res。但是分离模式的efc文件会把json文件输出到bin目录,part文件输出到bin/res。而且,part的资源默认获取路径也是在bin目录下,我是想这个json也输出...

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

403. 更新到1.7.6beta之后,HBox有bug [ 65%]

... 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) { ca...

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

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

... 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) {             var ...

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

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

...引擎 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

406. 关于as版的Animation.createFrames()不能工作? [ 65%]

...UISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load("res/atlas/war.json", Laya.Handler.create(this, this.onLoaded), null, Laya.Loader.ATLAS); Laya.loader.on(Event.ERROR, this, onError); } protected function onError(error:String):void { trace(error); } protected function onLoaded():...

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

407. animate 动画播放 怎么把攻击 开火 合起来播放 [ 65%]

... //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/imgs/role/wp116.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //添加到舞台 Laya.stage.addChild(this.roleAni); //创建动画模板dizziness Laya.Animation.createFrames(t...

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

408. 设置自动竖屏后 打包APP 安装到手机后显示黑屏 不设置自动竖屏又正常 [ 65%]

...面单独建立文件夹打包)             Laya.loader.load("res/atlas/gameUI.atlas",Handler.create(this,this.gameStart));                                   } 2018-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

409. 微信小游戏加载 BitmapFont 问题 [ 64%]

...pData; if (type==/*laya.net.Loader.JSON*/"json" || type==/*laya.net.Loader.ATLAS*/"atlas"){ tempData=MiniAdpter.getJson(data.data); }else if (type==/*laya.net.Loader.XML*/"xml"){ tempData=Utils.parseXMLFromString(data.data); } // else if (type==/*laya.net.Loader.XML*/"font"){ // tempData=Utils.parse...

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

410. Android替换游戏启动logo看不到设置的图片 [ 64%]

....loading(50); } //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestView = new TestView(); Laya.stage.addChild(testView); __JS__("if(window.conch)") ...

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