Quick Start
beginner quick startLiquid Volume Pro 2 · Quick Start
Prerequisites: Unity 2022.3 LTS or later with your target render pipeline configured (Built-in, URP, or HDRP).
URP Setup (Required)
If you are using the Universal Rendering Pipeline, complete these steps before adding any liquid volumes.
- Ensure a URP Asset is assigned in Project Settings > Graphics and/or Project Settings > Quality for each active quality level.
- Add the Liquid Volume Depth PrePass Render Feature to your URP Forward Renderer. This is required for refraction and irregular topology. A ready-to-use URP asset is included in the
Demosfolder. - In the URP Asset, enable Depth Texture. If you use the refraction effect, also enable Opaque Texture.
Tip: The demo scenes include a pre-configured URP asset. You can duplicate it as a starting point.
Adding Liquid Volumes to 3D Scenes
- Create or select a Sphere, Cylinder, Cube, or custom mesh GameObject.
- Click Add Component and search for LiquidVolume.
- Set the Topology to match your mesh shape. For non-primitive shapes, choose Irregular.
- Adjust the Level slider to set the fill amount.
Ready-to-use prefabs are available in LiquidVolume/Resources/Prefabs. Drag and drop them into your scene.
Adding Liquid Volumes to 2D UI
Liquid Volume can display as health bars, mana indicators, or other UI elements.
- Locate the
CameraLifeorCameraMagicprefabs inLiquidVolume/Resources/Prefabsand add them to your scene. - These prefabs create a sphere flask with a dedicated camera that renders to a RenderTexture (
LifeRTorMagicRTinResources/Textures). - Assign the RenderTexture to a RawImage UI component in your game interface.
Tip: Check the
RPG_LifeAndMagic demo scene for a working example.
Exploring Demo Scenes
We strongly recommend exploring the included demo scenes before integrating into your project. They showcase different topologies, multi-layer liquids, 2D UI usage, and physics interaction. See Demo Scenes for details.
Next Steps
- Settings Reference — Full parameter documentation.
- Scripting Support (C#) — Runtime control.
- Troubleshooting — Common issues and solutions.
Was this page helpful?
Suggest an improvement
Help us improve this documentation page.