Version: 2018.2

Particle

struct in UnityEngine

Switch to Manual

Description

Скриптовый интерфейс для частицы (Particle).

Variables

angularVelocityУгловая скорость частицы.
angularVelocity3DУгловая скорость частицы.
animatedVelocityThe animated velocity of the particle.
axisOfRotationMesh particles will rotate around this axis.
positionПозиция частицы.
randomSeedThe random seed of the particle.
remainingLifetimeНачальное значение времени жизни частицы.
rotationПоворот частицы.
rotation3DПоворот частицы.
startColorThe initial color of the particle. The current color of the particle is calculated procedurally based on this value and the active color modules.
startLifetimeНачальное значение времени жизни частицы.
startSizeThe initial size of the particle. The current size of the particle is calculated procedurally based on this value and the active size modules.
startSize3DThe initial 3D size of the particle. The current size of the particle is calculated procedurally based on this value and the active size modules.
totalVelocityThe total velocity of the particle.
velocityСкорость частицы.

Public Functions

GetCurrentColorCalculate the current color of the particle by applying the relevant curves to its startColor property.
GetCurrentSizeCalculate the current size of the particle by applying the relevant curves to its startSize property.
GetCurrentSize3DCalculate the current 3D size of the particle by applying the relevant curves to its startSize3D property.