Version: 5.3 (switch to 5.4b)
ЯзыкEnglish
  • C#
  • JS

Язык программирования

Выберите подходящий для вас язык программирования. Все примеры кода будут представлены на выбранном языке.

Particle

struct in UnityEngine

Руководство

Описание

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

Переменные

angularVelocityУгловая скорость частицы.
angularVelocity3DУгловая скорость частицы.
lifetimeВремя жизни частицы.
positionПозиция частицы.
randomSeedThe random seed of the particle.
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.
velocityСкорость частицы.

Открытые функции

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.