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

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

1. Getcomponent 报错Uncaught (in promise) TypeError: Right-hand side of 'instanceof' is not an object [ 100%]

Getcomponent 报错Uncaught (in promise) TypeError: Right-hand side of 'instanceof' is not an object 有复现工程  附件 : --> Laya2DTest.zip 2023-07-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 layabox...

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

2. 编译时候报错 如下 怎么解决呢 [ 79%]

...member 'particle'. libs/LayaAir.d.ts(26700,11): error TS2417: Class static side 'typeof RenderTarget2D' incorrectly extends base class static side 'typeof Texture'. Types of property 'create' are incompatible. Type '(w: number, h: number, surfaceFormat?: number, surfaceType?: number, depthStencilFor...

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

3. 升级到1.78beta版后,包编译错误 [ 78%]

...member 'particle'. libs/LayaAir.d.ts(26700,11): error TS2417: Class static side 'typeof RenderTarget2D' incorrectly extends base class static side 'typeof Texture'.   Types of property 'create' are incompatible.     Type '(w: number, h: number, surfaceFormat?: number, surfaceType?: number, depthS...

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

4. 2D物理-碰撞过滤器 [ 74%]

....addGroup(rigidbody, ratio); } private function createTriangle(posx, posy, side, ratio) { var triangle = new Sprite(); var total = side * ratio; triangle.on(Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.addChild(triangle); triangle.pos(posx, posy).size(side * ratio, side * ratio); var rigidbod...

来源: Laya2.0_示例 发布时间: 20260930

5. 为模型指定地形材质报错 [ 74%]

...OR: 0:285: 'a' : field selection requires structure or vector on left hand side 2017-06-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 183*****755 赞同来自: 不能这样使用,meshSprite3D 只能用 Stand...

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

6. [分享]Dialog 点击边缘不关闭的 Demo示例 [ 60%]

...丶kiss public close(type?:string, showEffect?:boolean):void{ if(type === "side"){ return; } super.close(type, showEffect) }  刚下载了楼上的zip。方法生效了。表示感谢。 把代码贴出来。免得别人再去下载了。 2018-11-29 1 0 分享 微博 QZONE 微信 callback 赞同来...

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

7. [LayaAirIDE3]getTextWidth报null is not an object (evaluating \'i.width\') [ 58%]

...ct' of null Getcomponent 报错Uncaught (in promise) TypeError: Right-hand side of 'instanceof' is not an object alertexception info: [Typeerror: null is not object (evaluating this. vaoext createvertexarrayoes"] 多个对象添加点击事件, 舞台上面移除掉所有对象,并且置为null 'r...

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

8. 怎么给从模型生成的地形TerrainMaterial材质??? [ 58%]

...OR: 0:285: 'a' : field selection requires structure or vector on left hand side 2017-06-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 183*****755 赞同来自: 转成mesh,跟正常模型一样导出即可。...

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

9. Dialog:屏蔽点击Dialog之外的区域关闭弹框 [ 57%]

...者想要屏蔽的话,可以设置以下参数! UIConfig.closeDialogOnSide 2017-03-16 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 layabox 赞同来自: Laya_XS 、lxf4303120 、130*****113 、灬懂不丨懂...

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

10. Skeleton骨骼动画内存泄漏 [ 47%]

...(Laya.Event.COMPLETE, this, this.teComplete); this.te.loadAni("res/wing_01_side.sk"); } } else if(e.keyCode == 50 || e.keyCode == 98) { if(this.te != null){ this.te.destroy(); this.te = null; this.sk.destroy(); this.sk = null; } } } private teComplete():void{ this.sk = this.te.buildArmature(0); this...

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