Insect 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 Visual Effect into the scene
2. Click on the Visual Effect in the hierarchy to quickly tweak it with exposed parameters

If more settings are needed to be tweaked open up the Visual Effect in the VFX graph

VFX Parameters

Cockroaches

Parameter name Explanation
Cockroach Particle Count Controls the number of particles used by the effect.
Cockroach Size Controls the base size of the cockroach particles.
Spawn Circle Radius Controls the radius of the circular area where cockroach particles are spawned.
Turbulence Scale Controls the strength of the turbulence applied to particle movement.
Velocity Controls the movement speed of the particles.
Set Lifetime Random [Min] Controls the minimum lifetime value used before particles are removed.
Set Lifetime Random [Max] Controls the maximum lifetime value used before particles are removed.
Center Controls the position of the VFX system bounds relative to the effect.
Size Controls the size of the VFX system bounds used for visibility and culling calculations.

Moths

Parameter name Explanation
Moth Particle Count Controls the number of moth particles used by the effect.
Moth Size Controls the base size of the moth particles.
Spawn Sphere Size Controls the size of the spherical area where moth particles are spawned.
Swarm Size Controls the size of the area where moth particles move as a swarm.
Turbulence Scale Controls the strength of the turbulence applied to moth particle movement.
Moth Body Tilt Controls the tilt angle applied to the moth body.
Maximum Velocity Controls the maximum movement speed of the moth particles.
Center Controls the position of the VFX system bounds relative to the effect.
Size Controls the size of the VFX system bounds used for visibility and culling calculations.
Wing Flap Frequency [Min] Controls the minimum wing flap frequency used by the moth particles.
Wing Flap Frequency [Max] Controls the maximum wing flap frequency used by the moth particles.
Wing Flap Angle [Min] Controls the minimum wing flap angle used by the moth particles.
Wing Flap Angle [Max] Controls the maximum wing flap angle used by the moth particles.

Flies

Parameter name Explanation
Fly Particle Count Controls the number of fly particles used by the effect.
Fly Size Controls the base size of the fly particles.
Spawn Sphere Size Controls the size of the spherical area where fly particles are spawned.
Swarm Size Controls the size of the area where fly particles move as a swarm.
Turbulence Scale Controls the strength of the turbulence applied to fly particle movement.
Maximum Velocity Controls the maximum movement speed of the fly particles.
Center Controls the position of the VFX system bounds relative to the effect.
Size Controls the size of the VFX system bounds used for visibility and culling calculations.

FAQ

  • When I edit the moths or other effects with the exposed parameters, nothing changes, what to do?
    • Sometimes this happens because the visual effect needs to be recompiled. To do this just open the effect in Visual Effect Graph and click the Compile and Save buttons.