用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:particlesystem:particlesystem

ParticleSystem 粒子系统

class in UnityEngine / Inherits from: Component

Description 描述

Script interface for particle systems (Shuriken).

粒子系统的脚本接口(忍者飞镖)。

See Also: Particle.

Variables 变量

collisionAccess the particle system collision module.
访问粒子系统的碰撞模块。
colorBySpeedAccess the particle system color by lifetime module.
访问粒子系统的颜色生命模块。
colorOverLifetimeAccess the particle system color over lifetime module.
访问粒子系统的颜色生命周期模块。
durationThe duration of the particle system in seconds (Read Only).
粒子的持续时间,单位秒(只读)。
emissionAccess the particle system emission module.
访问粒子系统的发射模块。
externalForcesAccess the particle system external forces module.
访问粒子系统的外力模块。
forceOverLifetimeAccess the particle system force over lifetime module.
访问粒子系统的力的生命周期模块。
gravityModifierScale being applied to the gravity defined by Physics.gravity.
应用到Physics.gravity所定义的重力的大小。
inheritVelocityAccess the particle system velocity inheritance module.
访问粒子系统的速度继承模块。
isPausedIs the particle system paused right now ?
粒子系统现在暂停吗?
isPlayingIs the particle system playing right now ?
粒子系统是否正播放?
isStoppedIs the particle system stopped right now ?
粒子系统是否已停止?
limitVelocityOverLifetimeAccess the particle system limit velocity over lifetime module.
访问粒子系统的限制速度生命周期模块。
loopIs the particle system looping?
粒子系统正循环?
maxParticlesThe maximum number of particles to emit.
粒子发射的最大数量。
particleCountThe current number of particles (Read Only).
粒子当前的数量(只读)。
playbackSpeedThe playback speed of the particle system. 1 is normal playback speed.
粒子系统的播放速度。1是正常播放速度。
playOnAwakeIf set to true, the particle system will automatically start playing on startup.
如果设置为true,该粒子系统将在启动的时候自动开始播放。
randomSeedRandom seed used for the particle system emission. If set to 0, it will be assigned a random value on awake.
随机种子用于粒子系统发射。如果设置为0,将在唤醒时分配随机值。
rotationBySpeedAccess the particle system rotation by speed module.
访问粒子系统的旋转速度模块。
rotationOverLifetimeAccess the particle system rotation over lifetime module.
访问粒子系统的旋转生命周期模块。
scalingModeThe scaling mode applied to particle sizes and positions.
应用给粒子大小和位置的缩放模式。
shapeAccess the particle system shape module.
访问粒子系统的图形模块。
simulationSpaceThis selects the space in which to simulate particles. It can be either world or local space.
选择哪个空间模拟粒子。可以是世界坐标空间或局部坐标空间。
sizeBySpeedAccess the particle system size by speed module.
访问粒子系统大小速度模块。
sizeOverLifetimeAccess the particle system size over lifetime module.
访问粒子系统的大小寿命周期模块。
startColorThe initial color of particles when emitted.
当发射时粒子系统的初始颜色。
startDelayStart delay in seconds.
开始时延迟多少秒。
startLifetimeThe total lifetime in seconds that particles will have when emitted. When using curves, this values acts as a scale on the curve. This value is set in the particle when it is create by the particle system.
当粒子发射时,粒子总的生命周期,单位秒。当使用曲线,该值作为曲线上的大小。当粒子系统创建,该值在粒子上设置。
startRotationThe initial rotation of particles when emitted. When using curves, this values acts as a scale on the curve.
当粒子发射时,粒子的初始旋转角度。当使用曲线,该值作为曲线上的大小。
startRotation3DThe initial 3D rotation of particles when emitted. When using curves, this values acts as a scale on the curves.
当粒子发射时,粒子的初始3D旋转角度。当使用曲线,该值作为曲线上的大小。
startSizeThe initial size of particles when emitted. When using curves, this values acts as a scale on the curve.
当发射时,粒子的初始大小。当使用曲线,该值作为曲线上的大小。
startSpeedThe initial speed of particles when emitted. When using curves, this values acts as a scale on the curve.
当发射时,粒子的初始速度。当使用曲线,该值作为曲线上的大小。
subEmittersAccess the particle system sub emitters module.
访问粒子系统的子发射器模块。
textureSheetAnimationAccess the particle system texture sheet animation module.
访问粒子系统的纹理格动画模块。
timePlayback position in seconds.
播放时间位置,单位秒。
velocityOverLifetimeAccess the particle system velocity over lifetime module.
访问粒子系统的速度生命周期模块。

Public Functions 共有函数

ClearRemove all particles in the particle system.
删除粒子系统的所有粒子。
Emit
GetParticlesGet the particles of this particle system.
立即发射count数量的粒子。
IsAliveDoes the system have any live particles (or will produce more)?
该粒子系统还有任何活着的粒子?
PausePauses playing the particle system.
暂停正播放的粒子系统。
PlayPlays the particle system.
播放粒子系统。
SetParticlesSet the particles of this particle system. size is the number of particles that is set.
设置该粒子系统的粒子。size是设置粒子的数量。
SimulateFastforwards the particle system by simulating particles over given period of time, then pauses it.
在给定一段时间内通过模拟粒子快进粒子系统,然后暂停它。
StopStops playing the particle system.
停止播放粒子系统。
script/unityengine/classes/particlesystem/particlesystem.txt · 最后更改: 2016/08/02 05:25 (外部编辑)