Skip to content

API 参考 / ParticleSnapshot

Interface: ParticleSnapshot ​

Defined in: packages/natsume/src/runtime/particle-snapshot.ts:6

Copied particle state. Positions, velocities and sizes use Unity world units; rotations use radians.

Properties ​

age ​

readonly age: number

Defined in: packages/natsume/src/runtime/particle-snapshot.ts:15


color ​

readonly color: readonly [number, number, number, number]

Defined in: packages/natsume/src/runtime/particle-snapshot.ts:14


id ​

readonly id: number

Defined in: packages/natsume/src/runtime/particle-snapshot.ts:8

Stable within a system until restart; unaffected by particle-array compaction.


lifetime ​

readonly lifetime: number

Defined in: packages/natsume/src/runtime/particle-snapshot.ts:16


position ​

readonly position: readonly [number, number, number]

Defined in: packages/natsume/src/runtime/particle-snapshot.ts:9


remainingLifetime ​

readonly remainingLifetime: number

Defined in: packages/natsume/src/runtime/particle-snapshot.ts:17


rotation ​

readonly rotation: readonly [number, number, number]

Defined in: packages/natsume/src/runtime/particle-snapshot.ts:13

Euler components in the particle's simulation space.


size ​

readonly size: readonly [number, number, number]

Defined in: packages/natsume/src/runtime/particle-snapshot.ts:11


velocity ​

readonly velocity: readonly [number, number, number]

Defined in: packages/natsume/src/runtime/particle-snapshot.ts:10

基于 Apache License 2.0 发布