大约有 332 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
...0 1 分享 微博 QZONE 微信 cuixueying 赞同来自: _layout是在狗仔函数中就已经初始化了,如果你要自定义的话,需要在你的构造函数里就进行赋值! 2017-07-10 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...
来源: Laya_社区 发布时间: 20170705
...o.catchCard ( 于是我定位到编译好的code.js, 是在Timer的这个函数中,获取$_TID时报错了 /**@private */ __proto._getHandler=function(caller,method){ var cid=caller ? caller.$_GID || (caller.$_GID=Utils.getGID()):0; var mid=method.$_TID || (method.$_TID=(this._mid++)*100000); re...
来源: Laya_社区 发布时间: 20180520
...- `declare enum` 声明全局枚举类型 - `declare function` 声明全局函数 - `declare class` 声明全局类 - `declare module`声明全局模块 - `declare namespace` 声明全局对象(含有子属性) - `interface 和 type` 声明全局类型 通过以上语法,我们可以看出,...
来源: Laya2.0_文档 发布时间: 20210715
... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...
来源: Laya3.0_api 发布时间: 20231115
...擎onTriggerStay不执行的bug laya.physics.js文件中 这个_sendEvent函数中,"_triggered"标签已经用被来区分是Enter还是Stay了。 而在box2d.b2Contact.prototype.Update函数中,又用"!b"的方式区分了是Begin还是Stay。 这种重复的区分导致onTriggerStay一直无...
来源: Laya_社区 发布时间: 20200916
...-12-14 17:40 发布肯定是已经发布了的。。。。看了下tabUI的函数也是正常的,发布没有问题,不然也会报错了 Laya_Aaron • 2017-12-14 18:04 顺便说一下,类名最好别用Tab 关键字 Laya_Aaron • 2017-12-14 18:15 @xdkaka:看我最上面那个回复,已经...
来源: Laya_社区 发布时间: 20171214
...run(); 编译后login.js里是空的,所有module都只有一个入口样函数,运行时当然就是报错,找不到定义,内容如下: (function(window,document,Laya){ var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__getset=Laya.getset,__newvec=Laya.__newvec; })...
来源: Laya_社区 发布时间: 20170209
...{ Laya.Resource.destroyUnusedResources(); }); } 当触发了释放资源的函数,会报错如下: laya.webgl.js:5713 Uncaught TypeError: Cannot read property '_targets' of null at WebGLContext2D.__proto.drawCanvas (laya.webgl.js:5713) at RenderContext.__proto.drawCanvas (laya.core.js:5822) at R...
来源: Laya_社区 发布时间: 20181016
...s.showMsgFunc = null; } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg() { console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后,我们将我们创建的这个脚本添加给cube。 ```typescript //加载...
来源: Laya2.0_文档 发布时间: 20210715
...后尝试修改了helloworld中的几个关键字,自定义成自己的函数名。 "activationEvents": [ "onCommand:extension.buildTemplate" ], "main": "./out/extension", "contributes": { "commands": [ { "command": "extension.buildTemplate", "title": "build template" } ] }, 继续打包依然成...
来源: Laya_社区 发布时间: 20180728