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

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

11. Laya2.0导入protobufjs第三方库,报错找不到文件 [ 97%]

...的引入改成相对路劲,就报其他的路径找不到。 出错了: TypeScript error: node_modules/@types/node/index.d.ts(50,22): Error TS6053: File 'node_modules/@types/node/base.d.ts' not found.     请问要怎么设置,怎么放各种文件,才能把这个node_modules下的第三方...

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

12. socket大型项目回调 [ 97%]

...VENT_HEART_BEAT_TIMEOUT:string = 'heartbeat timeout'; private JS_WS_CLIENT_TYPE:string = 'js-websocket'; private JS_WS_CLIENT_VERSION:string = '0.0.5'; private RES_OK:number = 200; private RES_FAIL:number = 500; private RES_OLD_CLIENT:number = 501; private socket:Laya.Socket = null; private callback...

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

13. 加载的时候动画会卡 [ 97%]

...;         var imgArr = ;         imgArr.push({url:"cont/cpf1.jpg",type:Loader.IMAGE});         imgArr.push({url:"cont/cpr1.jpg",type:Loader.IMAGE});         imgArr.push({url:"cont/cps1.jpg",type:Loader.IMAGE});         imgArr.push({url:"cont/cpt1.jpg",type:Loader.IMAGE});     ...

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

14. laya.events.EventDispatcher [ 97%]

...事件的所有类的基类。 Public Methods  MethodDefined By  event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 EventDispatcher  isMouseEvent(type:S...

来源: laya_api 发布时间: 20170929

15. laya.events.EventDispatcher [ 97%]

...事件的所有类的基类。 Public Methods  MethodDefined By  event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 EventDispatcher  isMouseEvent(type:S...

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

16. laya.events.EventDispatcher_API3.0 [ 97%]

...hods event hasListener off offAll offAllCaller on once Methods event event(type: string, data?: any): boolean Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是需要传递多个参数 ...

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

17. parameter 2 is not of type 'WebGLTexture'. [ 97%]

parameter 2 is not of type 'WebGLTexture'. 播放视频,PC端播放正常Chrome F12手机模式调试播放报laya.core.js:906 Uncaught TypeError: Failed to execute 'bindTexture' on 'WebGL2RenderingContext': parameter 2 is not of type 'WebGLTexture'. 代码如下:// 创建video对象 let videoE...

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

18. 组件装饰器说明 · LayaAir3.0文档 · LAYABOX [ 97%]

...需要显示Tips或属性的中文别名等完整功能需求 @property({ type: String, caption: "IDE显示用的别名", tips: "这是一个文本对象,只能输入文本哦" }) public text1: string = ""; //装饰器属性类型的简写方式,适用于只定义类型的需求 @property(String...

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

19. parameter 2 is not of type 'WebGLTexture' [ 97%]

parameter 2 is not of type 'WebGLTexture'   var htmlC:HTMLCanvas = btn_edit.drawToCanvas(btn_edit.width, btn_edit.height, 0, 0); var interceptT:Texture = new Texture(htmlC); var img:Sprite = new Sprite; img.graphics.drawImage(interceptT, 0, 0, btn_edit.width, btn_edit.height); Laya.stage.addChild(...

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

20. 部分IOS机型在加载mp3音频文件时出错,资源加载异常 [ 97%]

...ay<any> = [             { url: "res/atlas/Images.atlas", type: Laya.Loader.ATLAS },                      { url: "Images/BG_Gray.png", type: Laya.Loader.IMAGE },             { url: "Images/BG_PopWindow.png", type: Laya.Loader.IMAGE },        ...

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