Thank you for choosing Easy Liquid Fill! This asset is a lightweight and powerful solution for creating beautiful, physics-based, and interactive 2D liquid meters with a dynamic 3D swirling effect for your Unity project's UI.
The system is designed to be added to your project in seconds.
Globe.prefab from the Easy Liquid Fill/Prefabs/ folder into your UI Canvas.LiquidAnimationController component.
public LiquidAnimationController myHealthBar; fillAmount property to update the meter, or call TriggerSwirl() to make it react to game events.
// Set the fill to 75%
myHealthBar.fillAmount = 0.75f;
// Trigger a half-strength swirl when the player is hi
myHealthBar.TriggerSwirl(1f); Done! The liquid will animate and swirl automatically. (See the Demo Scene in Assets/Easy Liquid Fill/Demo for a live example.)
LiquidAnimationController: The main "brain" of the system. You interact with this component from your scripts. It handles all physics, timing, and animation.LiquidAnimator: The visual "renderer" for the effect. It is controlled automatically by the LiquidAnimationController.Globe Prefab: A pre-configured GameObject with both components, a circular mask, and all necessary child objects.Control the liquid's behavior from your own scripts using these public properties and methods on the LiquidAnimationController.
float fillAmount: The target fill level (0.0 to 1.0).float fillDuration: Time in seconds for the fill animation.float originalInclination: The base tilt of the liquid surface.float maxTiltAmount: The maximum swirl angle.float swirlDuration: Time in seconds for the swirl to settle.float swirlSpeed: The frequency of the swirl oscillation.TriggerSwirl(float intensity): Manually triggers the swirling animation. The intensity parameter controls the strength of the swirl.All customization is done directly in the Unity Inspector. Select the Globe object in your scene to access the two main components:
LiquidAnimationController: Adjust all timing, physics, and color properties.LiquidAnimator: Adjust advanced visual properties like Surface Tint Strength and Surface Angle Multiplier.A: Make sure the LiquidAnimator component is correctly assigned to the Liquid Animator field on the LiquidAnimationController in the Inspector.
A: From your player's health script, simply call the public method with an intensity value, for example: myHealthBar.TriggerSwirl(0.8f);
If Easy Liquid Fill saves you time and helps your project, please consider leaving a 5-star review on the Asset Store page. It helps the asset grow immensely.
Email is the fastest way to reach me. If you encounter any bugs, need help, or have feature requests, please contact me directly before leaving a review so I can resolve it for you immediately:
pixeladderdev@gmail.com
(Please include "[Easy Liquid Fill]" in the email subject line so it doesn't get caught in spam.)