大约有 1,246 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0071 秒)
Laya_社区(924) Laya3.0_api(80) Laya2.0_文档(78) Laya_示例(64) Laya2.0_示例(51) Laya3.0_文档(45) laya_api(2) Laya2.0_api(2)
... this.dlg; } function connect() { var hr = new Laya.HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); hr.send('http://111.73.45.19/index.php/Tgy/tgyPost', 'username=c11111&pas...
来源: Laya_社区 发布时间: 20170215
...ectByUrl("wss://192.168.1.250:5000/websocket/"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.erro...
来源: Laya_社区 发布时间: 20180510
...03:8888"); // this.socket.connect("10.10.1.103",8888); this.socket.on(Laya.Event.OPEN, this, openHandler); //建立连接 this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); //接收到数据触发函数 this.socket.on(Laya.Event.CLOSE, this, closeHandler); //关闭事件 this.socket.on(Laya.E...
来源: Laya_社区 发布时间: 20181107
... onAwake() { this.createJoystick(); this.bindEvents(); // 监听全局事件 Laya.stage.on("DIALOG_SHOW", this, this.disable); Laya.stage.on("DIALOG_HIDE", this, this.enable); } onDestroy() { // ...
来源: Laya_社区 发布时间: 20251125
陀螺仪接口无效呢?Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange); 什么原因呢 2017-10-15 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 game4d 赞同来自: var firstTime = true; laya....
来源: Laya_社区 发布时间: 20171015
...容相关的链接 提交 1 个回复 LayaAir大为 赞同来自: preventContextMenu: any = null; onAwake(): void { //禁用/启用鼠标右键 this.disableRightClick(); //this.enableRightClick(); //禁用Ctrl+c,Ctrl+v this.owne...
来源: Laya_社区 发布时间: 20251115
...te3D.addComponent(Laya.Rigidbody); //添加键盘事件 Laya.stage.on(Laya.Event.KEY_DOWN, this, onKeyDown); this.collider = this.scene.getChildByName("Collider"); this.collider.active = false; //是否开启debug模式 Laya.stage.on(Laya.Event.MOUSE_UP, this, drawCollider); } function onKeyDown(e) ...
来源: Laya_示例 发布时间: 20260303
...dule laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_NodeControl { private ape1: Sprite; private ape2: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(B...
来源: Laya2.0_示例 发布时间: 20260303
...th(content); _$this._loaderCount || _$this.event(/*laya.events.Event.COMPLETE*/"complete"); }); }else { var info=LoaderManager._resMap; if (!info){ ...
来源: Laya_社区 发布时间: 20191122
... output=socket.output; socket.on(Laya.Event.OPEN,this,onSocketOpen); socket.on(Laya.Event.CLOSE,this,onSocketClose); socket.on(Laya.Event.MESSAGE,this,onMessageRev); socket.on(Laya.Event.ERROR,this,onConnectError); 在 socket....
来源: Laya_社区 发布时间: 20170116