大约有 75 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0030 秒)
...TS的小游戏工程,但是在MiniAdpter的类声明中只有init方法 declare module laya.wx.mini { class MiniAdpter { /** * 初始化回调 * @param isPosMsg 是否需要在主域中自动将加载的文本数据自动传递到子域,默认 false * @param isSon 是否是子域,默认为fals...
来源: Laya_社区 发布时间: 20180808
...Static Extensions Extensions: {} Defined in laya/gltf/glTFUtils.ts:87 Type declaration [name: string]: Handler Static Extras Extras: {} Defined in laya/gltf/glTFUtils.ts:92 保存 extra 处理函数对象 Type declaration [name: string]: {} [name: string]: Handler Methods Static RegisterExtra Regist...
来源: Laya3.0_api 发布时间: 20231102
...perty } = Laya; @regClass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此...
来源: Laya3.0_文档 发布时间: 20251010
...,ide进行代码编辑,引入的时候提示未定义 d.ts 文件内容:declare module biagic.jni{ interface WXApi{ login():Promise<any>; } }调用时使用:biagic.jni.WXApi #提示找不到 请教一下大家,我的姿势有什么问题吗? 为什么自定义的 d.ts 文件,不能被ide识...
来源: Laya_社区 发布时间: 20180522
...相册的方法,现在是js文件中方法写完了,我在ts中使用declare function clickGallery();声明了clickGallery方法,然后我直接在方法里调用clickGallery();的时候报方法未定义,不知道什么原因???? 2018-01-03 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20180103
...t> 然后新定义weixin.d.ts文件,加入以下两个语句: declare var wx: any; declare var WeixinJSBridge: any; 以声明使用wx对象 在初始化MiniAdpter之后,执行如下两个语句 console.log("type of wx is "+typeof(wx)); console.log("type of wx.config is "+typeof(...
来源: Laya_社区 发布时间: 20180724
...3; indices[index++] = 1; indices[index++] = 2; indices[index++] = 3; const declaration = Laya.VertexMesh2D.getVertexDeclaration(["POSITION,UV"], false)[0]; const mesh2D = Laya.Mesh2D.createMesh2DByPrimitive([vertices], [declaration], indices, Laya.IndexFormat.UInt16, [{ length: indices.length, start...
来源: Laya3.0_文档 发布时间: 20251010
...d member 'particle'.'at: '4253,38'source: 'ts' 似乎是腳本內沒有 declare modle Laya.d3.core.particle{ } 的函式。 附件 : --> 相关链接 : http://ldc.layabox.com/download/LayaAirTS_1.7.8_beta.zip 2017-08-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20170803
...了。 简单加一个空行,又报错。编译又不报了。 Import declarations in a namespace cannot reference a module. 2017-11-16 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zengjoeng 相关问题 预设怎么在代码中...
来源: Laya_社区 发布时间: 20171116
...: 2 人 陆仁毅 • 2019-07-30 18:01 改下protobuf的d.ts。export=>declare。然后把namespace的相关引用改下就行。或者把js放到d.ts同级,把js改成es6 Channel.F • 2019-07-30 18:16 辛苦大神, 我先试试,那如果第二个方案,我把js放到d.ts的那个文件...
来源: Laya_社区 发布时间: 20190730