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

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

81. popup设置了关闭效果后,窗口关闭但遮罩层没有关掉,请问如何处理 [ 54%]

...Effect = Laya.Handler.create(this, this.hideEffect); this.btnClose.on(Laya.Event.CLICK, this, this.closeDialog); } //关闭 closeDialog(): void { this.close(); } //关闭效果 hideEffect(): void { Laya.Tween.to(this,{y:Laya.stage.height,alpha:0},200,Laya.Ease.linearIn); } //显示效果 showEffect(...

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

82. laya.ui.ColorPicker [ 54%]

...Classes | Index | Frames No Frames ColorPickerProperties | Methods | Events Packagelaya.uiClasspublic class ColorPickerInheritanceColorPicker Component Sprite Node EventDispatcher Object ColorPicker 组件将显示包含多个颜色样本的列表,用户可以从中选择颜色。 Public Pr...

来源: laya_api 发布时间: 20170929

83. laya.ui.ColorPicker [ 53%]

...Classes | Index | Frames No Frames ColorPickerProperties | Methods | Events Packagelaya.uiClasspublic class ColorPickerInheritanceColorPicker UIComponent Sprite Node EventDispatcher Object ColorPicker 组件将显示包含多个颜色样本的列表,用户可以从中选择颜色。 Public ...

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

84. laya.display.Scene [ 53%]

... All Classes | Index | Frames No Frames SceneProperties | Methods | Events Packagelaya.displayClasspublic class SceneInheritanceScene Sprite Node EventDispatcher Object 场景类,负责场景创建,加载,销毁等功能 场景被从节点移除后,并不会被自动垃圾机制回...

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

85. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 52%]

...h(config); console.log(`Running 'rollup watcher'...`); let tS; watcher.on('event', (event) => { // event.code 会是下面其中一个: // START — 监听器正在启动(重启) // BUNDLE_START — 构建单个文件束 // BUNDLE_END — 完成文件束构建 // END — 完成所有文件...

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

86. 2.0按钮添加事件报错 cannot read property 'on' fof undefined [ 52%]

...组件 layanative2 打包android平台 报错 btCollisionObject undefined event自定义事件的问题 IDE通过.ui自动生成的ui代码报错 怎么讲layaAir里的显示对象添加到matter.js里的物理引擎世界里 点击事件不起效 问题状态 最新活动: 2020-07-01 11:21 浏览: ...

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

87. zip更新(TypeScript-LayaNative原生服务-LayaNative进阶) [ 50%]

...* * 用zip进行更新。 * @param {string} url zip下载地址 * @param {(event:string,downloadPercent:number,curfile:string)=>void} onEvent 事件的回调。 * 其中的event是事件名称,可能的事件如下: * 'downloading' 下载中,这时候downloadPercent有值 * 'downloadError' 下...

来源: Laya2.0_文档 发布时间: 20210714

88. laya.ui.View_API3.0 [ 49%]

...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer close contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex...

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

89. ProtocolBuffer通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

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

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

90. socket无法连接服务器 [ 48%]

...d;         private initSocket(): void {             this.on(Laya.Event.OPEN, this, this.onConected);             this.on(Laya.Event.ERROR, this, this.onError);         }         public conectToServer(): void { //“连接”按钮的回调             if (this.connected...

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