Regalia 1.0.0
🛠️ For developersUnity 6000.0 and newer, uGUI + TextMeshPro, Built-in, URP and HDRP. Optional: Vector Graphics and MCP for Unity 10+ for agent mode. Window and guides in 7 languages
Terminal
Unity plugin · Figma → uGUI
This plugin carries your game's interface from Figma into Unity. Color and text styles become a palette and text styles in uGUI and TextMeshPro, ic- and img- components become sprites, components become prefabs, and whole screens become a Unity scene with working prototype links. Nothing lands in the project quietly: every sync arrives as a change list you review and accept
Regalia 1.0.0
🛠️ For developersUnity 6000.0 and newer, uGUI + TextMeshPro, Built-in, URP and HDRP. Optional: Vector Graphics and MCP for Unity 10+ for agent mode. Window and guides in 7 languages
Starter kit
🎨 For designersA free template with the rules of a clean transfer: style setup, a UI kit, resource prep and example screens
How to connect the plugin, accept a sync and keep hand edits on a prefab
The demo is already in the project: Samples/Demo/Scenes/Startscreen.unity. Play works with no Figma and no token. To try a sync, duplicate the Starter Kit and connect the copy, or go straight to your own project
By default the plugin reads Figma itself with a personal token, no agent and no MCP. The other way is your agent via Figma MCP and MCP for Unity. In both modes you accept the changes
Scopes the token needs
current_user:readfile_content:readlibrary_content:readEverything the plugin needs sits in one settings asset: the Figma file, the component registry, the excluded styles and the project folders. Create it with Assets → Create → Regalia → Settings, and the plugin folders appear next to it
Put UiColorRef on an image or a text and UiTextStyleRef on TMP. They take the color and the font from Figma styles, and after a sync the interface recolors itself
// dark theme in one line
variables.SetMode("Theme", "Dark");
Synchronize creates a draft in UserSettings, outside Assets. It reaches the project only after Accept the updates
A variant set becomes one prefab with states. The prefab is rebuilt from Figma, so hand edits in it get wiped
buttonVariants.Set("Size", "Large");
Boolean and text properties of a component go to FigmaProperties on the prefab root, each with the layers bound to it. An instance carries its values over
properties.Set("Show icon", false);
properties.Set("Label", "Play");
A set with Default, Hover, Pressed, Disabled, Focused switches the variant from mouse, keyboard and gamepad
The Screens tab works in token mode. Marked sections become screens, and Move the screen moves its components first. Build a scene adds a camera, a Canvas and transitions along prototype links
ic- icons arrive as SVG, img- images as PNG ×2. A missing font is downloaded from Google Fonts or linked from a folder
Need a Figma object in code? FigmaNodeRef.Find finds it by the layer id. The same call works for a nested and a flat screen
var title = FigmaNodeRef.Find(root, "857:470");
The full guide and the plugin layout live in: Documentation/DeveloperGuide.en.md and Documentation/README.md
How to prepare a file so the game matches Figma
Design at 1920×1080. Another aspect is its own frame in reference units: height or width stays close to 1080 or 1920
Constraints become anchors. A full-screen element needs Left & Right and Top & Bottom. Inside auto layout, Fill, Hug and Fixed decide
Direction, padding, gap, Fill, Hug, Fixed and Absolute position transfer. So do Space between, Wrap, Grid and scrolling. 12.5 becomes 13
Font, size, spacing and case come from a Text Style, color from a Color Style. Mixed runs transfer when each run has styles
Colors live in Color Styles; for themes, bind them to Variables. A style gradient transfers to fills, strokes and text
Variant layers match by name. Boolean, text and an icon, image or component swap transfer
Values: Default, Hover, Pressed, Disabled, Focused. You do not have to draw all five: without Pressed, a press shows Hover
Click, key, hover and press, navigate, change variant, Back, a link, an overlay and Scroll to work. Dissolve, Move, Push, Slide and Smart animate play
ic- and ic_ are SVG. img- and img_ are PNG at twice the frame size. The resource has to be a component. Vectors and shapes without a prefix arrive as SVG sprites too
A developer marks sections, and their frames become screens. Name copies of one screen the same up to the “[” character
A layer is linked to the game by id. Delete it and draw it again — a new id, and the plugin window shows “node missing”
The text style's font has to be in the project: the Google Fonts button, or a .ttf / .otf named like RobotoSlab-Black.ttf
The full guide and the plugin layout live in: Documentation/DesignerGuide.en.md and Documentation/README.md
Its import checkbox is cleared on the Styles tab. In token mode there is one more case: the style is applied to no layer, so REST does not return it
The layer was deleted and drawn again, so it has a new id. Import the component once more and edit existing layers after that
In token mode, no. In agent mode a sync, a component import or an image download is one call. Icons go in batches of 10–20
A rebuild comes from Figma and wipes hand edits. Put the logic on a Prefab Variant on top of the prefab
In the Game view aspect menu on macOS, turn off Low Resolution Aspect Ratios. That is the preview, not the font or the transfer
Import the TextMeshPro resources: Window → TextMeshPro → Import TMP Essential Resources. Without them the demo has no TMP_SDF-Mobile shader
In your user file LocalApplicationData/Regalia/figma-token. It does not travel with the project. If it leaks, revoke it in Figma
Questions and bugs
help@makstorch.com
Be sure to include the plugin version, Unity, OS, and attach screenshots