大约有 416 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0102 秒)
...所有侦听器。 EventDispatcher offAllCaller(caller:*):EventDispatcher 移除caller为target的所有事件监听 EventDispatcher on(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher 使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦...
来源: Laya2.0_api 发布时间: 20190513
...rs Optional type: string (可选)事件类型,如果值为 null,则移除本对象所有类型的侦听器。 Returns EventDispatcher 此 EventDispatcher 对象。 offAllCaller offAllCaller(caller: any): EventDispatcher Inherited from EventDispatcher.offAllCaller Defined in laya/events/Event...
来源: Laya3.0_api 发布时间: 20231115
...t.addItemFromPool(); aList.removeChildren(); 这里添加了10个item,但移除时并没有保存他们的引用,也没有放回到池里,这样就造成了内存泄漏。将aList.removeChildren改成aList.removeChildrenToPool(); 移除和销毁是两回事。当你把item从列表移除时,...
来源: Laya3.0_文档 发布时间: 20251128
...rs Optional type: string (可选)事件类型,如果值为 null,则移除本对象所有类型的侦听器。 Returns EventDispatcher 此 EventDispatcher 对象。 offAllCaller offAllCaller(caller: any): EventDispatcher Inherited from EventDispatcher.offAllCaller Defined in laya/events/Event...
来源: Laya3.0_api 发布时间: 20231115
...景类,负责场景创建,加载,销毁等功能 * 场景被从节点移除后,并不会被自动垃圾机制回收,如果想回收,请调用destroy接口,可以通过unDestroyedScenes属性查看还未被销毁的场景列表 */ export class Scene extends Sprite { /**创建后,还...
来源: Laya3.0_文档 发布时间: 20251010
... role.y += role.speed; // 判断飞机是否移动到舞台外部,然后移除回收 if(role.y>1000 || !role.visible || (role.isBullet && role.y < -20)){ // 从舞台移除 role.removeSelf(); // 回收前重置属性信息 role.isBullet = false; role.visible = true; // 回收到对...
来源: Laya_社区 发布时间: 20170525
...h) < 0){ //判断整个floor是否不在屏幕里面了 如果不在了 移除当前floor Laya.timer.clear(this, this.onLoop); this.visible = false; this.event(Floor.OUT_DIE, this); } } /** * 检测碰撞 * x 坐标 * y 坐标 */ _proto.checkHit = function(x,y){ if(x > this.x && x <...
来源: Laya_社区 发布时间: 20160801
...的重要因素之一。 在游戏中有许多对象在不停的创建与移除,比如角色攻击子弹、特效的创建与移除,NPC的被消灭与刷新等,在创建过程中非常消耗性能,特别是数量多的情况下。 对象池技术能很好解决以上问题,在对象移除...
来源: Laya3.0_文档 发布时间: 20251010
...rs Optional type: string (可选)事件类型,如果值为 null,则移除本对象所有类型的侦听器。 Returns EventDispatcher 此 EventDispatcher 对象。 offAllCaller offAllCaller(caller: any): EventDispatcher Implementation of ISelect.offAllCaller Inherited from EventDispatcher.of...
来源: Laya3.0_api 发布时间: 20231115
... role.y += role.speed; // 判断飞机是否移动到舞台外部,然后移除回收 if(role.y>1000 || !role.visible || (role.isBullet && role.y < -20)){ // 从舞台移除 role.removeSelf(); // 回收前重置属性信息 role.isBullet = false; role.visible = true; // 回收到对...
来源: Laya_社区 发布时间: 20170525