Particle Playground - Script Reference
3.0.1
Framework for controlling particles in the Unity Engine.
|
The Playground Cache contains all data for particles in built-in arrays. More...
Public Member Functions | |
PlaygroundCache | Clone () |
Copies this PlaygroundCache. More... | |
Public Attributes | |
float[] | initialSize |
The initial size of each particle. More... | |
float[] | size |
The lifetime size of each particle. More... | |
float[] | rotation |
The rotation of each particle. More... | |
float[] | life |
The current lifetime of each particle. More... | |
float[] | lifetimeSubtraction |
The lifetime subtraction of each particle (applied when using random between two values). More... | |
float[] | birth |
The time of birth for each particle. More... | |
float[] | birthDelay |
The delayed time of birth when emission has changed. More... | |
float[] | death |
The time of death for each particle. More... | |
bool[] | emission |
The emission for each particle (controlled by emission rate). More... | |
bool[] | rebirth |
The rebirth for each particle. More... | |
float[] | lifetimeOffset |
The offset in birth-death (sorting). More... | |
Vector3[] | velocity |
The velocity of each particle in. More... | |
Vector3[] | initialVelocity |
The initial velocity of each particle. More... | |
Vector3[] | initialLocalVelocity |
The initial local velocity of each particle. More... | |
Vector3[] | position |
The position of each particle. More... | |
Vector3[] | targetPosition |
The source position for each particle. More... | |
Vector3[] | targetDirection |
The source direction for each particle. More... | |
Vector3[] | previousTargetPosition |
The previous source position for each particle (used to calculate delta movement). More... | |
Vector3[] | previousParticlePosition |
The previous calculated frame's particle position. More... | |
Vector3[] | collisionParticlePosition |
The calculated particle position for collision (depending on collision stepper). More... | |
Vector3[] | localSpaceMovementCompensation |
The delta to compensate for moving particles in local space. More... | |
Vector3[] | scatterPosition |
The scattered position to apply on each particle birth. More... | |
float[] | initialRotation |
The initial rotation of each particle. More... | |
float[] | rotationSpeed |
The rotation speed of each particle. More... | |
Color32[] | color |
The color of each particle. More... | |
Color32[] | scriptedColor |
The color set from script of each particle. More... | |
Color32[] | initialColor |
The set source color. More... | |
int[] | lifetimeColorId |
The color gradient for each particle if Color Source is set to LifetimeColors. More... | |
bool[] | noForce |
The particle will no longer respond to any forces during its lifetime. More... | |
bool[] | isNonBirthed |
The particle is not birthed yet. More... | |
bool[] | isFirstLoop |
The particle is in its first loop. More... | |
bool[] | simulate |
The particle is set to simulate. More... | |
bool[] | isCalculatedThisFrame |
Determines if the particles are calculated during this frame. This helps to see if a particle has gotten its expected values during this frame or if it will be ready later. The method is used when syncing particles onto the Main-Thread to ensure smooth movement upon heavier calculated particle systems. More... | |
bool[] | changedByProperty |
The interaction with property manipulators of each particle. More... | |
bool[] | changedByPropertyColor |
The interaction with property manipulators that change color of each particle. More... | |
bool[] | changedByPropertyColorLerp |
The interaction with property manipulators that change color over time of each particle. More... | |
bool[] | changedByPropertyColorKeepAlpha |
The interaction with property manipulators that change color and wants to keep alpha. More... | |
bool[] | changedByPropertySize |
The interaction with property manipulators that change size of each particle. More... | |
bool[] | changedByPropertyTarget |
The interaction with property manipulators that change target of each particle. More... | |
bool[] | changedByPropertyDeath |
The interaction with death manipulators that forces a particle to a sooner end. More... | |
int[] | propertyTarget |
The property target pointer for each particle. More... | |
int[] | propertyId |
The property target id for each particle (pairing a particle's target to a manipulator). More... | |
int[] | propertyColorId |
The property color id for each particles (pairing a particle's color to a manipulator. More... | |
int[] | manipulatorId |
The id of the last manipulator affecting each particle. More... | |
int[] | excludeFromManipulatorId |
The id of manipulator to not affect each particle. More... | |
float[] | lifetimeLoss |
The lifetime loss of each particle. More... | |
bool[] | isMasked |
Determines if a particle is masked. More... | |
float[] | maskAlpha |
The alpha of each masked particle. More... | |
int[] | maskSorting |
The sorting of the masked particles. More... | |
The Playground Cache contains all data for particles in built-in arrays.
PlaygroundCache ParticlePlayground.PlaygroundCache.Clone | ( | ) |
Copies this PlaygroundCache.
float [] ParticlePlayground.PlaygroundCache.birth |
The time of birth for each particle.
float [] ParticlePlayground.PlaygroundCache.birthDelay |
The delayed time of birth when emission has changed.
bool [] ParticlePlayground.PlaygroundCache.changedByProperty |
The interaction with property manipulators of each particle.
bool [] ParticlePlayground.PlaygroundCache.changedByPropertyColor |
The interaction with property manipulators that change color of each particle.
bool [] ParticlePlayground.PlaygroundCache.changedByPropertyColorKeepAlpha |
The interaction with property manipulators that change color and wants to keep alpha.
bool [] ParticlePlayground.PlaygroundCache.changedByPropertyColorLerp |
The interaction with property manipulators that change color over time of each particle.
bool [] ParticlePlayground.PlaygroundCache.changedByPropertyDeath |
The interaction with death manipulators that forces a particle to a sooner end.
bool [] ParticlePlayground.PlaygroundCache.changedByPropertySize |
The interaction with property manipulators that change size of each particle.
bool [] ParticlePlayground.PlaygroundCache.changedByPropertyTarget |
The interaction with property manipulators that change target of each particle.
Vector3 [] ParticlePlayground.PlaygroundCache.collisionParticlePosition |
The calculated particle position for collision (depending on collision stepper).
Color32 [] ParticlePlayground.PlaygroundCache.color |
The color of each particle.
float [] ParticlePlayground.PlaygroundCache.death |
The time of death for each particle.
bool [] ParticlePlayground.PlaygroundCache.emission |
The emission for each particle (controlled by emission rate).
int [] ParticlePlayground.PlaygroundCache.excludeFromManipulatorId |
The id of manipulator to not affect each particle.
Color32 [] ParticlePlayground.PlaygroundCache.initialColor |
The set source color.
Vector3 [] ParticlePlayground.PlaygroundCache.initialLocalVelocity |
The initial local velocity of each particle.
float [] ParticlePlayground.PlaygroundCache.initialRotation |
The initial rotation of each particle.
float [] ParticlePlayground.PlaygroundCache.initialSize |
The initial size of each particle.
Vector3 [] ParticlePlayground.PlaygroundCache.initialVelocity |
The initial velocity of each particle.
bool [] ParticlePlayground.PlaygroundCache.isCalculatedThisFrame |
Determines if the particles are calculated during this frame. This helps to see if a particle has gotten its expected values during this frame or if it will be ready later. The method is used when syncing particles onto the Main-Thread to ensure smooth movement upon heavier calculated particle systems.
bool [] ParticlePlayground.PlaygroundCache.isFirstLoop |
The particle is in its first loop.
bool [] ParticlePlayground.PlaygroundCache.isMasked |
Determines if a particle is masked.
bool [] ParticlePlayground.PlaygroundCache.isNonBirthed |
The particle is not birthed yet.
float [] ParticlePlayground.PlaygroundCache.life |
The current lifetime of each particle.
int [] ParticlePlayground.PlaygroundCache.lifetimeColorId |
The color gradient for each particle if Color Source is set to LifetimeColors.
float [] ParticlePlayground.PlaygroundCache.lifetimeLoss |
The lifetime loss of each particle.
float [] ParticlePlayground.PlaygroundCache.lifetimeOffset |
The offset in birth-death (sorting).
float [] ParticlePlayground.PlaygroundCache.lifetimeSubtraction |
The lifetime subtraction of each particle (applied when using random between two values).
Vector3 [] ParticlePlayground.PlaygroundCache.localSpaceMovementCompensation |
The delta to compensate for moving particles in local space.
int [] ParticlePlayground.PlaygroundCache.manipulatorId |
The id of the last manipulator affecting each particle.
float [] ParticlePlayground.PlaygroundCache.maskAlpha |
The alpha of each masked particle.
int [] ParticlePlayground.PlaygroundCache.maskSorting |
The sorting of the masked particles.
bool [] ParticlePlayground.PlaygroundCache.noForce |
The particle will no longer respond to any forces during its lifetime.
Vector3 [] ParticlePlayground.PlaygroundCache.position |
The position of each particle.
Vector3 [] ParticlePlayground.PlaygroundCache.previousParticlePosition |
The previous calculated frame's particle position.
Vector3 [] ParticlePlayground.PlaygroundCache.previousTargetPosition |
The previous source position for each particle (used to calculate delta movement).
int [] ParticlePlayground.PlaygroundCache.propertyColorId |
The property color id for each particles (pairing a particle's color to a manipulator.
int [] ParticlePlayground.PlaygroundCache.propertyId |
The property target id for each particle (pairing a particle's target to a manipulator).
int [] ParticlePlayground.PlaygroundCache.propertyTarget |
The property target pointer for each particle.
bool [] ParticlePlayground.PlaygroundCache.rebirth |
The rebirth for each particle.
float [] ParticlePlayground.PlaygroundCache.rotation |
The rotation of each particle.
float [] ParticlePlayground.PlaygroundCache.rotationSpeed |
The rotation speed of each particle.
Vector3 [] ParticlePlayground.PlaygroundCache.scatterPosition |
The scattered position to apply on each particle birth.
Color32 [] ParticlePlayground.PlaygroundCache.scriptedColor |
The color set from script of each particle.
bool [] ParticlePlayground.PlaygroundCache.simulate |
The particle is set to simulate.
float [] ParticlePlayground.PlaygroundCache.size |
The lifetime size of each particle.
Vector3 [] ParticlePlayground.PlaygroundCache.targetDirection |
The source direction for each particle.
Vector3 [] ParticlePlayground.PlaygroundCache.targetPosition |
The source position for each particle.
Vector3 [] ParticlePlayground.PlaygroundCache.velocity |
The velocity of each particle in.