MainModule

struct in UnityEngine

Switch to Manual

Description

主模块的脚本接口。

Variables

cullingModeConfigure whether the Particle System will still be simulated each frame, when it is offscreen.
customSimulationSpace模拟相对于自定义变换组件的粒子。
duration粒子系统的持续时间(以秒为单位)。
emitterVelocityMode控制粒子系统在世界中移动时如何计算其速度。
flipRotationMakes some particles spin in the opposite direction.
gravityModifier应用于重力(由 Physics.gravity 定义)的缩放。
gravityModifierMultiplierChange the gravity multiplier.
loop粒子系统是否循环?
maxParticles要发射的最大粒子数。
playOnAwake如果设置为 true,则粒子系统会在启动时自动开始播放。
prewarm启用循环时,这可控制此粒子系统在首次变为可见时,是否看似已模拟了一个循环。
ringBufferLoopRangeWhen ParticleSystem.MainModule.ringBufferMode is set to loop, this value defines the proportion of the particle life that is looped.
ringBufferModeConfigure the Particle System to not kill its particles when their lifetimes are exceeded.
scalingMode控制粒子系统的变换组件如何应用于粒子系统。
simulationSpace这可选择要在其中模拟粒子的空间。可以是世界或本地空间。
simulationSpeed重写粒子系统的默认播放速度。
startColor发射时的粒子初始颜色。
startDelay启动延迟(以秒为单位)。
startDelayMultiplier启动延迟乘数(以秒为单位)。
startLifetime每个新粒子将具有的总生命周期(以秒为单位)。
startLifetimeMultiplier初始生命周期乘数。
startRotation发射时的粒子初始旋转。
startRotation3D用于启用 3D 粒子旋转的标志。
startRotationMultiplierThe initial rotation multiplier of particles when emitted.
startRotationX发射时粒子围绕 X 轴的初始旋转。
startRotationXMultiplierThe initial rotation multiplier of particles around the X axis when emitted.
startRotationY发射时粒子围绕 Y 轴的初始旋转。
startRotationYMultiplierThe initial rotation multiplier of particles around the Y axis when emitted.
startRotationZ发射时粒子围绕 Z 轴的初始旋转。
startRotationZMultiplierThe initial rotation multiplier of particles around the Z axis when emitted.
startSize发射时的粒子初始大小。
startSize3D一个标志,用于启用为每个轴单独指定粒子大小。
startSizeMultiplierA multiplier of the initial size of particles when emitted.
startSizeX发射时粒子沿 X 轴的初始大小。
startSizeXMultiplierThe initial size multiplier of particles along the X axis when emitted.
startSizeY发射时粒子沿 Y 轴的初始大小。
startSizeYMultiplierThe initial size multiplier of particles along the Y axis when emitted.
startSizeZ发射时粒子沿 Z 轴的初始大小。
startSizeZMultiplierThe initial size multiplier of particles along the Z axis when emitted.
startSpeed发射时的粒子初始速度。
startSpeedMultiplier发射时的粒子初始速度的乘数。
stopActionSelect whether to Disable or Destroy the GameObject, or to call the OnParticleSystemStopped script Callback, when the Particle System is stopped and all particles have died.
useUnscaledTime为 true 时,使用未缩放增量时间模拟粒子系统。否则使用已缩放增量时间。