大约有 96 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0039 秒)
...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
...E 微信 一点一滴 赞同来自: 常用的游戏功能都封装到一个单例类文件里,提供调用的接口然后反馈所需的需求,这应该是做项目最基本最常用的做法了 2018-05-11 0 2 分享 微博 QZONE 微信 Aaron1111 赞同来自: 关于界面的重复利用独立...
来源: Laya_社区 发布时间: 20180511
...ative ios上js访问不到JSBridge类中的方法,请求官方帮助, as 单例类的方法 赋值问题 JS如何调用经过转换的FLASH游戏里的方法? websocket 中 protobuf 数据的发送与接收的具体方法是怎样的? Tween的to方法完成缓动后的回调怎么写,Tween.t...
来源: Laya_社区 发布时间: 20181110
...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
...: 我接入过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
...s LoaderManager LoaderManager 类用于用于批量加载资源。此类是单例,不要手动实例化此类,请通过Laya.loader访问。 全部队列加载完成,会派发 Event.COMPLETE 事件;如果队列中任意一个加载失败,会派发 Event.ERROR 事件,事件回调参数值...
来源: Laya3.0_api 发布时间: 20231102
...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
...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
...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
...ls { /** * <code>Timer</code> 是时钟管理类。它是一个单例,可以通过 Laya.timer 访问。 */ class Timer { private static _pool; /** 时针缩放。*/ scale: number; /** 当前时间。*/ currTimer: number; /** 当前的帧数。*/ currFrame: number; /** *两帧之间的...
来源: Laya_社区 发布时间: 20171109