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

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

521. Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug [ 48%]

...middle"; Laya.stage.scaleMode = "fixedwidth"; console.log("iswebgl:", Laya.Render.isWebGL); }  public Load() { Laya.loader.load(NewTest.url, null, null, null, 0, true); }  public Unload() { Laya.loader.clearRes(NewTest.url); } }  window["test"] = new NewTest(); window["test"].Load(); Laya.timer.o...

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

522. 分享:如何将舞台的背景颜色设置为透明(WebGL和Canvas下) [ 48%]

...断当前渲染模式是WebGL还是Canvas? 引擎初始化之后判断 Render.isWebGL 是true还是false。true:WebGL模式,false:Canvas模式。   WebGL下设置背景透明代码://设置画布是否透明,只对2D(WebGL)、3D有效 Config.isAlpha = true; //初始化引擎 Laya.init(8...

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

523. 个人笔记:失焦或静音状态下播放背景音乐无效的解决方案 [ 48%]

...verWebAudio(); url=URL.formatURL(url); if (url!=SoundManager._tMusic){ if (Render.isConchApp){ var ext=Utils.getFileExtension(url); if (ext !="wav" && ext !="ogg"){ alert("The sound only supports wav or ogg format,for optimal performance reason,please refer to the official website document."...

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

524. spine适配版微信开发者平台报错 [ 48%]

...js:22144)     at Stage._updateTimers (laya.core.js:17717)     at Stage.render (laya.core.js:17679)(env: Windows,mg,1.05.2110152; lib: 2.20.2) 附件 : --> 2021-12-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回...

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

525. iframe页面嵌套下失焦(焦点在父窗口被聚焦),playMusic背景音乐播放无声音 [ 48%]

...URL(url); if (url == _tMusic) { if (_musicMuted) return null; } else { if (Render.isConchApp) { var ext:String = Utils.getFileExtension(url); if (ext != "wav" && ext != "ogg") { alert("The sound only supports wav or ogg format,for optimal performance reason,please refer to the official websi...

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

526. laya.d3.core.ParticleRender [ 48%]

...ntationAll Packages | All Classes | Index | Frames No Frames ParticleRenderProperties | Methods Packagelaya.d3.coreClasspublic class ParticleRenderInheritanceParticleRender BaseRender EventDispatcher Object ... Public Properties Hide Inherited Public Properties Show Inherited Public Properti...

来源: laya_api 发布时间: 20170603

527. Laya集成Matter.js库layaSprite水平翻转无法显示的bug [ 48%]

...ar ballOptions = { layaSprite:ball_sprite,                 render:                 {                     sprite:                     {                         // texture: 'common1/btn_new.png',      ...

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

528. 《用LayaAir IDE制作3D角色创建与选择界面》js版本角色动画无法运行 [ 48%]

...  at Scene.__proto._updateScene (laya.d3.js:27940)     at Stage.__proto.render (laya.core.js:18226)     at Stage.__proto._loop (laya.core.js:18172)     at loop (laya.core.js:5310) 2018-01-05 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个需要加断点看,到底哪里没有...

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

529. 微信开发者工具出现错误:Laya3D init error must support webGl [ 48%]

...对应的代码位置是在code.js的Laya.init方法:         if (!Render.isConchNode && !WebGL.enable()){             alert("Laya3D init error,must support webGL!");             return;         } 这个应该是引擎自动生成的代码吧,应该如何解...

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

530. 我照着例子做的换装例子切换不了卡槽的图片,附件为我的demo,请帮忙看看 [ 48%]

...,附件为我的demo,请帮忙看看 if (this.currTexture && Render.isWebGL && this.currDisplayData.type==0 && this.currDisplayData.uvs){ this.currTexture=this.currDisplayData.createTexture(this.currTexture); } 跟代码发现this.currDisplayData.uvs是null这是为什么...

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