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

大约有 75 项符合查询结果, 库内数据总量为 30,583 项。 (搜索耗时: 0.0027 秒)

71. Laya如何处理类与类之间的依赖关系 [ 52%]

...的情况。 那同理,静态变量如果初始赋值为另一个类的单例, 比如public static value: any = OtherClass.instace,这个也匹配不到的。 2017-11-07 0 0 分享 微博 QZONE 微信 ymsdandan 赞同来自: 好的,我们会和相关人员商讨一下,感谢您的宝贵建...

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

72. 请问Laya如何使用第三方物理库 [ 51%]

...: 我接入过CannonJS.  因为oimo没有ts描述文件 :(   建立一个单例里面跑Cannon.World private constructor() { this.world = new CANNON.World(); this.world.allowSleep = true; Laya.timer.frameLoop(1, this, this.Step); } public Step() { this.world.step(1 / 60); }   再把CANNON.Body包...

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

73. box2d动态创建绑定多个关节报错 Node:the component is singleton,can't add the second one. [ 48%]

...ton,can't add the second one.   翻看源码后发现有这么一段判断单例组件的限制 __proto.addComponentIntance=function(comp){         if (comp.owner)             throw "Node:the component has belong to other node.";         if (comp.isSingleton && t...

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

74. 真机环境找不到window---cant find variable: window stack [ 46%]

...ya.pathfinding.js的使用教程吗?API中没有找到。 设备的几个单例都获取不到 问题状态 最新活动: 2019-01-08 18:35 浏览: 2698 关注: 9 人 Max.魚魚魚鱼魚魚 • 2019-01-20 19:40 我安装最佳那个方案,解决了。先删了在 lib 的wxmini.js 中 注释掉第...

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

75. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 37%]

...ls { /** * <code>Timer</code> 是时钟管理类。它是一个单例,可以通过 Laya.timer 访问。 */ class Timer { private static _pool; /** 时针缩放。*/ scale: number; /** 当前时间。*/ currTimer: number; /** 当前的帧数。*/ currFrame: number; /** *两帧之间的...

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