Shape custom interfaces
Mesh modifiers let teams bend and reshape interface elements.
Unity 6.6
UIElements.VisualElement.AddMeshModifier Update releaseSupported now

What changed
Unity feature: UI Toolkit mesh modifiers
A mesh modifier receives an element’s generated geometry before it is sent to the GPU. Custom vertex channels can supply additional data to a UI shader.
Use it
- Register a callback with VisualElement.AddMeshModifier to change the generated mesh.
- If the shader needs extra inputs, enable the matching channels on Panel Settings and populate them during mesh generation.
Requirements and limits
- Requires custom code. Extra channels consume additional GPU memory per vertex, and supplied arrays must remain valid until rendering flushes.