XGlass – Liquid Glass for UI Toolkit


SVG shapes need the built-in Vector Graphics module Supported graphics APIs Metal, Vulkan, OpenGL ES 3 Link to documentation ... You set it up in the editor, not in code.


by Annea


Price History +

Liquid glass for UI Toolkit: panes that bend, blur and tint what's behind them, light their rim, cast soft shadows and melt together. Live in UI Builder.

Features

• XGlass element: refraction, blur, zoom, tint, saturation, brightness and colour dispersion, rounded by its border-radius

• XGlassGroup: up to 16 panes per group melt together, each keeping its own look

• Glass Profiles: reusable looks with a live, draggable glass preview in the Inspector

• Rim lighting: soft and sharp highlights, a glint, a dark edge and a CSS-style drop shadow

• Normal maps: hammered, frosted or lens-array surfaces that bend and catch the light

• Reflections from a cube map, an HDRI or a live reflection probe

• Ink: colour that swirls inside the glass and mixes where panes merge

• Glass Shapes: outlines baked from PNG or SVG, in the editor or at runtime

• Per-element overrides from UI Builder, UXML, USS custom properties or C#

• Runtime panels, editor windows and UI Builder; no GameObjects, cameras or render textures

• Demo scene with five pages and a reusable liquid drag manipulator


Requirements

• Unity 6.6 or newer (XGlass is built on UI Toolkit backdrop filters, new in 6.6)

• Universal Render Pipeline (URP). Unity draws backdrop filters only in URP; Built-in and HDRP ignore them

• SVG shapes need the built-in Vector Graphics module


Supported graphics APIs

• Metal, Vulkan, OpenGL ES 3


Link to documentation

• https://xglass-ui.pages.dev/docs/XGlass-User-Guide.pdf

XGlass adds liquid glass to Unity's UI Toolkit. Drop an XGlass element into UI Builder, give it a size and a border-radius, and it bends, blurs and tints whatever sits behind it, lights its rim and casts a soft shadow. Put several in an XGlassGroup and they melt together like drops of liquid where they come close.


You set it up in the editor, not in code. A look lives in a Glass Profile you can share across your whole UI, and any single value can be changed per element with UI Builder sliders, UXML attributes, USS custom properties or C#. Every change shows live in edit mode, play mode and UI Builder.


Glass isn't limited to boxes. Bake any PNG or SVG into a Glass Shape and the rim, highlights, refraction and shadow follow its outline, so icons and logos can be glass too.


There are no GameObjects, extra cameras or render textures to manage. XGlass is a UI Toolkit filter and one shader, so it works the same in runtime panels and editor windows and stays light enough for mobile.


The package includes a five-page demo scene that tours every feature, a reusable liquid drag manipulator, and a 34-page user guide.