大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0131 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
... Date() console.log("=============>", (dt.getTime() - this.IndexFrame)); this.lbTips.text = this.lbTips.text + " " + (dt.getTime() - this.IndexFrame); this.IndexFrame = dt.getTime(); if (this.VideoTexture != null) ...
来源: Laya_社区 发布时间: 20230807
...器的方式: /* ……省略若干代码 */ //获取物理刚体组件 this.rigidbody1 = this.cube1.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D; this.rigidbody2 = this.cube2.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D; //设置rigidbody1为触发器,取消物理反馈 this.rigidbody...
来源: Laya3.0_文档 发布时间: 20251010
图片通过drawTexture平铺出现缝隙 this.darwSprite = new Sprite(); this.addChild(this.darwSprite); var t: Texture = Laya.loader.getRes("load/0.png"); this.darwSprite.graphics.drawTexture(t,0,0); this.darwSprite.graphics.drawTexture(t,176,0); ...
来源: Laya_社区 发布时间: 20160718
...有一些不解 private function skill():void { Laya.timer.once(1500,this,finish); //Laya.timer.once(3000,this,finish); } private function skill():void { this.visible=false; } 假定这是一个简陋的人物隐身技能,蓄力1.5s后人物消失。 测试的时候我发现...
来源: Laya_社区 发布时间: 20161216
...微信开发平台后event参数异常。 1. ide里面 libs\laya.core.js this._socket.onopen=function (e){ _$this._onOpen(e); };e是有值的 2.微信开发工具里面这个是e是无效的,原因是在weapp-adapter.js文件里面 socketTask.onOpen(func...
来源: Laya_社区 发布时间: 20180722
....create({ head: msgScheme.AMsg.Head.Login_Request, loginRequest: { userId: this.TextInput.text, password: "bbb" } }) let buffer = msgScheme.AMsg.encode(msg).finish() this.socket.send(buffer) 收消息时要先装到byte里再decode出来 private receiveHandler(msg): void { this.byte.clear() ...
来源: Laya_社区 发布时间: 20180320
发布微信小游戏后 this.preinitialize is not a function IDE里面调试一切正常,发布微信小游戏以后就出现这个BUG 2018-12-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 云淡风轻 赞...
来源: Laya_社区 发布时间: 20181203
...var mid = method.$_TID || (method.$_TID = (Timer._mid++) * 100000); return this._map[cid + mid]; } 当游戏玩的功能多时间长了,随着caller._$GID的增加,this._map里正在使用的handler被覆盖。 我们游戏有一个战斗的主循环出现了被覆盖的情况,导致游戏...
来源: Laya_社区 发布时间: 20210701
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF"...
来源: Laya_社区 发布时间: 20180529
...opup 刚进入时 可以 popup 点击主页上按钮 popup 不出来 通过this.addChild 没有蒙板遮罩,Dialog里的List组件 this.list_Btn.renderHandler = new Laya.Handler(this, this.onRender); this.onRender 函数 也未执行 2018-08-25 添加评论 免费帖 --> 分享 微博 QZONE 微信...
来源: Laya_社区 发布时间: 20180825