Skip to main content

Figma

20 tools in this family (folder Editor/Tools/Figma/ in the bridge package). Effect: writes changes the project or the scene, read-only does not, destructive deletes or overwrites and the client asks before running it.

ToolEffectDescription
uidesign_clear_tokendestructiveWipe the stored Figma PAT from EditorPrefs. DESTRUCTIVE and irreversible: the token is not
uidesign_convert_to_uguiwritesConvert a Figma frame to a uGUI prefab-builder C# script (Canvas
uidesign_convert_to_ui_toolkitwritesConvert a Figma frame to a UXML + USS pair under
uidesign_emit_import_presetwritesEmit a Figma asset-import preset JSON file (default sprite
uidesign_emit_ugui_prefab_builderread-onlyEmit a uGUI prefab-builder C# script for a node WITHOUT
uidesign_emit_uxml_ussread-onlyEmit (UXML, USS) for a node WITHOUT writing to disk — returns
uidesign_export_setupread-onlyReport the export configuration surface: supported formats,
uidesign_fetch_filewritesFetch a Figma file by key from https://api.figma.com/v1/files/<file_key>
uidesign_get_componentsread-onlyReturn the component library of a cached file as id →
uidesign_get_noderead-onlyReturn the full clean-room JSON of a single node (fills,
uidesign_get_stylesread-onlyReturn the named-style library of a cached file (fills /
uidesign_import_color_styleswritesConvert all FILL styles of a file into a USS StyleSheet with
uidesign_import_componentwritesImport one Figma Component as either UXML (UI Toolkit) or a
uidesign_import_component_librarywritesBulk-import every component of a file (UI Toolkit or uGUI).
uidesign_import_text_styleswritesConvert all TEXT styles of a file into a TextMeshPro-preset
uidesign_initread-onlyInitialize the figma_* family. Verifies Newtonsoft.Json +
uidesign_list_nodesread-onlyList every node (id / name / type / bbox) in a cached file.
uidesign_render_node_pngwritesRender a node as PNG via GET /v1/images/<file_key>?ids=<node_id>
uidesign_render_node_svgwritesRender a node as SVG. Live: GET /v1/images/<file_key>?format=svg.
uidesign_set_tokenwritesPersist a Figma Personal Access Token in EditorPrefs (XOR +