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

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

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

...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

22. 游戏系怎么把一些共用的功能独立出来 [ 58%]

...E 微信 一点一滴 赞同来自: 常用的游戏功能都封装到一个单例类文件里,提供调用的接口然后反馈所需的需求,这应该是做项目最基本最常用的做法了 2018-05-11 0 2 分享 微博 QZONE 微信 Aaron1111 赞同来自: 关于界面的重复利用独立...

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

23. onOpen方法是位于哪个类下面? [ 58%]

...ative ios上js访问不到JSBridge类中的方法,请求官方帮助, as 单例类的方法 赋值问题 JS如何调用经过转换的FLASH游戏里的方法? websocket 中 protobuf 数据的发送与接收的具体方法是怎样的? Tween的to方法完成缓动后的回调怎么写,Tween.t...

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

24. laya.renders.Render_API3.0 [ 57%]

...enders/Render" Render Class Render Render 是渲染管理类。它是一个单例可以使用 Laya.render 访问。 Hierarchy Render Index Constructors constructor Properties _Render _customRequestAnimationFrame _loopFunction is3DMode Accessors canvas context customRenderEngine Methods initRender...

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

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

...: 我接入过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

26. laya.net.LoaderManager_API3.0 [ 49%]

...s LoaderManager LoaderManager 类用于用于批量加载资源。此类是单例,不要手动实例化此类,请通过Laya.loader访问。 全部队列加载完成,会派发 Event.COMPLETE 事件;如果队列中任意一个加载失败,会派发 Event.ERROR 事件,事件回调参数值...

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

27. laya.components.Component_API3.0 [ 48%]

...singleton: boolean = true Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Defined in laya/components/Compo...

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

28. laya.components.CommonScript_API3.0 [ 45%]

...from Component._singleton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean I...

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

29. laya.physics.joint.JointBase_API3.0 [ 44%]

...from Component._singleton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean I...

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

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

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

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