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

大约有 48 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0060 秒)

1. 安装layaair2-cmd一直失败 [ 100%]

...bin-wrapper\node_modules\got\index.js:182:22)     at Object.onceWrapper (events.js:300:26)     at ClientRequest.emit (events.js:210:5)     at TLSSocket.socketErrorListener (_http_client.js:406:9)     at TLSSocket.emit (events.js:210:5)     at emitErrorNT (internal/streams/destroy.js:92:8) ...

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

2. laya.events.Keyboard_API3.0 [ 98%]

... Public/Protected <em>Allem> Inherited Externals Only exported Menu Globals "laya/events/Keyboard" Keyboard Class Keyboard Keyboard 类的属性是一些常数,这些常数表示控制游戏时最常用的键。 Hierarchy Keyboard Index Properties A ALTERNATE B BACKQUOTE BACKSLASH BACKSPACE C CAPS_LOCK C...

来源: Laya3.0_api 发布时间: 20231115

3. 网络通信 · LayaAir3.0文档 · LAYABOX [ 91%]

...,完成事件,错误事件等 /** * 请求进度改变时调度。 * @eventType Event.PROGRESS * */ /*[Event(name = "progress", type = "laya.events.Event")]*/ /** * 请求结束后调度。 * @eventType Event.COMPLETE * */ /*[Event(name = "complete", type = "laya.events.Event")]*/ /** * 请求...

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

4. [LayaAir3]LayaAir3.0UnityPlugin 导出出错 [ 90%]

...Verify that <em>allem> layout Begin/End c<em>allem>s match UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&amp;)  MissingReferenceException: The object of type 'SkinnedMeshRenderer' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not dest...

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

5. 使用百度地图 · LayaAir3.0文档 · LAYABOX [ 89%]

...Child(this.mapDiv); // 适应窗口尺寸 this.refit(); Laya.stage.on(Laya.Event.RESIZE, this, this.refit); // 初始化地图 this.map = new this.BMap.Map(this.mapDiv); // 禁用部分交互 //this.map.disableDragging(); this.map.disableKeyboard(); this.map.disableScrollWheelZoom(); this.map.disabl...

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

6. socket大型项目回调 [ 87%]

...odule PomeloLaya{ export class Pomelo{ static DEBUG:boolean = true; static EVENT_IO_ERROR:string = "io-error"; static EVENT_CLOSE:string = "close"; static EVENT_KICK:string = "onKick"; static EVENT_HEART_BEAT_TIMEOUT:string = 'heartbeat timeout'; private JS_WS_CLIENT_TYPE:string = 'js-websocket'; pr...

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

7. 2.x引擎项目升级指南 · LayaAir3.0文档 · LAYABOX [ 80%]

...Laya.Script命名函数方式处理输入。例如: this.aNode.on(Laya.Event.CLICK, ()=&gt; { console.log("clicked"); }); class MyScript extends Laya.Script { //脚本事件 onMouseClick(e:Event) { console.log("clicked"); } } aNode.addComponent(MyScript); 以上两种方式是等价的,且在纯...

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

8. UI运行时 · LayaAir3.0文档 · LAYABOX [ 80%]

...oid { // Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=&gt;{ this.Image.visible = false; }); } 运行此场景来看看效果,如动图2-7所示。 (动图2-7) UI组件脚本就已经介绍完了,再复杂的UI都可以通过勾选组件声明...

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

9. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 79%]

...tion; } } /** * 监听鼠标事件 */ onAwake(): void { Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.camera = (&lt;Laya.Camera&gt;this.owner); } /** * 监听键盘事件 */ onUpdate(): void { var elapsedTime: number = Laya.t...

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

10. lib/arm/liblayaair.so 总是崩溃 [ 78%]

...14 10:57:50.024 3526-3928/? D/WifiProJNI: Received kernel message payload: event 0 08-14 10:57:50.025 3526-3928/? I/QosMonitor: postEventFromNative: msg=100,arg1=0,arg2=9 08-14 10:57:50.025 3526-3928/? W/WifiProJNI: poll before: g_monitor_fd =163 08-14 10:57:50.025 3526-3526/? I/MQoS: rtt=440,tcp_tx...

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