In this lesson, you will learn how to configure the High Definition Render Pipeline (HDRP) and install the necessary infrastructure to unlock the power of GPU-accelerated visual effects.
The Foundation: HDRP and Package Manager
The Visual Effect Graph (VFX Graph) is not a standalone tool; it is a high-performance system designed to leverage the compute capabilities of the modern GPU. Because it relies heavily on compute shaders, it requires a compatible render pipeline—specifically the High Definition Render Pipeline (HDRP)—to function.
To get started, navigate to Window > Package Manager. Ensure your "Packages" dropdown is set to "Unity Registry." Search for the Visual Effect Graph package and click Install. Note that installing this will automatically pull in required dependencies, such as the Core RP Library.
Configuring the Pipeline
Once the package is installed, you must ensure your project is actually using an HDRP asset. If you created your project using an HDRP template, this is already configured. If not, follow these steps:
- Create a global settings asset: Assets > Create > Rendering > HDRP Asset.
- Go to Edit > Project Settings > Graphics.
- Drag your new HDRP asset into the Scriptable Render Pipeline Settings slot.
Without a valid HDRP asset, your VFX Graphs will fail to render, as the system lacks the necessary compute buffers and render-target pipelines to draw your particles.
Verifying the Installation
After the configuration, you can verify your setup by right-clicking in your Project window and selecting Create > Visual Effects > Visual Effect Graph. If the file icon appears, the system is correctly initialized.
When you open this asset, you will see a node-based interface. Unlike the legacy Particle System which runs primarily on the CPU, every change you make here is processed in parallel on the GPU. This allows you to simulate millions of particles simultaneously, provided your HDRP settings are optimized to support high-density compute buffers.
Key Takeaway: The VFX Graph requires a functional HDRP configuration within the Graphics Project Settings to enable the compute shader pipeline necessary for high-performance GPU particle simulation.