大约有 210 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0064 秒)
Laya_社区(166) Laya3.0_文档(10) Laya2.0_api(9) laya_api(7) Laya3.0_api(7) Laya2.0_文档(7) Laya2.0_示例(2) Laya_示例(2)
...是” Laya.Loader.clearTextureRes(url); 比如这个页面的关闭 Close(): void { IconManager.Instance().clearTexture(this.leftverticaldrawing.skin);//清理某个动态贴图的资源(clearRes方法清理png) IconManager.Instance().clearTexture(this.rig...
来源: Laya_社区 发布时间: 20200915
...然后点击删除,将对应选中的条目删除掉。 dialog如果在close动画播放完毕后删除 怎么删除元素 [LayaNative2.2.0beta4] 无论是否删除或者替换layabox.ttf 都会直接crash 【有demo】 为什么IDE点发布后,把待发布的文件夹里面的libs目录删除...
来源: Laya_社区 发布时间: 20171019
...UG: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'; private JS_WS_CLIENT_VERSION:string = '0.0.5'; priv...
来源: Laya_社区 发布时间: 20180119
...addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_close.png'); let box:laya.physics.BoxCollider = this._boll1.addComponent(laya.physics.BoxCollider); box.height = 60; box.width = 28; //添加刚体 this._boll1.addComponent(Laya.RigidBody); //创建挡板 this.createPanel(); ...
来源: Laya_社区 发布时间: 20190428
...表示不透明。更改alpha值会影响drawcall。Sprite autoDestroyAtClosed : Boolean = false场景被关闭后,是否自动销毁(销毁节点和使用到的资源),默认为falseScene autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽...
来源: Laya2.0_api 发布时间: 20190513
...3) at emitTwo (events.js:106) at ChildProcess.emit (events.js:191) at maybeClose (internal/child_process.js:885) at Socket.<anonymous> (internal/child_process.js:334) at emitOne (events.js:96) at Socket.emit (events.js:188) at Pipe._handle.close [as _onclose] (net.js:501) 2017-08-29 添加评...
来源: Laya_社区 发布时间: 20170829
....socket.on(Laya.Event.MESSAGE, this, onReceive); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); 以上代码,host传入 "localhost" 可以连接上服务器, 将host 换成内网IP 172.19.1.236 就无法连接。 同事...
来源: Laya_社区 发布时间: 20180312
...触发。 Event.MESSAGE:收到服务器发送的数据时触发。 Event.CLOSE:连接关闭时触发。 Event.ERROR:连接出错时触发。 示例代码: // 注册事件监听示例 this.socket.on(Laya.Event.OPEN, this, this.onSocketOpen); this.socket.on(Laya.Event.MESSAGE, this, this.onMes...
来源: Laya3.0_文档 发布时间: 20251010
...et.on(Laya.Event.MESSAGE, this, receiveHandler); this.socket.on(Laya.Event.CLOSE, this, closeHandler); this.socket.on(Laya.Event.ERROR, this, errorHandler); function openHandler(event){ //正确建立连接; console.log("链接"); } function receiveHandler(msg){ ///接收到数据触发函数 cons...
来源: Laya_社区 发布时间: 20180125
...出来 export class login_bgUI extends View { public btn_close:Laya.Button; public lab_account:Laya.TextInput; public btn_login:Laya.Button; public lab_password:Laya.TextInput; public btn_register:Laya.Button; ...
来源: Laya_社区 发布时间: 20181207