Go back to documentation on product:

Zibra Effects

Zibra Liquid

Creating Liquid Simulation Volume

To create a Liquid instance:

  1. Right click in the Hierarchy window and select “Zibra Liquid -> Simulation Volume”.

    https://lh7-us.googleusercontent.com/SVDKt4Xm2-dPnvgeviLdZlDTzwbBZo9q3BAALEdueYK2d0LlZXGIKBD6JZTm0aFXI4HY17NUEN8pnen1y77AEuCcX9KQkpfk5ULa9UmfCTygCbsXxL9OBg0Q9Nb3tZ04zo0aqipuEc3W-bk6GQ3GeMA

  2. In the Inspector window, you’ll see the Zibra Liquid parameters:

https://lh7-us.googleusercontent.com/95wWQ8w670Rg4Pc0xyYOeLMCEWcNUmxtCcvLOxeW4YPATUHSajT9ZSQLXROGn2UoFMxzq3d9I9m65IM-uVXv1ZWKvoL6Drr_StocMX7sOPQxwGoH8rXBDBiQ70bWwJuPDhZQR-OLekwwXAHp8pYS_Js

  1. Set the “Reflection Probe” parameter. On BRP/URP it’s strongly recommended that you set this parameter, but is not strictly necessary. On HDRP it’s strictly necessary to set this parameter. You can check which render pipeline you are using by looking at the “Current render pipeline” message - on the screenshot the BRP is shown.

    https://lh7-us.googleusercontent.com/Z2e8si0_7KQHykun1jWmSgLhdZKndlfjefOnhn_T-fvQ7cj3gJGl1g5uaaPz84agt5LqeB4TEkAm5TtoK0CCQH83uR4fvkYrPsi1wvlQ2smwBMsrGqgcuaC7WsPLmhHx32iKPnwiTeADAv7LXB3pQAc

  2. If you are using BRP, you are now ready to use your liquid. For URP/HDRP please proceed to‣ or Additional setup on URP accordingly.

Additional setup on URP

If you are using URP you may see those errors:

https://lh7-us.googleusercontent.com/xkKu3JWKEsdGAH8fVe9itDUYlvYo1KjE-pTARCqM-OHZUHZHqrVyiE7MCSfeHRBQZTmDgX7yH7fHUzEk94XKLhPxj9rRXxUVt_MSFfesPtB_PJLFRJri1EZF59DoEFG-l4dchlZaaBw6MwyKfVFdlbw

To add “URP Liquid Rendering Component” and fix first error:

  1. Navigate to “Edit -> Project Settings…”

    https://lh7-us.googleusercontent.com/tnWmtnXlkyTkpvX7pQgITwNIOgoprsEWvSUMzetdr6KdFyhxU2TSDOzwXV9lDXbk6M3Ld1Ey4OK-bRpk-vLB-zRpqexi3uxfXueYsnoWjYvDyFSeNqh6KHICys4iBlpDuKObyzVNpLpGpDe1Sj85JCI

  2. From there go to Graphics and open your current Scriptable Render Pipeline Settings asset in the Inspector (you can do it by double clicking it).

    https://lh7-us.googleusercontent.com/Ukj7Eex1t2JSnB_RMN5qXQOvRbgywzDugplpwZTFtAGpdqfYQxNp0_eqVdlO4nDlfQLXKahNoRrO-IsKvrGApCCc2h-Iu0BwC0cQq0Wjk8tf8dwzvA9jtlKL-0tx5DjbCJtppopIFrX0U44fUASjW-I

  3. Now you can see the Renderer List. Open your default Renderer asset in the Inspector (you can do it by double clicking it). You may need to repeat following steps for non default Renderers if you intend on using liquid with them.

https://lh7-us.googleusercontent.com/sK2IehVU5lWsma-hf0VyssVdqi-xEuvDX9xAYBBGnuynPU7zovUXRqNHph6SGkOv08vUNMEQMpPoohn6O2Ay7leqVBdPf6SVUeM0iTvvAHHL1KvKwwC1cHYWO-PNrfL8qEcIgwmkZ-F6IY1KJJLio88

  1. Add the “Liquid URP Render Component”

    https://lh7-us.googleusercontent.com/1gN6zrlkoK1LjQLgy_hnVh5_Hg2woAv36fOxgbHSxVj5n0ZKsVEWYcYsYWSgOKxCIUoZWlQVugV9bdUIor4sIocNjQX4D_iugP2dQHzw-ssmqx-ivaYyzJkmQhGbnJ4-ZYJi7Pk_P4GVOt-9FlnLya8

    (Specific UI elements can vary depending on Unity version)

    1. If you did everything correctly, that error in Zibra Liquid will disappear:

      https://lh7-us.googleusercontent.com/Ay1xvi5gCAWvkDhyw0k-LfEGxHQYLhzD6EnckrNsG3rh84VB3_SIYqeQrKShLI-eJNj0QyFPGOcf_ax88LU4xG8wzjzCeuVuc2CWf2CZm_s-mkfpdPSrY6FJp_-i0zBAsiWCmugVLAMhZnYhqLX0dy0

    <aside> 💡 Notes

    Adding “URP Liquid Rendering Component” is project wide, and is only needed once.

    You may have separate settings for desktop and mobile platforms. In that case, please make sure to add Liquid URP Render Component to each setting you intend to use with Liquid.

    </aside>

    To enable depth buffer and fix second error:

    1. Navigate to “Edit -> Project Settings…”

      https://lh7-us.googleusercontent.com/tnWmtnXlkyTkpvX7pQgITwNIOgoprsEWvSUMzetdr6KdFyhxU2TSDOzwXV9lDXbk6M3Ld1Ey4OK-bRpk-vLB-zRpqexi3uxfXueYsnoWjYvDyFSeNqh6KHICys4iBlpDuKObyzVNpLpGpDe1Sj85JCI

    2. From there go to Graphics and open your current Scriptable Render Pipeline Settings asset in the Inspector (you can do it by double clicking it).

      https://lh7-us.googleusercontent.com/Ukj7Eex1t2JSnB_RMN5qXQOvRbgywzDugplpwZTFtAGpdqfYQxNp0_eqVdlO4nDlfQLXKahNoRrO-IsKvrGApCCc2h-Iu0BwC0cQq0Wjk8tf8dwzvA9jtlKL-0tx5DjbCJtppopIFrX0U44fUASjW-I

    3. Enable the Depth Texture option

      https://lh7-us.googleusercontent.com/CAnBpg2MqmZzcxLpAW5umnn1OjUQWn7UIYe4bavLfnsZ9wSx5puIEOw9huTYLYwIKk_a5vHjThC4p01Yi_fQ5KiamZk1DYXsusrbg1EShR-CxF6kgRIK5Z1rB1Z_BKa66dIb_-gyALpqAnO_h97su3A

    4. If you have any additional Universal Render Pipeline assets used in your project (e.g. for use on Mobile devices), please enable Depth Texture

    5. If you did everything correctly, that error in Zibra Liquid will disappear:

      https://lh7-us.googleusercontent.com/9vruF-pNAlRDYDd8rHPEbG0PayPQd5tT9GMbSh05LFMjP0upb6okpbXynlMXY_ekUWu5X_PNLGQ_92nZ4lBgQ8HnFNFMUTA8Qx5eIHBAc4MQPAF9VgvqJcKUzZCBgaRPtXRKB4D_uqD8aTqvFcNKapc

    <aside> 💡 Notes

    Enabling depth texture is project wide, and is only needed once.

    You may have separate settings for desktop and mobile platforms. In that case, please make sure to enable depth texture in each setting you intend to use with Liquid.

    </aside>

Additional setup on HDRP

If you are using HDRP you’ll see this message:

https://lh7-us.googleusercontent.com/q7WP2LuESu8rhDAwpbAOcvkL-_sGFYUFLw50uMBPhbiITTMlkEIi2u7lg24d2-Fq3p7Wz6MEfj8Jhf2BwiNJZ-XFRZcvXxGpE9I3DCA7DOaTVcrD6dAvpC6yUDI66jnRDBjwNdWflUKzmGKO8vD6kw4