MCPcopy
hub / github.com/layabox/LayaAir-v1 / Emission

Class Emission

bin/ts/ts/LayaAir.d.ts:14468–14534  ·  view source on GitHub ↗

* Emission 类用于粒子发射器。

Source from the content-addressed store, hash-verified

14466 * <code>Emission</code> 类用于粒子发射器。
14467 */
14468 class Emission implements IClone, IDestroy {
14469 _bursts: Array<Burst>;
14470 /**是否启用。*/
14471 enbale: boolean;
14472 /**
14473 * 获取粒子发射速率。
14474 * @return 粒子发射速率 (个/秒)。
14475 */
14476 /**
14477 * 设置粒子发射速率。
14478 * @param emissionRate 粒子发射速率 (个/秒)。
14479 */
14480 emissionRate: number;
14481 /**
14482 * 获取是否已销毁。
14483 * @return 是否已销毁。
14484 */
14485 readonly destroyed: boolean;
14486 /**
14487 * 创建一个 <code>Emission</code> 实例。
14488 */
14489 constructor();
14490 /**
14491 * @private
14492 */
14493 destroy(): void;
14494 /**
14495 * 获取粒子爆裂个数。
14496 * @return 粒子爆裂个数。
14497 */
14498 getBurstsCount(): number;
14499 /**
14500 * 通过索引获取粒子爆裂。
14501 * @param index 爆裂索引。
14502 * @return 粒子爆裂。
14503 */
14504 getBurstByIndex(index: number): Burst;
14505 /**
14506 * 增加粒子爆裂。
14507 * @param burst 爆裂。
14508 */
14509 addBurst(burst: Burst): void;
14510 /**
14511 * 移除粒子爆裂。
14512 * @param burst 爆裂。
14513 */
14514 removeBurst(burst: Burst): void;
14515 /**
14516 * 通过索引移除粒子爆裂。
14517 * @param index 爆裂索引。
14518 */
14519 removeBurstByIndex(index: number): void;
14520 /**
14521 * 清空粒子爆裂。
14522 */
14523 clearBurst(): void;
14524 /**
14525 * 克隆。

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected