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

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

101. http无响应 [ 90%]

... 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

102. websocket连接, ws 时没问题,改成 wss 没反应 [ 90%]

...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

103. websocket连接出错 [ 90%]

...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

104. [LayaAirIDE3]2d相机打包后问题 [ 90%]

...     onAwake() {         this.createJoystick();         this.bindEvents();                 // 监听全局事件         Laya.stage.on("DIALOG_SHOW", this, this.disable);         Laya.stage.on("DIALOG_HIDE", this, this.enable);     }      onDestroy() {         // ...

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

105. 陀螺仪接口无效呢?Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange); 什么原因呢 [ 90%]

陀螺仪接口无效呢?Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange); 什么原因呢 2017-10-15 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 game4d 赞同来自: var firstTime = true; laya....

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

106. [LayaAirIDE3]如何TextArea屏蔽掉右键的快捷菜单 [ 90%]

...容相关的链接 提交 1 个回复 LayaAir大为 赞同来自:     preventContextMenu: any = null;     onAwake(): void {         //禁用/启用鼠标右键         this.disableRightClick();         //this.enableRightClick();         //禁用Ctrl+c,Ctrl+v         this.owne...

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

107. 射线检测-碰撞器混合 [ 90%]

...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

108. Sprite-节点控制 [ 90%]

...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

109. Laya中Button等组件lose skin的问题 [ 90%]

...th(content);                 _$this._loaderCount || _$this.event(/*laya.events.Event.COMPLETE*/"complete");             });             }else {             var info=LoaderManager._resMap;             if (!info){             ...

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

110. websocket出错 [ 90%]

...                 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