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

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

161. 使用滤镜报错 [ 76%]

...; var grayscaleFilter = new Laya.ColorFilter(grayscaleMat); //按钮置灰 function enable_false(v) {     v.filters = [grayscaleFilter];     v.mouseEnabled = false; } //按钮恢复 function enable_true(v) {     v.filters = null;     v.mouseEnabled = true; } 报错日志: TypeError: f....

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

162. for each" err,must add{} [ 75%]

...中需添加大括号包住for each作用域。 原生例子 : public function ForEachDemo() { var obj:Object = [ { key:1 }, { key:2 } ]; //转成成js时工具会在使用for each的地方添加相应的报错信息: //"for each" err,must add{} for each(var value:Object in obj) trace(value.ke...

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

163. 4、声音无法用loader预加载 ,微信小游戏 [ 75%]

... 小明同学 有空看看我那个错误 wx.getFileSystemManager is not a function;at requestAnimationFrame callback function TypeError: wx.getFileSystemManager is not a function

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

164. 官方的示例贴上来,怎么没反映啊 [ 75%]

官方的示例贴上来,怎么没反映啊 var JiHuo = (function (_super) { function JiHuo() { JiHuo.super(this); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(...

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

165. ts继承后,代码压缩的问题 [ 75%]

...多重复的一下语句 var __extends = this && this.__extends || function() { var extendStatics = Object.setPrototypeOf || { __proto__: [] }instanceof Array && function(d, b) { d.__proto__ = b } || function(d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p] } ; return fu...

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

166. laya.device.Shake_API3.0 [ 75%]

...则值为 true;否则,值为 false。 off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删除...

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

167. laya.device.motion.Gyroscope_API3.0 [ 75%]

...勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提供绝对方位数据(指向地球坐标系),或者设备决定的任意坐标系。关于坐标系参见https://...

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

168. [LayaAir3]【Laya3.2.0】3D导航导航navAgent.getCurrentPath()接口报错 [ 75%]

...navAgent.getCurrentPath()接口报错 TypeError: endRef.getData is not a function at localhost:18092/libs/laya.core.js:1151 附件 : --> 2024-06-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 囧囧有神 赞...

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

169. 两个构造函数怎么相互调用,使用对方的变量? [ 75%]

...构造函数怎么相互调用,使用对方的变量? A.js:var A=(function(){ function A(){ this.a=0; } })(); var a=new A(); B.js: var B=(function(){ function B(){ this.b=1; } })(); 我想在B.js文件中用A.js的属性a,该怎么操作,请大神帮帮小白。...

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

170. laya.d3.webxr.core.AxiGamepad_API3.0 [ 75%]

...则值为 true;否则,值为 false。 off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删除...

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