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

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

1. Laya.Pool用法 [ 100%]

..."proto_ParamsProto";         constructor() {             // Pool.recover(ProtoPool.PROTO_HEAD, new com.bigao.h5.proto.Head());             // Pool.recover(ProtoPool.PROTO_BINARY_REQUEST, new com.bigao.h5.proto.BinaryRequest());             // Pool.recover(ProtoPool.PROTO_PARAMS...

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

2. Poolrecover方法无法回收 [ 99%]

Poolrecover方法无法回收  laya3.0的这个方法是不是改得有问题,好像永远回收不进去的 附件 : --> 2023-08-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 mainzone 赞同来自: htt...

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

3. Laya.Pool.recover("people", p)是什么意思? [ 99%]

Laya.Pool.recover("people", p)是什么意思? 有大神能告知下这句话的的具体作用吗,还有各参数的意义,最好能说得详细些,我在开发中发现用了这句之后会导致我本来被回收的对象,后来又无缘无故的出现了! 2016-09-21 添加评论 免...

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

4. laya.utils.Pool_API3.0 [ 97%]

...Sign createByClass getItem getItemByClass getItemByCreateFun getPoolBySign recover recoverByClass Methods Static clearBySign clearBySign(sign: string): void Defined in laya/utils/Pool.ts:26 清除对象池的对象。 Parameters sign: string 对象类型标识字符。 Returns void Static createByCl...

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

5. box2d引擎报错问题 [ 96%]

...关逻辑代码如下: moveSuccess(){ this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } onTriggerEnter(other: any, self: any, contact: any): void { if (other.label === "cloud") { Laya.Tween.clearAll(this._sp) let effect: Laya.Animation = Laya.Pool.getItemByCreateFun("deathEffect",...

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

6. Laya.Pool.getItemByClass 找不到上次释放的对象 [ 95%]

...上次释放的对象 为了学习Laya.Pool.getItemByClass 和 Laya.Pool.recover ,做了一个简单的测试,代码如下:  //从POOL里获取BackGround对象 var bg1:BackGround= Laya.Pool.getItemByClass("mybg",BackGround); Laya.stage.addChild(bg1); console.log("bg1->",bg1); //对象放...

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

7. 对象池 · LayaAir3.0文档 · LAYABOX [ 95%]

... @param sign 对象类型标识字符。 * @param item 对象。 */ static recover(sign: string, item: any): void { if (item[Pool.POOLSIGN]) return; item[Pool.POOLSIGN] = true; Pool.getPoolBySign(sign).push(item); } 比如在游戏的一场战斗过程中,从对象池中拿出的子弹已经结束...

来源: Laya3.0_文档 发布时间: 20230303

8. laya.utils.Pool [ 93%]

...:Array[static] 根据对象类型标识字符,获取对象池。 Pool  recover(sign:String, item:Object):void[static] 将对象放到对应类型标识的对象池中。 PoolMethod DetailclearBySign()method public static function clearBySign(sign:String):void 清除对象池的对象。 Paramete...

来源: laya_api 发布时间: 20170929

9. laya.utils.Pool [ 92%]

...:Array[static] 根据对象类型标识字符,获取对象池。 Pool  recover(sign:String, item:Object):void[static] 将对象放到对应类型标识的对象池中。 Pool  recoverByClass(instance:*):void[static] 根据类名进行回收,如果类有类名才进行回收,没有则不回...

来源: Laya2.0_api 发布时间: 20190513

10. Laya.Pool缓存池问题 [ 90%]

...型标字符", "用于创建该类型对象的类"); Pool.recover( "对象类型标字符", "要存储的对象"); 15818760256 • 2018-04-17 16:56 @w1114367261:是的呀。。没错呀。。其实数组里的key就是获取时的标识符,是一样的。。var r...

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