Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

ParticleSystem

class in UnityEngine

/

Hereda de:Component

Sugiere un cambio

¡Éxito!

Gracias por ayudarnos a mejorar la calidad de la documentación de Unity. A pesar de que no podemos aceptar todas las sugerencias, leemos cada cambio propuesto por nuestros usuarios y actualizaremos los que sean aplicables.

Cerrar

No se puedo enviar

Por alguna razón su cambio sugerido no pudo ser enviado. Por favor <a>intente nuevamente</a> en unos minutos. Gracias por tomarse un tiempo para ayudarnos a mejorar la calidad de la documentación de Unity.

Cerrar

Cancelar

Cambiar al Manual

Descripción

Script interface for particle systems (Shuriken).

When setting properties on particle modules, the settings are passed immediately into native code. This gives the best performance. This means that setting properties on a module struct doesn't set something in script that requires setting back to the particle system. It all happens automatically.

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.
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?
maxParticlesCantidad máxima de partículas a emitir.
particleCountLa cantidad actual de partículas (solo lectura).
playbackSpeedThe playback speed of the particle system. 1 is normal playback speed.
playOnAwakeIf set to true, the particle system will automatically start playing on startup.
randomSeedRandom seed used for the particle system emission. If set to 0, it will be assigned a random value on awake.
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.
shapePausa la ejecución del sistema de partículas.
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.
startDelayRetraso del comienzo en segundos.
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.
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.

Funciones Públicas

ClearElimina todas las partículas del sistema de partículas.
EmitEmit count particles immediately.
GetParticlesElimina todas las partículas del sistema de partículas.
IsAliveDoes the system have any live particles (or will produce more)?
PausePausa la ejecución del sistema de partículas.
PlayPlays the particle system.
SetParticlesSet the particles of this particle system. size is the number of particles that is set.
SimulateFastforwards the particle system by simulating particles over given period of time, then pauses it.
StopStops playing the particle system.

Miembros heredados

Variables

gameObjectThe game object this component is attached to. A component is always attached to a game object.
tagEl tag de este game object.
transformThe Transform attached to this GameObject (null if there is none attached).
hideFlagsShould the object be hidden, saved with the scene or modifiable by the user?
nameEl nombre del objeto.

Funciones Públicas

BroadcastMessageLlama al método denominado methodName de todos los MonoBehaviour en este game objecto en cualquiera de sus hijos.
CompareTag¿Este game object está etiquetado con tag?
GetComponentDevuelve un componente de tipo type si el game object tiene a alguno adjuntado, o null si no lo tiene.
GetComponentInChildrenReturns the component of Type type in the GameObject or any of its children using depth first search.
GetComponentInParentReturns the component of Type type in the GameObject or any of its parents.
GetComponentsReturns all components of Type type in the GameObject.
GetComponentsInChildrenReturns all components of Type type in the GameObject or any of its children.
GetComponentsInParentReturns all components of Type type in the GameObject or any of its parents.
SendMessageLlama al método denominado methodName en cada MonoBehaviour de este game object.
SendMessageUpwardsLlama al método denominado methodName en todos los MonoBehaviour de este juego y en todos los ancestros del behaviour.
GetInstanceIDReturns the instance id of the object.
ToStringDevuelve el nombre del objeto.

Funciones Estáticas

DestroyElimina un gameobject, componente o asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadMakes the object target not be destroyed automatically when loading a new scene.
FindObjectOfTypeDevuelve el primer objeto activo cargado de tipo type.
FindObjectsOfTypeDevuelve una lista de todos los objetos activos cargados de tipo type.
InstantiateDevuelve el nombre del objeto.

Operadores

bool¿Existe el objeto?
operator !=Compares if two objects refer to a different object.
operator ==Compares two object references to see if they refer to the same object.