Back to Entitycomponentsystemsamples

TriggerParticles

GraphicsSamples/HDRPSamples/Assets/SampleScenes/3. Hybrid Components/TriggerParticles/README.md

latest881 B
Original Source

TriggerParticles

This sample demonstrates how to play a VFX Graph from an ECS System. Enter Play mode to see the animation.

What does it show?

The scene contains a Subscene and in the Subscene there is a sphere and a VFX Graph. The JumpingSpherePSSystem script animates the jumping sphere and plays the VFX Graph when the sphere hits the ground.

How to use this sample scene?

  1. In the Hierarchy, select the Subscene
  2. In the Inspector, click Open
  3. Note that the VFX Graph is in the Subscene and baked to be a Companion Compoents that you can access from the ECS System script.

More information

For more information about companion components, see the Companion Components documentation.