大约有 246 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0057 秒)
...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
...eld this.compile())) { //确认编译结果 this.checkAllDir(""); } else { console.log("compile fail!"); } }); } 复制代码[/code] 其中__awaiter是一个编译工具函数,相当于async/await ,因为引擎项目是ES6的,所以使用这种方式实现异步执行的功能,想进一步...
来源: Laya_社区 发布时间: 20200925
...是好的. 使用layacmd compile 之后 无法显示龙骨动画, chrome console 显示 can not create:SkeletonPlayer, 其他的好像没有什么问题 附件 : --> animation.zip log.zip 2017-03-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20170317
...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
...游戏库错误重现demo u3d粒子和模型导出错误 laya如何重写console.log 打印错误跟信息到自己写的日志面板上 LayaAirIDE无法打开代码编辑器,原因初次安装填写路径错误 动画getGraphicBounds()为什么错误 打开layaide,出现错误,要怎么解决...
来源: Laya_社区 发布时间: 20180721
...', 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
...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
... 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
...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
...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