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

大约有 5 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0025 秒)

1. 对象池 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

对象池使用一、概述二、对象池 Pool2.1 获得一个对象池2.2 清理一个对象池2.3 从池中获得对象2.4 回收对象到池中2.5 通过类名,获得和回收对象对象池使用 一、概述 在项目开发过程中,有许多对象会不停的创建与移除,比如角...

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

2. laya.html.HtmlElement_API3.0 [ 96%]

... Constructors constructor Properties _attrs name obj space style text type pool Methods fetchAttributes getAttr getAttrBool getAttrFloat getAttrInt getAttrString reset setAttr getFromPool returnToPool Constructors constructor new HtmlElement(): HtmlElement Defined in laya/html/HtmlElement.ts:28 Retu...

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

3. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 86%]

...e3D; import ShurikenParticleSystem = Laya.ShurikenParticleSystem; import { Pool } from "./Pool"; //粒子特效的基类,包括创建,播放,暂停,销毁,清理对象池 export class Particle3D extends Sprite3D { private _isInited: boolean = false; private _filePath: string = null; privat...

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

4. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 86%]

...e3D; import ShurikenParticleSystem = Laya.ShurikenParticleSystem; import { Pool } from "./Pool"; //粒子特效的基类,包括创建,播放,暂停,销毁,清理对象池 export class Particle3D extends Sprite3D { private _isInited: boolean = false; private _filePath: string = null; privat...

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

5. 组件脚本的内置方法 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...und/hit.wav"); } else { if (owner.parent) { let effect: Laya.Sprite = Laya.Pool.getItemByCreateFun("effect", this.createEffect, this); owner.parent.addChild(effect);//将爆炸动画添加到父节点中 effect.pos(owner.x, owner.y);//设置爆炸动画的位置,让其跟随方块 owner.removeSelf...

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