If you need some help getting acquainted with Zibra Liquids, we prepared a special basic tutorial series for the Unity Version of Zibra Liquids. It consists of 11 videos – you can watch them here or follow our text tutorials.
The forth tutorial explains how to use detectors and voids. Liquid detectors are objects that are capable of detecting the number of liquid particles inside the detector area. Voids are the objects required to remove the liquid. Since there’s a limit to the maximum number of particles in Zibra Liquid object, you need to destroy particles for your emitters to keep emitting liquid continuously. However, the usage of voids is optional – if it’s fine for you that the emitters will stop at some point, you won’t need them.
How to create voids
1. To create Zibra Liquid Void, right click on your Zibra Liquid object, and select Zibra -> Zibra Liquid Void. You can also add a void by right clicking in Hierarchy (not on the Zibra Liquid object) and selecting Zibra -> Zibra Liquid Void.
2. Configure its position and size.
3. Add void to the manipulators list in the Zibra Liquid object inspector. If you right clicked on liquid when creating a new void then it will be added automatically.
4. Voids can display the Total amount of delated particles and Deleted particles per frame. You can see these values after starting the play mode. Or you can access them via scripts, via “deletedParticleCountTotal” and “deletedParticleCountPerFrame” attributes.
How to add detectors
1. To create a liquid detector, create Right click on your Zibra Liquid object, and select Zibra -> Zibra Liquid Detector. That will automatically add a new detector to your liquid. Alternatively, you can right click in Hierarchy (not on Zibra Liquid object) and select Zibra -> Zibra Liquid Detector
2. Configure the position and size of the detector.
3. Add detector to the manipulators list in the Zibra Liquid object inspector. If you right clicked on liquid when creating a new void then it will be added automatically.
4. Launch the simulation and check the result. Note that the detector can display the Amount of particles inside the detector. You can see these values after starting the play mode. Or you can also access those values via scripts, via the “particlesInside” attribute.
- Editor platforms: PC (DX11/DX12, x86 and x64), macOS(Metal, x64 and arm64) For M1 Mac users, the M1 native version of Unity Editor is strongly recommended.
- Unity version: 2019.4 or later (use the latest feature update)
- Supported Render Pipelines: SRP, URP, HDRP
- URP: 7.5 or later
- HDRP: 7.x or later