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

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

521. Spine动画资源加载时不能同时使用"版本管理"和"URL.basePath" [ 53%]

...问题的根源在于sk文件解析完毕后企图加载配套png时给到LoaderManager的png图片路径为已加上URL.basePath的路径(在此例中为https://www.xx.com/sp.png),而在version.json中记录的真实文件名映射关系中,key值为不带有URL.basePath的路径(在此...

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

522. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 53%]

...;          this.scene.addChild(this.camera);         Laya.loader.create("res/scene_Effect/Conventional/Effect_zhujue_attack.lh", Laya.Handler.create(this, () => {              let item = Laya.loader.getRes("res/scene_Effect/Conventional/Effect_zhujue_attack.lh...

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

523. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 53%]

...init(1024, 768, WebGL); Stat.show(0, 0); Laya.stage.bgColor = "#fff"; Laya.loader.load("assets/images/color1.png", Handler.create(this, __loadImageHandler)); } private function __loadImageHandler():void { _colorSpr = new Sprite(); _colorTex = Laya.loader.getRes("assets/images/color1.png"); _colorSpr...

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

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

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

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

525. 求救 Laya2.0下的Particle2D问题 [ 52%]

...键松开时isFrame=false,按下播放尾焰特效后就置为true Laya.loader.load('../bin/testflame.part', Laya.Handler.create(this, (setting) => { let frame = new Laya.Particle2D(setting); let key = keyString; let frameX; let frameY; let play = true; let frameScale; let frameRotation; //问...

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

526. 重复背景,全方向地图拖动Demo [ 52%]

... * 150 this.offsetY = y * 150 this.downMouseX = 0 this.downMouseY = 0 Laya.loader.load(['bg/world_bg.jpg']) Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.mouseDown) Laya.stage.on(Laya.Event.MOUSE_UP,this,this.mouseUp) this.moveMap(this.offsetX,this.offsetY) } moveMap(x,y){ let X = -x00 let Y = -y00 ...

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

527. 限制区域拖动效果,为什么会无法限制呢? [ 52%]

...ad), Laya.ResourceVersion.FILENAME_VERSION);  function beginLoad() { Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); }  function onLoaded() { Laya.stage.addChild(new GolfMainUI()); }   附件 : --> 2018-06-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

528. 小程序开放域相关 [ 52%]

...  MiniAdpter.window.wx.onMessage(onGetMessage);             Laya.loader.load(urlconfig,new Handler( null,onLoaded),null);                          function onLoaded():void {                 trace("urlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfig...

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

529. 国际化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 52%]

...使用的方式为: let myI18n: Laya.Translations; myI18n = await Laya.loader.load("editorResources/i18nSettings.i18ns"); console.log(myI18n.t("a")); 在很多情况下,如果只是代码里用到的一些小量国际化的支持,并不想创建多个json文件,那么也有全代码的方法...

来源: Laya3.0_文档 发布时间: 20251010

530. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 51%]

...JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onCompl...

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