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

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

1091. typescipt在一定范围内加载图片按照等比排列 [ 53%]

...t = function () {         let source = img.source;         if (source) { //Math.max是左边的效果,min是右边的效果             let ratio = Math.max(source.width, source.height) / 100;             img.width = source.width / ratio;          ...

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

1092. sharedCanvas现在在laya里面不能用了吗???急 在线等 [ 53%]

...清除开放域数据 */ function clearDrawOpenData(layout: Laya.Sprite) { if (layout) { layout.destroyChildren(); } }  你这报的错很可能是JSON错了 2019-03-28 0 0 分享 微博 QZONE 微信 小仙男 赞同来自: 不知道是哪里的问题啊 就是报错问同事了说是因为微信...

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

1093. 关于纹理的显示问题 [ 53%]

...e.pos(0, 0); var texture:Texture=new Texture(Browser.window.sharedCanvas); if (texture) { // texture.bitmap.alwaysChange=true; //小程序使用,非常费,这个参数可以根据自己的需求适当调整,如果内容不变可以不用设置成true    sprite.graphics.drawTexture(texture, 0...

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

1094. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 53%]

...戏的显示区域 1600,则将背景1的x轴坐标,向右移动 1600*2. if (this.moveX - this.bg1.x >= this.BG_WIDTH) { this.bg1.x += this.BG_WIDTH * 2; } //当背景2向左移动出游戏的显示区域 1600,则将背景2的x轴坐标,向右移动 1600*2. if (this.moveX - this.bg2.x >= th...

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

1095. LayaAir可以设置忽略一段代码错误吗 [ 53%]

...代码或者跳过那段编译错误 w1114367261 • 2018-04-13 12:04 你if判断失败就是不执行啊 itachi1d • 2018-04-13 12:06 @w1114367261:大哥是编译期报的错不是运行期啊。。。。

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

1096. Cannot read property 'offCanplay' of null [ 53%]

...断。 onCanPlay() { this.loaded = true; this.event(Laya.Event.COMPLETE); if(this._sound){ this._sound.offCanplay(null); } }有遇到一样问题的哥们吗? 2020-06-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个...

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

1097. 关于屏幕适配问题,实在不知道怎么回事 [ 52%]

...下:   //根据IDE设置初始化引擎                 if (window["Laya3D"]){             Laya3D.init(720, 1280);         }         else{          Laya.init(720, 1280, Laya["WebGL"]);         }         Laya["Physics"] && ...

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

1098. 多scene3d报内存不足问题 [ 52%]

... set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 "). Build with -s ASSERTIONS=1 for more info.   代码: this.m_scene = Laya.loader.getRes(this.getScenePath()); new Laya.Scen...

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

1099. 设置背景透明,在电脑上没有问题,但是在手机上(如微信qq浏览器)是无效的 [ 52%]

...2018-05-19 14:58 浏览: 1317 关注: 3 人 夏^O^雨 • 2018-05-19 15:02 if (Laya.Render.isWebGL) { Config.isAlpha = true;//设置画布是否透明,只对2D(WebGL)、3D有效。 Laya.init(GameConfig.DeviceW, GameConfig.DeviceH, Laya.WebGL); Laya.stage.bgColor = "none";//背景透明 }...

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

1100. skeleton的_onAniSoundStoped清除的时候有时会报undefined错误 [ 52%]

....length, i = 0; i < len; i++) { let channel = this._soundChannelArr[i]; if (channel.isStopped || force) { !channel.isStopped && channel.stop(); this._soundChannelArr.splice(i, 1); // SoundManager.removeChannel(_channel); // TODO 是否需要? 去掉有什么好处? 是否还需要其他...

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