大约有 1,171 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)
Laya_社区(876) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(39) laya_api(2) Laya2.0_api(2)
"this.moles[this.index].show is not a function" show方法定义过了,但还是显示这样 2019-02-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 这不属于引擎的内容。。 ...
来源: Laya_社区 发布时间: 20190208
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.flag = true; Laya.loader.load([monkey1Str, monkey2Str], Laya.Handler.create(this, this.onAssetsLoaded)); } onAssetsLoaded() { monkey1Res = Laya.loader.getRes(monkey1Str), monkey2Res = Laya.loader.getRes(monkey2Str); this...
来源: Laya2.0_示例 发布时间: 20251209
...x.resume() gameex.gameInfo.visible = true; gameex.bar.destoyRankSprite() this.nCountDown = 15; // console.log(gameex.snakeSelf) } }) //暂停 GameEx.prototype.pause = function () { console.log("停止播放音乐") Laya.SoundManager.stopMusic(); //停止游戏主循环 Laya.timer.clear(this,...
来源: Laya_社区 发布时间: 20180514
...画播放模式 在下面的示例代码中有一段代码 ```typescript this.skeleton = this.templet.buildArmature(); ``` 与内置版Spine动画播放模式不同的地方在于内置版我们需要传一个参数来确认使用哪种模式(三种模式中,0:不支持换装,1,2支持换装)...
来源: Laya2.0_文档 发布时间: 20210715
图集动画结束回调有延迟 this.ded.addLabel("animOver",9); this.ded.on(Laya.Event.LABEL, this, this.onHitOver); this.ded.on(Laya.Event.COMPLETE, this, this.onHitOver); 两种方法都会有延迟,不能100%执行 2018-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20181108
...bgColor = "#232628"; Laya.loader.load([texture1, texture2], Handler.create(this, onAssetsLoaded)); })(); function onAssetsLoaded() { ape = new Sprite(); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); // 显示默认纹理 switchTexture(); ape.on("c...
来源: Laya_示例 发布时间: 20251209
...次都给我翻倍的增加,如何解决 _proto.room_xinxi=function(){ this.roombg=new Laya.Image($mj.Curr_Game_ImagePath + "hall/room_bg.png"); this.roombg.pos(50,150); this.addChild(this.roombg); var button = new Sprite(); button.loadImage($mj.Curr_Game_ImagePath + "hall/room_jiesan.png"); butto...
来源: Laya_社区 发布时间: 20170920
...画播放模式 在下面的示例代码中有一段代码 ```typescript this.skeleton = this.templet.buildArmature(); ``` 与内置版Spine动画播放模式不同的地方在于内置版我们需要传一个参数来确认使用哪种模式(三种模式中,0:不支持换装,1,2支持换装)...
来源: Laya2.0_文档 发布时间: 20210715
....bgColor = "#232628"; Laya.loader.load("../../res/bg2.png", Handler.create(this, setup)); })(); function setup() { var bg = new Sprite(); bg.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg); bg2 = new Sprite(); bg2.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg2); bg2.scale(3, 3); //...
来源: Laya_示例 发布时间: 20251209
...ent.EVENT_CLOSE, (event) => { //触发条件,手机端把网全关了 this.testWebSocket();//这种方式会导致在短时间内App的websocket out of memory //这种方式短时间内没发现会崩溃 // setTimeout(()=>{ // this.testWebSocket(); // },3000); }); client.on(PinusWSClientEven...
来源: Laya_社区 发布时间: 20190507