Particle Effects are used to display particle effects for interactions. You can create a new Particle Effect by going to.
Particle Effects have the following properties:
- Particle Prefab – The prefab for the particles that will be shown.
- Particle Effect Type – The kind of particle effect.
- One Shot – A one-shot effect good for single collisions.
- Looped – Looped particles good for sliding or rolling effects.
- Emit On Slide – Should particles be displayed when sliding?
- Emit On Roll – Should particles be displayed when rolling?
- Minimum Velocity – The minimum collision velocity required for then particle effect to be shown.
- Collision Normal Influence – How much the collision normal will effect the calculated intensity of the collision.
Particle Effects require a prefab with an Impact Particle System component attached to it. You can add this script to your prefab by going to .
Impact Particle Systems have the following properties:
- Particle Systems – The Particle Systems that are being controlled.
- Rotation Mode – How the particles should be rotated on the surface.
- Align To Normal – Align the particles to the surface normal.
- Align To Velocity – Align the particles with the velocity direction.
- Align To Normal And Velocity – Align the particles to the surface normal, and also rotate them to match the velocity direction.
- No Rotation – Don't do any rotation.
- Axis – Which axis of the particles should be aligned to the surface.
- Scale Size With Velocity – Allows scaling the particle start size based on the collision velocity.
- Velocity Range – The velocity range to reference when comparing with the collision velocity.
- Curve – Defines the scalar value that will be applied to the particles based on the collision velocity and Velocity Range.
- Scale Speed With Velocity – Allows scaling the particle start speed based on the collision velocity.
- Scale Lifetime With Velocity – Allows scaling the particle start lifetime based on the collision velocity.
- Pool Size – The size of the object pool created for this particle system.
- Stealing – How the object pool should handle cases when you want to retreive a particle system, but they are all in use.
- None – Do nothing and no effect will be played.
- Lower Priority – Attempt to take an active particle system with a lower priority than this one. Priority is set on Impact Objects.
- Oldest – Take the particle system that has been active the longest.
- Effect Attach Mode – Defines what object involved in the collision, if any, the effect should attach to.
This can be useful for long collision effects that you want to follow an object.
See Managing Attached Effects for more info on how to properly manage attached effects.
- None – Don't attach to an object.
- This Object – Attach to the object that triggered the effect, if it is present.
- Other Object – Attach to the object that was collided with, if it is present.
Particle Effect Processor
The Particle Effect Processor is responsible for handling all Particle Effects at runtime.
You can create this component by going to Impact Effect Processors list on your Impact CFX Manager. Make sure that you add this processor to the
The Queue Capacity property defines how many particle effects the processor can handle in a single frame. This is automatically set based on the largest particle template pool size, but you can override it if you wish.