大约有 41 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0052 秒)
Getcomponent 报错Uncaught (in promise) TypeError: Right-hand side of 'instanceof' is not an object 有复现工程 附件 : --> Laya2DTest.zip 2023-07-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 layabox...
来源: Laya_社区 发布时间: 20230703
... var item = this.getChildAt(i); if(item instanceof Item) { item.removeSelf(); item.visible = true; Pool.recover("item", item); item.graphics.clear(); }...
来源: Laya_社区 发布时间: 20170113
...;(instance: T): T { if (instance == null) { return instance } if (instance instanceof Date) { return new Date(instance.getTime()) as any } if (instance instanceof Array) { var cloneArr = [] as any[] ;(instance as any[]).forEach((value) => { cloneArr.push(value) }) return cloneArr.map((value: any)...
来源: Laya_社区 发布时间: 20230625
...件,请查明根本原因并修复 if (listener) { if(!(listener.method instanceof Function)&& listener.caller instanceof Function){ listener.method = listener.caller; } (data != null) ? listener.runWith(data) : listener.run(); } 2017-01-20 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170120
...源的时候,data为Texture2D类型,前两个判断没走,(data instanceof ArrayBuffer) 和 (!(data instanceof Texture2D))。导致tex为undefined,结果就无法继续加载了。。 LayaAir 2.6.0 的JS版本 ps: 加载的是FairyGui打包的图集,png格式,使用laya 2....
来源: Laya_社区 发布时间: 20200429
... let tex; if (data instanceof ArrayBuffer) { var ext = Utils.getFileExtension(this._url); let format; switch (ext) {...
来源: Laya_社区 发布时间: 20201130
...相关的链接 提交 2 个回复 cuixueying 赞同来自: 用typeof或者instanceof去判断! 2017-03-28 0 0 分享 微博 QZONE 微信 zeorro 赞同来自: laya 会在多个frame中来回切换吗?应该不会吧?都是在 laya player 这个frame 中操作各种东西而已吧? 因为类...
来源: Laya_社区 发布时间: 20170328
...QZONE 微信 nate(杨纯) 赞同来自: 因为你是闹闹啊 if (tmpDat instanceof Laya.SpineTemplet) { let obj: object = tmpDat["_textures"]; for (let key in obj) { if (obj.hasOwnProperty(key)) { let texture = obj[key] as Laya.SpineTe...
来源: Laya_社区 发布时间: 20240429
...--begin------------------------------ if (property instanceof Material) { switch (node.type) { case KeyFrameValueType.Float: property = property.getFloat(node.getProper...
来源: Laya_社区 发布时间: 20240517
...esponse}`, response.status, errorResponse ); } } catch (error) { if (error instanceof HttpException) { throw error; } else if (error instanceof Error) { throw new Error(`Network error: ${error.message}`); } else { throw new Error("Unknown network error occurred"); } } }); } 大概报错。联系方...
来源: Laya_社区 发布时间: 20251115