Import Photoshop UI layouts into Unity as pixel-accurate uGUI hierarchies — with editable TextMeshPro text, full layer tree, and nine pivot presets.
- Run
Photoshop/psd2ui_export.jsxin Adobe Photoshop and choose an output folder. - Pick Export as Images (raster text) or Export as Text (metadata for TextMeshPro in Unity).
- In Unity, open
Window > PSD2UI Pro, select the exportedlayout.json, then Import.
| Positioning | Layer bounds transferred exactly; Photoshop coordinates converted to Unity UI space. |
| Hierarchy | Groups become parents; stacking order preserved as sibling order. |
| Text | Optional TextMeshProUGUI from export metadata, or rasterized PNGs. |
| Opacity | CanvasGroup on groups with opacity < 100%. |
| Effects | Styles, masks, and smart objects baked during Photoshop export. |
| Editor UX | Drag-and-drop layout.json, inline preview, stat cards, batched import, single Undo step. |
| Pivots | Nine presets: center, corners, and edge midpoints. |
- Canvas — Auto-created (
ScaleWithScreenSizeto PSD size) or parented under your target canvas. - Images —
Image+ sprite from PNG; raycast target off by default. - Text —
TextMeshProUGUIwhen exported as text metadata. - Groups — Parent
GameObjects; optionalCanvasGroupfor group alpha. - Hidden layers — Inactive
GameObjects when Respect Visibility is on.
-
In Unity: Window → Package Manager.
-
Click + → Add package from git URL…
-
Enter:
https://github.com/Marwan0/PSD2UI-Pro.gitOptional: pin a branch or tag, e.g.
https://github.com/Marwan0/PSD2UI-Pro.git#mainor#v1.0.0.
Or add to Packages/manifest.json under dependencies:
"com.marwan0.psd2ui-pro": "https://github.com/Marwan0/PSD2UI-Pro.git"The package installs under Packages and TextMeshPro is pulled in as a dependency when needed.
Copy the plugin folder into your project under Assets/.
cd Assets
git clone https://github.com/Marwan0/PSD2UI-Pro.git "PSD2UI Pro"Default import path for sprites: Assets/PSD2UI Imports (configurable in the importer window).
- Unity 2021.3 LTS or newer
- TextMeshPro (
com.unity.textmeshpro— included with Unity) - Adobe Photoshop CC 2018+ (for
psd2ui_export.jsx)
See PSD2UI_PRO_GUIDE.md for a short quick-reference.
- Smart objects and layer effects are baked to PNG during export.
- Animations are not imported.
- TMP defaults (font/size/color) should be adjusted after import.
MIT License — see LICENSE.
PSD2UI Pro v1.0
