大约有 244 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0083 秒)
...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
...se.backIn, Laya.Handler.create(this, this.startGame)); } birdFly(): void { console.log("我飞!"); } startGame(): void { console.log("开始游戏!"); GameMain.aaa(); } } } 2018-05-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20180507
... constructor(){ super(); this.btnLogin.on(Laya.Event.CLICK,this,()=>{ console.log('btnLogin click') }) } createChildren(){ super.createChildren(); this.loadScene('LoginScene'); } } import LoginScene from "./script/LoginScene" /* * 游戏初始化配置; */ export default class GameCo...
来源: Laya_社区 发布时间: 20190402
...8-11-16 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: onGreen(){ console.log("换成绿锤子") this.greenPitchUp.visible=true; this.bluePitchUp.visible=false; let player=Player.instance; // player.anSk.showSlotSkinByIndex("HarmGreen",1); player.anSk.replaceSlotSkinByIndex("HarmGreen",1,0)...
来源: Laya_社区 发布时间: 20181114