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

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

81. laya微信小游戏加载外部素材失败 急急急 [ 66%]

...emo 代码非常少 可以重现我说的问题    function initLaya() { console.log('Laya.version:' + Laya.version); //初始化微信小游戏 Laya.MiniAdpter.init(); //初始化引擎 Laya3D.init(750, 1334, true); //适配模式 Laya.stage.scaleMode = 'fixedwidth'; Laya.stage.screenMode = Laya....

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

82. 深入理解LayaAir引擎架构和实现原理(一)跨平台引擎源码编译 [ 66%]

...eld this.compile())) { //确认编译结果 this.checkAllDir(""); } else { console.log("compile fail!"); } }); } 复制代码[/code] 其中__awaiter是一个编译工具函数,相当于async/await ,因为引擎项目是ES6的,所以使用这种方式实现异步执行的功能,想进一步...

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

83. layacmd compile 项目出现无法显示直接在ui里面添加的龙骨动画 [ 66%]

...是好的. 使用layacmd compile 之后 无法显示龙骨动画, chrome console 显示 can not create:SkeletonPlayer, 其他的好像没有什么问题 附件 : --> animation.zip log.zip 2017-03-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

84. this.bitmap.activeResource is not a function [ 66%]

...ize(Laya.stage.width,Laya.stage.height); if(this._openZone.parent) return; console.log("打开开放域",Laya.Browser.onMiniGame) Laya.stage.addChild(this._openZone); this._openZone.x = vx; this._openZone.y = vy; if(Laya.Browser.onMiniGame){ Laya.Browser.window.sharedCanvas.width = Laya.stage.design...

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

85. layaide为什么不检测错误 [ 66%]

...游戏库错误重现demo u3d粒子和模型导出错误 laya如何重写console.log 打印错误跟信息到自己写的日志面板上 LayaAirIDE无法打开代码编辑器,原因初次安装填写路径错误 动画getGraphicBounds()为什么错误 打开layaide,出现错误,要怎么解决...

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

86. matter中有没有类似于unity中的OnCollision碰撞检测函数呀,用js怎么写 [ 65%]

...', this.onCollision);   2.碰撞检测 private onCollision(event): void { console.log("碰撞了..");  var home = _gamePage._mainPage._playPage;  for(var i = 0; i < event.pairs.length; i++) {  var pair = event.pairs[i];  if(!(pair.bodyA.label === 'gun' || pair.bodyB.label == "gun")) continue...

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

87. 移动端Laya.VideoTexture播放视频纹理会出现卡顿情况~如何解决? [ 65%]

...t fun = () => {             let dt = new Date()             console.log("=============>", (dt.getTime() - this.IndexFrame));             this.lbTips.text = this.lbTips.text + " " + (dt.getTime() - this.IndexFrame);             this.IndexFrame = dt.getTime();        ...

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

88. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 65%]

... super.changeValue(); _proMask.scaleX = _value / _max; _proMask.repaint(); console.log("改变值: " + _proMask.scaleX); } /** *@inheritDoc */ override public function destroy(destroyChild:Boolean = true):void { super.destroy(destroyChild); _proMask && _proMask.destroy(_proMask); _progress &...

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

89. LayaBox 出错啦,请把此信息截图给研发商 SimpleSingletonList [ 65%]

...t."; _add(element); element._setIndexInList(length++); } catch(err) { console.log("多点触控出了问题,强行异常处理:",err); } } /** * @private */ public function remove(element:ISingletonElement):void { try { var index:int = element._getIndexInList(); length--; if (inde...

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

90. 分享:关于自定义场景继承的实现 [ 65%]

...e base{ export class BaseScene extends Laya.Scene{ constructor(){ super(); console.log('BaseScene:我是基类BaseScene,我的子类是导出类,我的父类是场景类'); } } } 导出UI 导出后layaMaxUI.ts的内容如下/**This class is automatically generated by LayaAirIDE, please do not make...

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