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

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

1. 对象池 · LayaAir3.0文档 · LAYABOX [ 100%]

...型对象的类。 * @return 此类型标识的一个对象。 */ static getItemByClass<T>(sign: string, cls: new () => T): T { if (!Pool._poolDic[sign]) return new cls(); var pool = Pool.getPoolBySign(sign); if (pool.length) { var rst = pool.pop(); rst[Pool.POOLSIGN] = false; } else { rst ...

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

2. 3D粒子编辑模块 · LayaAir3.0文档 · LAYABOX [ 70%]

...Create(path: string): Particle3D { var ret:Particle3D = Pool.getInstance().getItemByClass("Particle3D@" + path, Particle3D); ret.Init(path); return ret; } //粒子特效初始化 private Init(file_path:string): void { if (this._isInited) { return; } this._filePath = file_path; console.log("Particle3...

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

3. 缓动 · LayaAir3.0文档 · LAYABOX [ 54%]

...Before: boolean = false, autoRecover: boolean = true): Tween { return Pool.getItemByClass("tween", Tween)._create(target, props, duration, ease, complete, delay, coverBefore, false, autoRecover, true); } /** * 缓动对象的props属性到目标值。 * @param target 目标对象(即将更改属性...

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