大约有 1,300 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0057 秒)
Laya_社区(1114) Laya2.0_文档(69) Laya3.0_文档(47) Laya2.0_示例(27) Laya_示例(24) Laya3.0_api(17) laya_api(1) Laya2.0_api(1)
...节点被添加到舞台后 onEnable(): void { console.log("2d gamescene onEnable"); let btn:Laya.Button = LayaUtil.GetChildByPath(this.owner, "CreatePanel/BtnCreate"); btn.clickHandler = Laya.Handler.create(this, this.onClickCreate...
来源: Laya_社区 发布时间: 20231221
... (zipData: JSZip) => { console.log(zipData.files); for (let i in zipData.files) { console.log(`key=${i},value=${zipData.files[i]}`); } ...
来源: Laya_社区 发布时间: 20230208
...致app重启 打包app运行一段时间,发现重新调用oncreate,看log发现opengl报错。 log如下: 2018-11-23 17:28:52.456 1657-1657/com.android.bluetooth E/BluetoothMapService: Unexpected error! 2018-11-23 17:28:52.459 10354-10354/com.xzgame.rainbow E/LayaBox: >>>>>>...
来源: Laya_社区 发布时间: 20181123
...思路?或者上完成的代码? LoseFocus(){ console.log("失去焦点") this.NowPlayMusic.stop(); } GetFocus(){ console.log("获取焦点"); Laya.SoundManager.stopMusic(); Laya.SoundManager.de...
来源: Laya_社区 发布时间: 20200220
...a.Handler.create(this, function (obj) { console.log('hero',obj); }), null, Laya.Loader.PREFAB); Laya.loader.create("prefab/WeiTiao.json", Laya.Handler.create(this, function (obj) { console.log('WeiTiao',obj); ...
来源: Laya_社区 发布时间: 20211026
...rGold(); if(gold > 500){ Online.joinGame().then(function(data){ console.log(data); StorageHelper.setDeskNo(data.desk.deskNo); StorageHelper.setDeskSeat(data.ownSeatNo); Laya.stage.destroyChildren(); var playSence = new OnlinePlaySence(data); Laya.stage.addChild(playSence); },function(data){ conso...
来源: Laya_社区 发布时间: 20171219
... Laya.timer.frameLoop(1, this, this.checkHit); this.loadUI(); console.log("碰撞结果:" + boxCollider1.boundBox.containsSphere(cylinder.meshRender.boundingSphere)); console.log("碰撞结果:" + boxCollider1.boundBox.containsBoundBox(cylinder.meshRender.boundingBox)); console.log("碰撞结果...
来源: Laya_社区 发布时间: 20180820
... 150,"red"); ctx.fillText("texttt",100,100,"","#ffffff","center"); console.log("draw complete"); 2017-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: LayaAir也是基于canvas绘制...
来源: Laya_社区 发布时间: 20170502
...aya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void { console.log("touch a"); } 因为需要将mouseThrough=true才可以,蛋疼的api描叙你能相信是这个熟悉么? “mouseThrough : Boolean = false,指定当mouseEnabled=true时,是否可穿透。默认值为false,如...
来源: Laya_社区 发布时间: 20161109
...Ball = function(){ this.ball.x -= this.vx; this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.stageHeight ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; } if (this.ball.x + this.vx >= this.stageWidth...
来源: Laya_社区 发布时间: 20171107