Electrical Sparks VFX [HDRP, URP] Documentation for Unity

Package Requirements

  1. Unity version 2022.3+
  2. Project created either on High-Definition Render Pipeline or Universal Render Pipeline
  3. VFX Graph

How to install

1. Import the packages from the Package Manager in Unity

2. Choose an appropriate render pipeline package to install that fits your project, and double-click

How to use

1. Drag and drop the Visual Effect into the scene
2. Click on the Visual Effect in the hierarchy to quickly tweak it with exposed parameters

If more settings need to be tweaked, open up the Visual Effect in the VFX graph

VFX Parameters

Sparks Burst

Parameter name Explanation
VFX Bounds Center Controls the position of the VFX system bounds relative to the effect.
VFX Bounds Size Controls the size of the VFX system bounds used for visibility and culling calculations.
Spark Particle Burst Count Min Controls the minimum number of spark particles spawned per burst.
Spark Lifetime Min/Max Controls the random lifetime range used before spark particles are removed.
Spark Particle Size Controls the base size of the spark particles.
Spark Particle Mass Controls the mass value used to affect spark particle movement and force response.
Spark Initial Velocity Controls the initial movement speed and direction of spark particles.
Spark Color Over Lifetime Controls the color gradient applied to spark particles over their lifetime.
Base Spark Lifetime Min/Max Controls the random lifetime range used before base spark particles are removed.
Base Spark Size Over Lifetime Controls the size change applied to base spark particles over their lifetime.
Base Spark Color Controls the color tint applied to base spark particles.
Smoke Particle Spawn Rate Controls the number of smoke particles spawned per second.
Smoke Lifetime Min/Max Controls the random lifetime range used before smoke particles are removed.
Smoke Velocity Controls the movement speed and direction of smoke particles.
Smoke Size Over Lifetime Controls the size change applied to smoke particles over their lifetime.
Smoke Color Over Lifetime Controls the color gradient applied to smoke particles over their lifetime.

Sparks Constant

Parameter name Explanation
VFX Bounds Center Controls the position of the VFX system bounds relative to the effect.
VFX Bounds Size Controls the size of the VFX system bounds used for visibility and culling calculations.
Sparks Particle Spawn Rate Controls the number of spark particles spawned per second.
Spark Lifetime Min/Max Controls the random lifetime range used before spark particles are removed.
Spark Particle Size Controls the base size of the spark particles.
Spark Particle Mass Controls the mass value used to affect spark particle movement and force response.
Spark Initial Velocity Controls the initial movement speed and direction of spark particles.
Spark Color Over Lifetime Controls the color gradient applied to spark particles over their lifetime.
Base Spark Lifetime Min/Max Controls the random lifetime range used before base spark particles are removed.
Base Spark Size Over Lifetime Controls the size change applied to base spark particles over their lifetime.
Base Spark Color Controls the color tint applied to base spark particles.
Smoke Particle Spawn Rate Controls the number of smoke particles spawned per second.
Smoke Lifetime Min/Max Controls the random lifetime range used before smoke particles are removed.
Smoke Velocity Controls the movement speed and direction of smoke particles.
Smoke Size Over Lifetime Controls the size change applied to smoke particles over their lifetime.
Smoke Color Over Lifetime Controls the color gradient applied to smoke particles over their lifetime.