• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,218 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0156 秒)

681. 基础文本 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

...xt.borderColor = "#fa1515"; this.txt.overflow = "scroll"; this.txt.on(Laya.Event.MOUSE_DOWN, this, this.startScrollText); } /* 开始滚动文本 */ startScrollText() { prevX = this.txt.mouseX; prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Laya.E...

来源: Laya3.0_文档 发布时间: 20251010

682. 单机游戏如何监听网络是否连接 [ 59%]

...了不进行消息通信,当网断的时候是不是会触发 socket.on(Event.CLOSE, this, onSocketClose);在onSocketClose函数里处理执行逻辑对吧? 问题二:因为对H5不是很了解,想问问有没有像APP一样,直接关闭的语句,比如NativeApplication.nativeApplication...

来源: Laya_社区 发布时间: 20170206

683. Steam扩展实例 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

...ton}) public initBtn: Laya.Button; onEnable(): void { this.initBtn.on(Laya.Event.CLICK, this.onInit); } onInit() { alert(extendLib.initializeSteam()); } } 构建发布Windows后,需要在exe的同级目录下,新建一个steam_appid.txt 文件,其中只包含 AppID。 (图2-2) 在Steam客...

来源: Laya3.0_文档 发布时间: 20251010

684. matter.js物理引擎问题 [ 59%]

...化成Laya中的点击事件,现在我的做法是注册 Laya.stage.on(Event.MOUSE_DOWN, this, this.onMouseDown),每次点击matter创建的刚体就会消失。 2017-09-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...

来源: Laya_社区 发布时间: 20170929

685. 侦听下舞台的Blur和Focus事件 代码怎么写 [ 59%]

...交 1 个回复 Monica - 知识达人 赞同来自: zjwytqm Laya.stage.on(Event.BLUR,this,onBlur); 2017-08-06 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 zjwytqm 相关问题 分享:自定义事件派发与...

来源: Laya_社区 发布时间: 20170805

686. laya.display.Input [ 59%]

... All Classes | Index | Frames No Frames InputProperties | Methods | Events | Constants Packagelaya.displayClasspublic class InputInheritanceInput Text Sprite Node EventDispatcher Object Input 类用于创建显示对象以显示和输入文本。 Input 类封装了原生的文本输入框...

来源: Laya2.0_api 发布时间: 20190513

687. post提交问题 [ 59%]

...t发送Post请求有Bug? 求指点3d射线碰撞和UI点击穿透的问题 event自定义事件的问题 问题状态 最新活动: 2017-12-25 23:24 浏览: 1364 关注: 2 人

来源: Laya_社区 发布时间: 20171225

688. laya.resource.Texture [ 59%]

...All Classes | Index | Frames No Frames TextureProperties | Methods | Events Packagelaya.resourceClasspublic class TextureInheritanceTexture EventDispatcher Object Texture 是一个纹理处理类。 Public Properties PropertyDefined By  bitmap : Texture2D 获取位图。 Texture  destroy...

来源: Laya2.0_api 发布时间: 20190513

689. 陀螺仪 IOS [ 59%]

陀螺仪 IOS    Laya.Gyroscope.instance.on(Laya.Event.CHANGE,this,this.onDeviceorientation);   在IOS 下没有调用 onDeviceorientation 这个方法。陀螺仪在苹果上如何处理 2019-08-15 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

来源: Laya_社区 发布时间: 20190815

690. ProtocolBuffer通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

...tingBuffer); }; // 接收服务器返回的消息 this.socket.onmessage = (event) => { //将 event.data 转换为 Uint8Array 类型,以便传递给解码函数 handleServerResponse 进行处理。 const buffer = new Uint8Array(event.data); this.handleServerResponse(buffer); }; // 连接关闭...

来源: Laya3.0_文档 发布时间: 20251010