UGUI To UI Toolkit Converter


What converts RectTransform anchors, pivots, rotation and scale ... Built for real projects Proven on a complete game: 9 scenes converted, 0 differences in the Bridge Debugger


by Batnoska


Price History +

Convert UGUI Canvases and prefabs to UI Toolkit in one click, and keep your existing scripts, Inspector events and prefabs working, with no code changes.

Technical details

  • Tested on Unity 6.5 (6000.5). World Space canvases need Unity 6.2 or newer.
  • Render-pipeline independent (UI Toolkit draws the UI): Built-in, URP and HDRP. Tested with URP.
  • Works with the Input System package and the legacy Input Manager.
  • Requires the Unity UI package (com.unity.ugui, TextMeshPro included). The demo scenes need TMP Essential Resources.
  • Editor: converter, Bridge Debugger, report, reconversion. Runtime: the UGUI Bridge component and four UI Toolkit elements (UguiGridLayout, FilledImage, SlicedImage, UvRectImage), plain C#, all platforms UI Toolkit supports.
  • Undo support for every scene change; "Restore UGUI Canvas" on the bridge reverts a conversion.
  • Documentation: PDF manual (quick start, full reference, script reference) in Assets/UGUIToUIToolkit/Documentation.
  • Known limitations (each reported per element): dropdown option lists use UI Toolkit's menu, sprite-shaped masks clip to the rectangle, RectMask2D softness, justified TMP text, custom layout groups (followed at runtime by the bridge).

Description

Moving a project from UGUI to UI Toolkit usually means rebuilding every screen by hand and rewriting the code that drives it. UGUI to UI Toolkit Converter does both jobs for you: it turns your Canvases into clean UXML + USS that look the same, and its UGUI Bridge keeps all the code you already wrote working against the new UI.

One click, same look Pick a Canvas (or a whole scene) and press Convert. You get UXML with the same element tree and names as your GameObjects, USS with one class per element, PanelSettings that match your Canvas Scaler, and a panel in the scene, ready to press Play. Layouts land within a pixel of UGUI's.

Your scripts keep working The original Canvas stays in the scene, hidden, and the UGUI Bridge mirrors it onto UI Toolkit every frame. SetActive, texts, colors, sprites, fill amounts, slider values, dropdown options, CanvasGroups, objects your scripts Instantiate (inventory slots, list rows, popups), drag and drop, keyboard and gamepad navigation, Animation transitions — all of it keeps working, with no code changes. When you're ready, migrate your logic at your own pace (an optional controller script is generated for you).

What converts

  • RectTransform anchors, pivots, rotation and scale
  • Horizontal, Vertical and Grid Layout Groups, Layout Elements, Content Size Fitters
  • Images: simple, sliced, tiled, filled (radial, horizontal, vertical), Fill Center off, preserve aspect; RawImages with UV rects
  • Mask and RectMask2D (with padding), CanvasGroups
  • Legacy Text and TextMeshPro: font, size, styles, alignment, wrapping, rich text, outline, underlay, spacing, ellipsis, auto size, inline sprites
  • Buttons, Toggles, Sliders, Input Fields, Dropdowns, Scroll Rects and Scrollbars — with hover, pressed, disabled and selected states
  • Canvas Scaler (all modes), Screen Space and World Space canvases (Unity 6.2+), nested canvases
  • Prefabs: UI prefabs, prefabs with their own Canvas (bridge inside the prefab), and the prefabs your scripts instantiate at runtime

Built for real projects

  • Proven on a complete game: 9 scenes converted, 0 differences in the Bridge Debugger
  • Layout precision within 1 px, checked by an automated test suite (28 Edit Mode tests, pixel comparisons included)
  • Bridge Debugger: compares UGUI and UI Toolkit side by side in Play Mode and points at any difference
  • Conversion report: every approximation and anything that needs attention, with Select buttons
  • Convert again everything converted in the project: one click after you change your canvases
  • Identical canvases share one layout; output organised in one folder per scene and Canvas

Included

  • Full C# source code, assembly definitions, no third-party dependencies
  • Three demo scenes made with UGUI and TextMeshPro: a main menu, an inventory with drag and drop, and a game HUD — convert them and play them again
  • Documentation and an Edit Mode test suite

Questions, bug reports and feature requests: batnoskasantiago@gmail.com